I have a basic DTD schema like this one:
<!ELEMENT D1 (ASNHeader)>
<!ELEMENT ASNHeader EMPTY>
and the xml file like this
<?xml version='1.0' standalone='no'?>
<!DOCTYPE document SYSTEM "test.dtd">
<D1>
<ASNHeader></ASNHeader>
</D1>
And is not working. Instead if I change the D1 to "document"
so that now the DTD file looks like this:
<!ELEMENT document (ASNHeader)>
<!ELEMENT ASNHeader EMPTY>
and the XML file like
<?xml version='1.0' standalone='no'?>
<!DOCTYPE document SYSTEM "test.dtd">
<document>
<ASNHeader></ASNHeader>
</document>
IT WORKS!!!!!!
WHY????
Thanks
<!ELEMENT D1 (ASNHeader)>
<!ELEMENT ASNHeader EMPTY>
and the xml file like this
<?xml version='1.0' standalone='no'?>
<!DOCTYPE document SYSTEM "test.dtd">
<D1>
<ASNHeader></ASNHeader>
</D1>
And is not working. Instead if I change the D1 to "document"
so that now the DTD file looks like this:
<!ELEMENT document (ASNHeader)>
<!ELEMENT ASNHeader EMPTY>
and the XML file like
<?xml version='1.0' standalone='no'?>
<!DOCTYPE document SYSTEM "test.dtd">
<document>
<ASNHeader></ASNHeader>
</document>
IT WORKS!!!!!!
WHY????
Thanks