Hello guys!
I don’t know if I’m doing mistakes but I can not validate an xml instance on a DTD. I’ve tried to use it in a simple example but it didn’t work as I wanted.
Here is my DTD:
<!ELEMENT oasis (album+)>
<!ELEMENT album (music+)>
<!ELEMENT music (#PCDATA)>
<!ATTLIST album name CDATA #REQUIRED>
<!ATTLIST music track CDATA #REQUIRED>
And here, my xml:
<?xml version="1.0"?>
<!DOCTYPE oasis SYSTEM "oasis.dtd">
<oasis>
<album name="The Heathen Chemistry">
<music track="2">Force of Nature</music>
<music track="9">She is Love</music>
</album>
</oasis>
The xml is ok, just like was defined at the DTD. But if I put one more tag (i.e. ) after , the browser don’t show me any error message.
Where am I doing mistake?
thanks.
Marcus Vin