ah thanks, just a stupid typo, but it still leaves my last question unanswered, i can still put in two brands..
<?xml version="1.0"?>
<!DOCTYPE car [
<!ELEMENT car (brand,type)>
<!ELEMENT brand (#PCDATA)>
<!ELEMENT type (#PCDATA)>
]>
<car>
<brand>t</brand>...
here is the source of my test.xml
<?xml version="1.0"?>
<!DOCTYPE cars [
<!ELEMENT car (brand, type) >
<!ELEMENT brand (#PCDATA) >
<!ELEMENT type (#PCDATA) >
]>
<car>
<brand>sad</brand>
<brand>asd</brand>
</car>
shouldnt i get an error because the brand is put in twice now? same...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.