This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
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.