aspose file tools
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
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply 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: 11862
XMLSPY found problems with - missing spaces and mismatched root name. Corrected:


Java Resources at www.wbrogden.com
 
 
subject: what is wrong with this xml code
 
Threads others viewed
i have written code for dom but output given from the exception caught in the code
validating against a DTD
Overrinding ATTLIST in DTD
Multiple ATTLIST declarations for a attribute!
how many root element can be defined in one dtd files
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture