Order of xml tags when using dtd?
843834Apr 23 2002 — edited Apr 23 2002Hi.
If a XML document refers to a DTD, must then the subtags in the XML be in the correct order, or does the DTD describe that as well?
I.e.
My DTD:
<!ELEMENT supertag (tag1?, tag2?, tag3?)>
Is below XML valid, when referring to above DTD?:
<supertag>
<tag3>xxx</tag3>
<tag2>xxx</tag2>
<tag1>xxx</tag1>
</supertag>
If it is valid, is there anyway in a DTD to force the correct order?
btw - Sorry for posting pure xml and dtd in a java forum...
regards
Sigge