|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
XML writer class. More...
Inheritance diagram for ilXmlWriter:
Collaboration diagram for ilXmlWriter:Public Member Functions | |
| ilXmlWriter ($version="1.0", $outEnc="utf-8", $inEnc="utf-8") | |
| constructor More... | |
| _ilXmlWriter () | |
| destructor @access public More... | |
| xmlSetDtdDef ($dtdDef) | |
| Sets dtd definition. More... | |
| xmlSetStSheet ($stSheet) | |
| Sets stylesheet. More... | |
| xmlSetGenCmt ($genCmt) | |
| Sets generated comment. More... | |
| _xmlEscapeData ($data) | |
| Escapes reserved characters. More... | |
| xmlEncodeData ($data) | |
| Encodes text from input encoding into output encoding. More... | |
| xmlFormatData ($data) | |
| Indents text for better reading. More... | |
| xmlFormatElement ($array) | |
| Callback function for xmlFormatData; do not invoke directly. More... | |
| xmlHeader () | |
| Writes xml header @access public. More... | |
| xmlStartTag ($tag, $attrs=NULL, $empty=FALSE, $encode=TRUE, $escape=TRUE) | |
| Writes a starttag. More... | |
| xmlEndTag ($tag) | |
| Writes an endtag. More... | |
| xmlComment ($comment) | |
| Writes a comment. More... | |
| xmlData ($data, $encode=TRUE, $escape=TRUE) | |
| Writes data. More... | |
| xmlElement ($tag, $attrs=NULL, $data=Null, $encode=TRUE, $escape=TRUE) | |
| Writes a basic element (no children, just textual content) More... | |
| xmlDumpFile ($file, $format=TRUE) | |
| Dumps xml document from memory into a file. More... | |
| xmlDumpMem ($format=TRUE) | |
| Returns xml document from memory. More... | |
| appendXML ($a_str) | |
| append xml string to document More... | |
| xmlClear () | |
| clears xmlStr @access public More... | |
Data Fields | |
| $xmlStr | |
| $version | |
| $outEnc | |
| $inEnc | |
| $dtdDef = "" | |
| $stSheet = "" | |
| $genCmt = "Generated by ILIAS XmlWriter" | |
XML writer class.
Class to simplify manual writing of xml documents. It only supports writing xml sequentially, because the xml document is saved in a string with no additional structure information. The author is responsible for well-formedness and validity of the xml document.
Definition at line 17 of file class.ilXmlWriter.php.
| ilXmlWriter::_ilXmlWriter | ( | ) |
destructor @access public
Definition at line 90 of file class.ilXmlWriter.php.
| ilXmlWriter::_xmlEscapeData | ( | $data | ) |
Escapes reserved characters.
| string | input text |
Definition at line 132 of file class.ilXmlWriter.php.
Referenced by xmlData(), and xmlStartTag().
Here is the caller graph for this function:| ilXmlWriter::appendXML | ( | $a_str | ) |
append xml string to document
Definition at line 505 of file class.ilXmlWriter.php.
Referenced by ilCourseXMLWriter\__buildMetaData(), ilObjLinkResource\toXML(), ilDidacticTemplateLocalPolicyAction\toXml(), and ilDidacticTemplateLocalRoleAction\toXml().
Here is the caller graph for this function:| ilXmlWriter::ilXmlWriter | ( | $version = "1.0", |
|
$outEnc = "utf-8", |
|||
$inEnc = "utf-8" |
|||
| ) |
constructor
| string | xml version |
| string | output encoding |
| string | input encoding @access public |
Definition at line 75 of file class.ilXmlWriter.php.
| ilXmlWriter::xmlClear | ( | ) |
clears xmlStr @access public
Definition at line 514 of file class.ilXmlWriter.php.
Referenced by ilFolderXmlWriter\init(), ilWebLinkXmlWriter\init(), and ilLPXmlWriter\init().
Here is the caller graph for this function:| ilXmlWriter::xmlComment | ( | $comment | ) |
Writes a comment.
| string | comment @access public |
Definition at line 385 of file class.ilXmlWriter.php.
Referenced by xmlHeader().
Here is the caller graph for this function:| ilXmlWriter::xmlData | ( | $data, | |
$encode = TRUE, |
|||
$escape = TRUE |
|||
| ) |
Writes data.
| string | data |
| string | ecode data (TRUE) or not (FALSE) |
| string | escape data (TRUE) or not (FALSE) @access public |
Definition at line 397 of file class.ilXmlWriter.php.
References $data, _xmlEscapeData(), and xmlEncodeData().
Referenced by ilContainer\_exportContainerSettings(), and xmlElement().
Here is the call graph for this function:
Here is the caller graph for this function:| ilXmlWriter::xmlDumpFile | ( | $file, | |
$format = TRUE |
|||
| ) |
Dumps xml document from memory into a file.
| string | file name (full path) |
| boolean | indent text (TRUE) or not (FALSE) @access public |
Reimplemented in ilTestResultsToXML.
Definition at line 452 of file class.ilXmlWriter.php.
References $file, $xmlStr, and xmlFormatData().
Here is the call graph for this function:| ilXmlWriter::xmlDumpMem | ( | $format = TRUE | ) |
Returns xml document from memory.
| boolean | indent text (TRUE) or not (FALSE) |
Reimplemented in ilTestResultsToXML.
Definition at line 487 of file class.ilXmlWriter.php.
References $xmlStr, and xmlFormatData().
Referenced by ilCategoryXmlWriter\getXml(), ilCourseXMLWriter\getXML(), ilExerciseXMLWriter\getXML(), ilFileXMLWriter\getXML(), ilForumXMLWriter\getXML(), ilGroupXMLWriter\getXML(), ilContainerReferenceXmlWriter\getXml(), ilMD2XML\getXML(), ilUserXMLWriter\getXML(), ilObjectXMLWriter\getXML(), ilSoapInstallationInfoXMLWriter\getXML(), ilSoapRoleObjectXMLWriter\getXML(), ilSoapStructureObjectXMLWriter\getXML(), ilXMLResultSetWriter\getXML(), and ilAdvancedMetaDataExporter\getXmlRepresentation().
Here is the call graph for this function:
Here is the caller graph for this function:| ilXmlWriter::xmlElement | ( | $tag, | |
$attrs = NULL, |
|||
$data = Null, |
|||
$encode = TRUE, |
|||
$escape = TRUE |
|||
| ) |
Writes a basic element (no children, just textual content)
| string | tag name |
| array | attributes (name => value) |
| string | data |
| boolean | ecode attributes' values and data (TRUE) or not (FALSE) |
| boolean | escape attributes' values and data (TRUE) or not (FALSE) @access public |
Definition at line 423 of file class.ilXmlWriter.php.
References $data, xmlData(), xmlEndTag(), and xmlStartTag().
Referenced by ilUserXMLWriter\__addElement(), ilObjectXMLWriter\__appendObject(), ilObjectXMLWriter\__appendObjectProperties(), ilObjectXMLWriter\__appendOperations(), ilXMLResultSetWriter\__appendRow(), ilObjectXMLWriter\__appendTimeTargets(), ilGroupXMLWriter\__buildAdmin(), ilSoapInstallationInfoXMLWriter\__buildClient(), ilXMLResultSetWriter\__buildColSpecs(), ilSoapInstallationInfoXMLWriter\__buildInstallationInfo(), ilGroupXMLWriter\__buildMember(), ilGroupXMLWriter\__buildRegistration(), ilCourseXMLWriter\__buildSetting(), ilGroupXMLWriter\__buildTitleDescription(), ilUserXMLWriter\__handlePreferences(), ilUserXMLWriter\__handleUser(), ilAdvancedMDValues\_appendXMLByObjId(), ilContainerSortingSettings\_exportContainerSortingSettings(), ilLPXmlWriter\addLPInformation(), ilAdvancedMDFieldDefinitionFloat\addPropertiesToXML(), ilAdvancedMDFieldDefinitionInteger\addPropertiesToXML(), ilAdvancedMDFieldDefinitionSelect\addPropertiesToXML(), ilAdvancedMDFieldDefinitionText\addPropertiesToXML(), assQuestionExport\addQtiMetaDataField(), ilSoapLearningProgressAdministration\addUserProgress(), ilExerciseXMLWriter\attachMarking(), ilContainerReferenceXmlWriter\buildTarget(), ilContainerReferenceXmlWriter\buildTitle(), ilCategoryXmlWriter\buildTranslations(), ilTestResultsToXML\exportActiveIDs(), ilTestResultsToXML\exportPassResult(), ilTestResultsToXML\exportResultCache(), ilTestResultsToXML\exportTestQuestions(), ilTestResultsToXML\exportTestResults(), ilTestResultsToXML\exportTestSequence(), ilTestResultsToXML\exportTestSolutions(), ilTestResultsToXML\exportTestTimes(), ilExerciseXMLWriter\handleAssignmentFiles(), ilExerciseXMLWriter\start(), ilFileXMLWriter\start(), ilForumXMLWriter\start(), ilSoapRoleObjectXMLWriter\start(), ilAdvancedMDFieldDefinition\toXML(), ilCourseObjective\toXml(), ilCourseObjectiveMaterials\toXml(), ilCourseObjectiveQuestion\toXml(), ilLOSettings\toXml(), ilLinkResourceItems\toXML(), ilObjLinkResource\toXML(), ilAdvancedMDRecord\toXML(), ilDidacticTemplateExcludeFilterPattern\toXml(), ilDidacticTemplateIncludeFilterPattern\toXml(), ilDidacticTemplateSetting\toXml(), ilLORandomTestQuestionPools\toXml(), ilLOTestAssignments\toXml(), ilFolderXmlWriter\write(), ilContainerXmlWriter\writeCourseItemInformation(), and ilRoleXmlExport\writeRole().
Here is the call graph for this function:
Here is the caller graph for this function:| ilXmlWriter::xmlEncodeData | ( | $data | ) |
Encodes text from input encoding into output encoding.
| string | input text |
Definition at line 185 of file class.ilXmlWriter.php.
References $data.
Referenced by xmlData(), and xmlStartTag().
Here is the caller graph for this function:| ilXmlWriter::xmlEndTag | ( | $tag | ) |
Writes an endtag.
| string | tag name @access public |
Definition at line 375 of file class.ilXmlWriter.php.
Referenced by ilObjectXMLWriter\__appendObject(), ilObjectXMLWriter\__appendObjectProperties(), ilXMLResultSetWriter\__appendRow(), ilObjectXMLWriter\__appendTimeTargets(), ilCourseXMLWriter\__buildAdmin(), ilSoapInstallationInfoXMLWriter\__buildClient(), ilXMLResultSetWriter\__buildColSpecs(), ilCourseXMLWriter\__buildFooter(), ilGroupXMLWriter\__buildFooter(), ilUserXMLWriter\__buildFooter(), ilObjectXMLWriter\__buildFooter(), ilSoapInstallationInfoXMLWriter\__buildFooter(), ilSoapRoleObjectXMLWriter\__buildFooter(), ilXMLResultSetWriter\__buildFooter(), ilSoapInstallationInfoXMLWriter\__buildInstallationInfo(), ilCourseXMLWriter\__buildMember(), ilGroupXMLWriter\__buildRegistration(), ilXMLResultSetWriter\__buildRows(), ilCourseXMLWriter\__buildSetting(), ilCourseXMLWriter\__buildSubscriber(), ilCourseXMLWriter\__buildTutor(), ilCourseXMLWriter\__buildWaitingList(), ilUserXMLWriter\__handlePreferences(), ilUserXMLWriter\__handleUser(), ilAdvancedMDValues\_appendXMLByObjId(), ilContainer\_exportContainerSettings(), assQuestionExport\addAnswerSpecificFeedback(), ilLPXmlWriter\addLPInformation(), assQuestionExport\addQtiMetaDataField(), ilSoapLearningProgressAdministration\addUserProgress(), ilExerciseXMLWriter\attachMarking(), ilCategoryXmlWriter\buildFooter(), ilContainerReferenceXmlWriter\buildFooter(), ilCategoryXmlWriter\buildTranslations(), ilSoapInstallationInfoXMLWriter\end(), ilTestResultsToXML\exportActiveIDs(), ilTestResultsToXML\exportPassResult(), ilTestResultsToXML\exportResultCache(), ilTestResultsToXML\exportTestQuestions(), ilTestResultsToXML\exportTestResults(), ilTestResultsToXML\exportTestSequence(), ilTestResultsToXML\exportTestSolutions(), ilTestResultsToXML\exportTestTimes(), ilTestResultsToXML\getXML(), ilExerciseXMLWriter\handleAssignmentFiles(), ilExerciseXMLWriter\handleAssignmentMembers(), ilExerciseXMLWriter\start(), ilFileXMLWriter\start(), ilForumXMLWriter\start(), ilSoapRoleObjectXMLWriter\start(), ilAdvancedMDFieldDefinition\toXML(), ilCourseObjective\toXml(), ilCourseObjectiveQuestion\toXml(), ilLinkResourceItems\toXML(), ilObjLinkResource\toXML(), ilAdvancedMDRecord\toXML(), ilDidacticTemplateBlockRoleAction\toXml(), ilDidacticTemplateLocalPolicyAction\toXml(), ilDidacticTemplateLocalRoleAction\toXml(), ilDidacticTemplateSetting\toXml(), ilFolderXmlWriter\write(), ilRoleXmlExport\write(), ilAdvancedMDRecordXMLWriter\write(), ilContainerXmlWriter\write(), ilDidacticTemplateXmlWriter\write(), ilContainerXmlWriter\writeCourseItemInformation(), ilRoleXmlExport\writeRole(), ilContainerXmlWriter\writeSubitems(), and xmlElement().
Here is the caller graph for this function:| ilXmlWriter::xmlFormatData | ( | $data | ) |
Indents text for better reading.
| string | input text |
Definition at line 233 of file class.ilXmlWriter.php.
References $data.
Referenced by xmlDumpFile(), and xmlDumpMem().
Here is the caller graph for this function:| ilXmlWriter::xmlFormatElement | ( | $array | ) |
Callback function for xmlFormatData; do not invoke directly.
| array | result of reg. expr. search |
Definition at line 247 of file class.ilXmlWriter.php.
References $tab.
| ilXmlWriter::xmlHeader | ( | ) |
Writes xml header @access public.
Definition at line 297 of file class.ilXmlWriter.php.
References $dtdDef, $stSheet, $xmlStr, and xmlComment().
Referenced by ilCourseXMLWriter\__buildHeader(), ilExerciseXMLWriter\__buildHeader(), ilFileXMLWriter\__buildHeader(), ilGroupXMLWriter\__buildHeader(), ilUserXMLWriter\__buildHeader(), ilObjectXMLWriter\__buildHeader(), ilSoapInstallationInfoXMLWriter\__buildHeader(), ilSoapRoleObjectXMLWriter\__buildHeader(), ilSoapStructureObjectXMLWriter\__buildHeader(), ilXMLResultSetWriter\__buildHeader(), ilCategoryXmlWriter\buildHeader(), ilCategoryReferenceXmlWriter\buildHeader(), ilCourseReferenceXmlWriter\buildHeader(), ilFolderXmlWriter\buildHeader(), ilWebLinkXmlWriter\buildHeader(), ilAdvancedMDRecordXMLWriter\buildHeader(), ilContainerXmlWriter\buildHeader(), ilContainerReferenceXmlWriter\buildHeader(), ilLPXmlWriter\buildHeader(), ilContObjectManifestBuilder\buildManifest(), ilTestResultsToXML\getXML(), assClozeTestExport\toXML(), assErrorTextExport\toXML(), assFileUploadExport\toXML(), assFlashQuestionExport\toXML(), assFormulaQuestionExport\toXML(), assImagemapQuestionExport\toXML(), assJavaAppletExport\toXML(), assKprimChoiceExport\toXML(), assLongMenuExport\toXML(), assMatchingQuestionExport\toXML(), assMultipleChoiceExport\toXML(), assNumericExport\toXML(), assOrderingHorizontalExport\toXML(), assOrderingQuestionExport\toXML(), assSingleChoiceExport\toXML(), assTextQuestionExport\toXML(), assTextSubsetExport\toXML(), SurveyMatrixQuestion\toXML(), SurveyMetricQuestion\toXML(), SurveyMultipleChoiceQuestion\toXML(), SurveySingleChoiceQuestion\toXML(), SurveyTextQuestion\toXML(), ilObjSurveyQuestionPool\toXML(), ilObjSurvey\toXML(), ilObjTest\toXML(), ilDidacticTemplateXmlWriter\write(), and ilRoleXmlExport\writeHeader().
Here is the call graph for this function:
Here is the caller graph for this function:| ilXmlWriter::xmlSetDtdDef | ( | $dtdDef | ) |
Sets dtd definition.
| string | dtd definition @access public |
Definition at line 101 of file class.ilXmlWriter.php.
References $dtdDef.
Referenced by ilCourseXMLWriter\__buildHeader(), ilExerciseXMLWriter\__buildHeader(), ilFileXMLWriter\__buildHeader(), ilGroupXMLWriter\__buildHeader(), ilUserXMLWriter\__buildHeader(), ilObjectXMLWriter\__buildHeader(), ilSoapInstallationInfoXMLWriter\__buildHeader(), ilSoapRoleObjectXMLWriter\__buildHeader(), ilSoapStructureObjectXMLWriter\__buildHeader(), ilXMLResultSetWriter\__buildHeader(), ilContObjectExport\buildExportFileXML(), ilGlossaryExport\buildExportFileXML(), ilTestExport\buildExportFileXML(), ilQuestionpoolExport\buildExportFileXML(), ilCategoryXmlWriter\buildHeader(), ilCategoryReferenceXmlWriter\buildHeader(), ilCourseReferenceXmlWriter\buildHeader(), ilFolderXmlWriter\buildHeader(), ilWebLinkXmlWriter\buildHeader(), ilAdvancedMDRecordXMLWriter\buildHeader(), ilContainerXmlWriter\buildHeader(), ilContainerReferenceXmlWriter\buildHeader(), ilObjSCORM2004LearningModule\exportScorm(), ilSCORM2004Asset\exportScorm(), and ilRoleXmlExport\writeHeader().
Here is the caller graph for this function:| ilXmlWriter::xmlSetGenCmt | ( | $genCmt | ) |
Sets generated comment.
| string | generated comment @access public |
Definition at line 121 of file class.ilXmlWriter.php.
References $genCmt.
Referenced by ilCourseXMLWriter\__buildHeader(), ilExerciseXMLWriter\__buildHeader(), ilFileXMLWriter\__buildHeader(), ilGroupXMLWriter\__buildHeader(), ilUserXMLWriter\__buildHeader(), ilObjectXMLWriter\__buildHeader(), ilSoapInstallationInfoXMLWriter\__buildHeader(), ilSoapRoleObjectXMLWriter\__buildHeader(), ilSoapStructureObjectXMLWriter\__buildHeader(), ilCategoryXmlWriter\buildHeader(), ilCategoryReferenceXmlWriter\buildHeader(), ilCourseReferenceXmlWriter\buildHeader(), ilFolderXmlWriter\buildHeader(), ilWebLinkXmlWriter\buildHeader(), ilAdvancedMDRecordXMLWriter\buildHeader(), ilContainerXmlWriter\buildHeader(), ilContainerReferenceXmlWriter\buildHeader(), and ilRoleXmlExport\writeHeader().
Here is the caller graph for this function:| ilXmlWriter::xmlSetStSheet | ( | $stSheet | ) |
Sets stylesheet.
| string | stylesheet @access public |
Definition at line 111 of file class.ilXmlWriter.php.
References $stSheet.
| ilXmlWriter::xmlStartTag | ( | $tag, | |
$attrs = NULL, |
|||
$empty = FALSE, |
|||
$encode = TRUE, |
|||
$escape = TRUE |
|||
| ) |
Writes a starttag.
| string | tag name |
| array | attributes (name => value) |
| boolean | tag empty (TRUE) or not (FALSE) |
| boolean | ecode attributes' values (TRUE) or not (FALSE) |
| boolean | escape attributes' values (TRUE) or not (FALSE) @access public |
Definition at line 332 of file class.ilXmlWriter.php.
References _xmlEscapeData(), and xmlEncodeData().
Referenced by ilObjectXMLWriter\__appendObject(), ilObjectXMLWriter\__appendObjectProperties(), ilXMLResultSetWriter\__appendRow(), ilObjectXMLWriter\__appendTimeTargets(), ilCourseXMLWriter\__buildAdmin(), ilSoapInstallationInfoXMLWriter\__buildClient(), ilXMLResultSetWriter\__buildColSpecs(), ilCourseXMLWriter\__buildCourseStart(), ilGroupXMLWriter\__buildGroup(), ilUserXMLWriter\__buildHeader(), ilObjectXMLWriter\__buildHeader(), ilSoapInstallationInfoXMLWriter\__buildHeader(), ilSoapRoleObjectXMLWriter\__buildHeader(), ilXMLResultSetWriter\__buildHeader(), ilSoapInstallationInfoXMLWriter\__buildInstallationInfo(), ilCourseXMLWriter\__buildMember(), ilGroupXMLWriter\__buildRegistration(), ilXMLResultSetWriter\__buildRows(), ilCourseXMLWriter\__buildSetting(), ilCourseXMLWriter\__buildSubscriber(), ilCourseXMLWriter\__buildTutor(), ilCourseXMLWriter\__buildWaitingList(), ilUserXMLWriter\__handlePreferences(), ilUserXMLWriter\__handleUser(), ilAdvancedMDValues\_appendXMLByObjId(), ilContainer\_exportContainerSettings(), assQuestionExport\addAnswerSpecificFeedback(), ilLPXmlWriter\addLPInformation(), assQuestionExport\addQtiMetaDataField(), ilSoapLearningProgressAdministration\addUserProgress(), ilExerciseXMLWriter\attachMarking(), ilCategoryXmlWriter\buildCategory(), ilContainerReferenceXmlWriter\buildReference(), ilCategoryXmlWriter\buildTranslations(), ilTestResultsToXML\exportActiveIDs(), ilTestResultsToXML\exportPassResult(), ilObjSCORM2004LearningModule\exportPDF(), ilSCORM2004Asset\exportPDF(), ilTestResultsToXML\exportResultCache(), ilTestResultsToXML\exportTestQuestions(), ilTestResultsToXML\exportTestResults(), ilTestResultsToXML\exportTestSequence(), ilTestResultsToXML\exportTestSolutions(), ilTestResultsToXML\exportTestTimes(), ilTestResultsToXML\getXML(), ilAdvancedMetaDataExporter\getXmlRepresentation(), ilExerciseXMLWriter\handleAssignmentFiles(), ilExerciseXMLWriter\handleAssignmentMembers(), ilExerciseXMLWriter\start(), ilFileXMLWriter\start(), ilForumXMLWriter\start(), ilSoapInstallationInfoXMLWriter\start(), ilSoapRoleObjectXMLWriter\start(), ilAdvancedMDFieldDefinition\toXML(), ilCourseObjective\toXml(), ilCourseObjectiveQuestion\toXml(), ilLinkResourceItems\toXML(), ilObjLinkResource\toXML(), ilAdvancedMDRecord\toXML(), ilDidacticTemplateBlockRoleAction\toXml(), ilDidacticTemplateLocalPolicyAction\toXml(), ilDidacticTemplateLocalRoleAction\toXml(), ilDidacticTemplateSetting\toXml(), ilFolderXmlWriter\write(), ilRoleXmlExport\write(), ilAdvancedMDRecordXMLWriter\write(), ilContainerXmlWriter\write(), ilDidacticTemplateXmlWriter\write(), ilContainerXmlWriter\writeCourseItemInformation(), ilRoleXmlExport\writeRole(), ilContainerXmlWriter\writeSubitems(), and xmlElement().
Here is the call graph for this function:
Here is the caller graph for this function:| ilXmlWriter::$dtdDef = "" |
Definition at line 52 of file class.ilXmlWriter.php.
Referenced by xmlHeader(), and xmlSetDtdDef().
| ilXmlWriter::$genCmt = "Generated by ILIAS XmlWriter" |
Definition at line 66 of file class.ilXmlWriter.php.
Referenced by xmlSetGenCmt().
| ilXmlWriter::$inEnc |
Definition at line 45 of file class.ilXmlWriter.php.
Referenced by ilXmlWriter().
| ilXmlWriter::$outEnc |
Definition at line 38 of file class.ilXmlWriter.php.
Referenced by ilXmlWriter().
| ilXmlWriter::$stSheet = "" |
Definition at line 59 of file class.ilXmlWriter.php.
Referenced by xmlHeader(), and xmlSetStSheet().
| ilXmlWriter::$version |
Definition at line 31 of file class.ilXmlWriter.php.
Referenced by ilXmlWriter(), and ilFileXMLWriter\start().
| ilXmlWriter::$xmlStr |
Definition at line 24 of file class.ilXmlWriter.php.
Referenced by xmlDumpFile(), xmlDumpMem(), and xmlHeader().