xmlTreeGetExternalSubset

SYNOPSIS

xmlNode xmlTreeGetExternalSubset(xmlDoc doc)

Parameters:

  • doc - the doc you want to get the external DTD from

Returns:

  • the xmlNode for the external DTD subset of doc


DESCRIPTION
xmlTreeGetExternalSubset() gets the external DTD subset from the XML document doc. This is the part of the DTD that is defined via a SYSTEM reference, as opposed to the internal subset, which is defined within the XML file itself.

Note that the XML file must be parsed with the option XML_PARSE_DTDLOAD, otherwise the external DTD will not be loaded.


EXAMPLE

<$dtd = (xmlTreeGetExternalSubset($doc))>


CAVEATS
Parsing the external DTD may involve performing a network fetch. This can be disabled by adding XML_PARSE_NONET to the parsing options.


SEE ALSO
xmlTreeGetInternalSubset


Copyright © Thunderstone Software     Last updated: Apr 15 2024
Copyright © 2024 Thunderstone Software LLC. All rights reserved.