| Author |
Problem related with valid parsers
|
Raseswari Achanta
Ranch Hand
Joined: Sep 25, 2001
Posts: 30
|
|
Hi All, I want to check whether my document is the well formed xml doc or the valid xml doc. I'm testing this with the help of DTD's. I wrote the complete DTD to one of my xml doc. Here is the small example: <?xml version="1.0" standalone="yes"?> <!DOCTYPE Message [ <!ELEMENT Message (myMessage)> <!ATTLIST Message id CDATA #FIXED "2"> <!ELEMENT myMessage (#PCDATA)> ]> <Message id="4"> <myMessage> This is my message </myMessage> </Message> For the above xml file when I executed it on IE 5.0 it is showing the data perfectly. My doubt is: In the DTD I kept the attribute value as fixed to "2". But in the message element I gave the value for id as "4". If the valid parser do the parsing for this, It has to show the error message like Invalid XML document. But I'm not getting any error message. That means here only the well-formed xml parser is doing the process and displaying the data on the browser??? Any wrong interpretation done by me or it is the problem with the browser??? Pls. help me out regarding this... Thanks in Advance, Raseswari.
|
 |
Ajith Kallambella
Sheriff
Joined: Mar 17, 2000
Posts: 5782
|
|
|
Have you tried using any of the parsers?
|
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
|
 |
Raseswari Achanta
Ranch Hand
Joined: Sep 25, 2001
Posts: 30
|
|
Hi Ajith, I didn't make use of any parsers. But I think IE5.0 will have the parsers required for doing process to my simple xml application. Regards, raseswari.
|
 |
Raseswari Achanta
Ranch Hand
Joined: Sep 25, 2001
Posts: 30
|
|
Hi Friends, Looking for ur answer to continue further.... Pls. don't let me down Thanks in Advance, Raseswari.
|
 |
 |
|
|
subject: Problem related with valid parsers
|
|
|