Dtd validating parser
The command returns a 16-character string (Element Ref) making up the reference in the memory of the document virtual structure.
This reference should be used with other XML parsing commands.
By default, Saxon invokes the parser in non-validating mode (that is, without requested DTD validation).
Schema processing is done in parallel with parsing, by use of a SAX-like pipeline.Validation by DTDThere are two ways to specify a DTD: Validation by schema To validate the document via an XML schema, you just need to pass a file or URL with an “xsd” extension instead of a “dtd” one in the third parameter.Validation by XML schema is considered to be more flexible and more powerful than validation by DTD.However, validation usually isn't crucial when you use Perl and XML to perform a less specific task, such as tossing together XML documents on the fly based on some other, less sane data format, or when ripping apart and analyzing existing XML documents.
Basically, if you feel that validation is a needless step for the job at hand, you're probably right.Important: Once you no longer have any need for it, remember to call the DOM CLOSE XML command with this reference in order to free up the memory.