This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes what is wrong with this xml code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "what is wrong with this xml code" Watch "what is wrong with this xml code" New topic
Author

what is wrong with this xml code

vikas varshney
Greenhorn

Joined: Dec 10, 2011
Posts: 3
<?xml version="1.0" ?>
<!DOCTYPE root[
<!ELEMENT name(age,sex)>
<!ELEMENT age(#PCDATA)>
<!ELEMENT sex(#PCDATA)>
]>
<name>
<age>20</age>
<sex>m</sex>
</name>
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
XMLSPY found problems with - missing spaces and mismatched root name. Corrected:
 
jQuery in Action, 2nd edition
 
subject: what is wrong with this xml code
 
Similar Threads
i have written code for dom but output given from the exception caught in the code
Overrinding ATTLIST in DTD
Multiple ATTLIST declarations for a attribute!
validating against a DTD
how many root element can be defined in one dtd files