| 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: 12271
|
|
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
|
|
|