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 :
<!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 :
<!DOCTYPE doc SYSTEM "C:\sgml\sgmldtd.dtd" >
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?
EDIT : I used a 1 instead of an L for <inc1>, which is confusing I know, but I was consistent.