• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is wrong with this xml code

 
vikas varshney
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<?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
Posts: 13073
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
XMLSPY found problems with - missing spaces and mismatched root name. Corrected:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic