So I'm having an issue with an inclusion list. The list does not seem to flow down to descendants of the element it is declared in.
Here is my example.
The dtd :
The sgml before saving :Code:<!ELEMENT doc - o (element) +(inc1) > <!ELEMENT element - o (sub-element) > <!ELEMENT sub-element - o (sub-sub-element) > <!ELEMENT sub-sub-element - o EMPTY > <!ELEMENT inc1 - o EMPTY >
The xml after loading into an XmlDocument and saving :Code:<!DOCTYPE doc SYSTEM "C:\sgml\sgmldtd.dtd" []> <doc> <element> <sub-element> <inc1> <sub-sub-element> </sub-element> </element> </doc>
Because <inc1> is not included as per the <doc> inclusion list, it is not recognized and so it auto-closes all the elements and is no longer valid. Is this the expected behavior?Code:<doc> <element> <sub-element> </sub-element> </element> <inc1 /> <sub-sub-element /> </doc>
EDIT : I used a 1 instead of an L for <inc1>, which is confusing I know, but I was consistent.


