Closed dwarring closed 3 years ago
setExternalSubset() sets a Dtd for validation only.
setInternalSubset() has been amended, along with doco. It now calls xmlCreateInSubset() to create a new Dtd, correctly inserted into the document's tree.
Further work needed to copy or construct validation rules.
Redoing fix to bring it into line with Perl XML::LibXML.
Amending domSetInternalSubset to call xmlAddChildren xmlAddPrevSibling to link the node into document root. Somehow lost these lines during migration.
domSetInternalSubset() now inserts the DtD into the document root, similar function in Perl XML::LibXML.
Also automatically make a copy of an imported DtD.
Consider the following, slightly adapted from
setExternalSubset
doco:Output is:
I.e. is being ignored and no affect on the output.