7 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
10 TITLE="Gnome XML Library Reference Manual"
11 HREF="book1.html"><LINK
13 TITLE="Libxml Library Reference"
14 HREF="libxml-lib.html"><LINK
16 TITLE="Libxml Library Reference"
17 HREF="libxml-lib.html"><LINK
20 HREF="libxml-sax.html"></HEAD
43 >Gnome XML Library Reference Manual</FONT
52 HREF="libxml-lib.html"
57 ><<< Previous Page</B
90 HREF="libxml-lib.html"
106 HREF="libxml-sax.html"
111 >Next Page >>></B
120 NAME="LIBXML-PARSER">parser</H1
128 >parser -- </DIV
130 CLASS="REFSYNOPSISDIV"
146 HREF="libxml-parser.html#XML-DEFAULT-VERSION-CAPS"
147 >XML_DEFAULT_VERSION</A
150 HREF="libxml-parser.html#XMLPARSERINPUTDEALLOCATE"
151 >*xmlParserInputDeallocate</A
153 HREF="libxml-tree.html#XMLCHAR"
157 HREF="libxml-parser.html#XMLPARSERINPUT"
161 HREF="libxml-parser.html#XMLPARSERNODEINFO"
162 >xmlParserNodeInfo</A
165 HREF="libxml-parser.html#XMLPARSERNODEINFOPTR"
166 >xmlParserNodeInfoPtr</A
169 HREF="libxml-parser.html#XMLPARSERNODEINFOSEQ"
170 >xmlParserNodeInfoSeq</A
173 HREF="libxml-parser.html#XMLPARSERNODEINFOSEQPTR"
174 >xmlParserNodeInfoSeqPtr</A
177 HREF="libxml-parser.html#XMLPARSERINPUTSTATE"
178 >xmlParserInputState</A
181 HREF="libxml-parser.html#XML-DETECT-IDS-CAPS"
185 HREF="libxml-parser.html#XML-COMPLETE-ATTRS-CAPS"
186 >XML_COMPLETE_ATTRS</A
189 HREF="libxml-parser.html#XMLPARSERCTXT"
193 HREF="libxml-parser.html#XMLSAXLOCATOR"
197 HREF="libxml-tree.html#XMLPARSERINPUTPTR"
198 >xmlParserInputPtr</A
200 HREF="libxml-parser.html#RESOLVEENTITYSAXFUNC"
201 >*resolveEntitySAXFunc</A
204 HREF="libxml-tree.html#XMLCHAR"
208 HREF="libxml-tree.html#XMLCHAR"
212 HREF="libxml-parser.html#INTERNALSUBSETSAXFUNC"
213 >*internalSubsetSAXFunc</A
216 HREF="libxml-tree.html#XMLCHAR"
220 HREF="libxml-tree.html#XMLCHAR"
224 HREF="libxml-tree.html#XMLCHAR"
228 HREF="libxml-parser.html#EXTERNALSUBSETSAXFUNC"
229 >*externalSubsetSAXFunc</A
232 HREF="libxml-tree.html#XMLCHAR"
236 HREF="libxml-tree.html#XMLCHAR"
240 HREF="libxml-tree.html#XMLCHAR"
244 HREF="libxml-tree.html#XMLENTITYPTR"
247 HREF="libxml-parser.html#GETENTITYSAXFUNC"
248 >*getEntitySAXFunc</A
251 HREF="libxml-tree.html#XMLCHAR"
255 HREF="libxml-tree.html#XMLENTITYPTR"
258 HREF="libxml-parser.html#GETPARAMETERENTITYSAXFUNC"
259 >*getParameterEntitySAXFunc</A
262 HREF="libxml-tree.html#XMLCHAR"
266 HREF="libxml-parser.html#ENTITYDECLSAXFUNC"
267 >*entityDeclSAXFunc</A
270 HREF="libxml-tree.html#XMLCHAR"
275 HREF="libxml-tree.html#XMLCHAR"
279 HREF="libxml-tree.html#XMLCHAR"
283 HREF="libxml-tree.html#XMLCHAR"
287 HREF="libxml-parser.html#NOTATIONDECLSAXFUNC"
288 >*notationDeclSAXFunc</A
291 HREF="libxml-tree.html#XMLCHAR"
295 HREF="libxml-tree.html#XMLCHAR"
299 HREF="libxml-tree.html#XMLCHAR"
303 HREF="libxml-parser.html#ATTRIBUTEDECLSAXFUNC"
304 >*attributeDeclSAXFunc</A
307 HREF="libxml-tree.html#XMLCHAR"
311 HREF="libxml-tree.html#XMLCHAR"
317 HREF="libxml-tree.html#XMLCHAR"
321 HREF="libxml-tree.html#XMLENUMERATIONPTR"
322 >xmlEnumerationPtr</A
325 HREF="libxml-parser.html#ELEMENTDECLSAXFUNC"
326 >*elementDeclSAXFunc</A
329 HREF="libxml-tree.html#XMLCHAR"
334 HREF="libxml-tree.html#XMLELEMENTCONTENTPTR"
335 >xmlElementContentPtr</A
338 HREF="libxml-parser.html#UNPARSEDENTITYDECLSAXFUNC"
339 >*unparsedEntityDeclSAXFunc</A
342 HREF="libxml-tree.html#XMLCHAR"
346 HREF="libxml-tree.html#XMLCHAR"
350 HREF="libxml-tree.html#XMLCHAR"
354 HREF="libxml-tree.html#XMLCHAR"
358 HREF="libxml-parser.html#SETDOCUMENTLOCATORSAXFUNC"
359 >*setDocumentLocatorSAXFunc</A
362 HREF="libxml-tree.html#XMLSAXLOCATORPTR"
366 HREF="libxml-parser.html#STARTDOCUMENTSAXFUNC"
367 >*startDocumentSAXFunc</A
370 HREF="libxml-parser.html#ENDDOCUMENTSAXFUNC"
371 >*endDocumentSAXFunc</A
374 HREF="libxml-parser.html#STARTELEMENTSAXFUNC"
375 >*startElementSAXFunc</A
378 HREF="libxml-tree.html#XMLCHAR"
382 HREF="libxml-tree.html#XMLCHAR"
386 HREF="libxml-parser.html#ENDELEMENTSAXFUNC"
387 >*endElementSAXFunc</A
390 HREF="libxml-tree.html#XMLCHAR"
394 HREF="libxml-parser.html#ATTRIBUTESAXFUNC"
395 >*attributeSAXFunc</A
398 HREF="libxml-tree.html#XMLCHAR"
402 HREF="libxml-tree.html#XMLCHAR"
406 HREF="libxml-parser.html#REFERENCESAXFUNC"
407 >*referenceSAXFunc</A
410 HREF="libxml-tree.html#XMLCHAR"
414 HREF="libxml-parser.html#CHARACTERSSAXFUNC"
415 >*charactersSAXFunc</A
418 HREF="libxml-tree.html#XMLCHAR"
423 HREF="libxml-parser.html#IGNORABLEWHITESPACESAXFUNC"
424 >*ignorableWhitespaceSAXFunc</A
427 HREF="libxml-tree.html#XMLCHAR"
432 HREF="libxml-parser.html#PROCESSINGINSTRUCTIONSAXFUNC"
433 >*processingInstructionSAXFunc</A
436 HREF="libxml-tree.html#XMLCHAR"
440 HREF="libxml-tree.html#XMLCHAR"
444 HREF="libxml-parser.html#COMMENTSAXFUNC"
448 HREF="libxml-tree.html#XMLCHAR"
452 HREF="libxml-parser.html#CDATABLOCKSAXFUNC"
453 >*cdataBlockSAXFunc</A
456 HREF="libxml-tree.html#XMLCHAR"
461 HREF="libxml-parser.html#WARNINGSAXFUNC"
467 HREF="libxml-parser.html#ERRORSAXFUNC"
473 HREF="libxml-parser.html#FATALERRORSAXFUNC"
474 >*fatalErrorSAXFunc</A
479 HREF="libxml-parser.html#ISSTANDALONESAXFUNC"
480 >*isStandaloneSAXFunc</A
483 HREF="libxml-parser.html#HASINTERNALSUBSETSAXFUNC"
484 >*hasInternalSubsetSAXFunc</A
487 HREF="libxml-parser.html#HASEXTERNALSUBSETSAXFUNC"
488 >*hasExternalSubsetSAXFunc</A
491 HREF="libxml-parser.html#XMLSAXHANDLER"
495 HREF="libxml-tree.html#XMLPARSERINPUTPTR"
496 >xmlParserInputPtr</A
498 HREF="libxml-parser.html#XMLEXTERNALENTITYLOADER"
499 >*xmlExternalEntityLoader</A
504 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
508 HREF="libxml-parser.html#XMLSUBSTITUTEENTITIESDEFAULTVALUE"
509 >xmlSubstituteEntitiesDefaultValue</A
512 HREF="libxml-parser.html#XMLINITPARSER"
516 HREF="libxml-parser.html#XMLCLEANUPPARSER"
520 HREF="libxml-parser.html#XMLPARSERINPUTREAD"
521 >xmlParserInputRead</A
523 HREF="libxml-tree.html#XMLPARSERINPUTPTR"
524 >xmlParserInputPtr</A
528 HREF="libxml-parser.html#XMLPARSERINPUTGROW"
529 >xmlParserInputGrow</A
531 HREF="libxml-tree.html#XMLPARSERINPUTPTR"
532 >xmlParserInputPtr</A
536 HREF="libxml-tree.html#XMLCHAR"
539 HREF="libxml-parser.html#XMLSTRDUP"
542 HREF="libxml-tree.html#XMLCHAR"
546 HREF="libxml-tree.html#XMLCHAR"
549 HREF="libxml-parser.html#XMLSTRNDUP"
552 HREF="libxml-tree.html#XMLCHAR"
557 HREF="libxml-tree.html#XMLCHAR"
560 HREF="libxml-parser.html#XMLCHARSTRNDUP"
565 HREF="libxml-tree.html#XMLCHAR"
568 HREF="libxml-parser.html#XMLCHARSTRDUP"
572 HREF="libxml-tree.html#XMLCHAR"
575 HREF="libxml-parser.html#XMLSTRSUB"
578 HREF="libxml-tree.html#XMLCHAR"
584 HREF="libxml-tree.html#XMLCHAR"
587 HREF="libxml-parser.html#XMLSTRCHR"
590 HREF="libxml-tree.html#XMLCHAR"
594 HREF="libxml-tree.html#XMLCHAR"
598 HREF="libxml-tree.html#XMLCHAR"
601 HREF="libxml-parser.html#XMLSTRSTR"
604 HREF="libxml-tree.html#XMLCHAR"
608 HREF="libxml-tree.html#XMLCHAR"
612 HREF="libxml-tree.html#XMLCHAR"
615 HREF="libxml-parser.html#XMLSTRCASESTR"
618 HREF="libxml-tree.html#XMLCHAR"
622 HREF="libxml-tree.html#XMLCHAR"
626 HREF="libxml-parser.html#XMLSTRCMP"
629 HREF="libxml-tree.html#XMLCHAR"
633 HREF="libxml-tree.html#XMLCHAR"
637 HREF="libxml-parser.html#XMLSTRNCMP"
640 HREF="libxml-tree.html#XMLCHAR"
644 HREF="libxml-tree.html#XMLCHAR"
649 HREF="libxml-parser.html#XMLSTRCASECMP"
652 HREF="libxml-tree.html#XMLCHAR"
656 HREF="libxml-tree.html#XMLCHAR"
660 HREF="libxml-parser.html#XMLSTRNCASECMP"
663 HREF="libxml-tree.html#XMLCHAR"
667 HREF="libxml-tree.html#XMLCHAR"
672 HREF="libxml-parser.html#XMLSTREQUAL"
675 HREF="libxml-tree.html#XMLCHAR"
679 HREF="libxml-tree.html#XMLCHAR"
683 HREF="libxml-parser.html#XMLSTRLEN"
686 HREF="libxml-tree.html#XMLCHAR"
690 HREF="libxml-tree.html#XMLCHAR"
693 HREF="libxml-parser.html#XMLSTRCAT"
696 HREF="libxml-tree.html#XMLCHAR"
700 HREF="libxml-tree.html#XMLCHAR"
704 HREF="libxml-tree.html#XMLCHAR"
707 HREF="libxml-parser.html#XMLSTRNCAT"
710 HREF="libxml-tree.html#XMLCHAR"
714 HREF="libxml-tree.html#XMLCHAR"
719 HREF="libxml-tree.html#XMLDOCPTR"
722 HREF="libxml-parser.html#XMLPARSEDOC"
725 HREF="libxml-tree.html#XMLCHAR"
729 HREF="libxml-tree.html#XMLDOCPTR"
732 HREF="libxml-parser.html#XMLPARSEMEMORY"
734 > (const char *buffer,
737 HREF="libxml-tree.html#XMLDOCPTR"
740 HREF="libxml-parser.html#XMLPARSEFILE"
742 > (const char *filename);
744 HREF="libxml-parser.html#XMLSUBSTITUTEENTITIESDEFAULT"
745 >xmlSubstituteEntitiesDefault</A
748 HREF="libxml-parser.html#XMLKEEPBLANKSDEFAULT"
749 >xmlKeepBlanksDefault</A
752 HREF="libxml-parser.html#XMLSTOPPARSER"
755 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
759 HREF="libxml-parser.html#XMLPEDANTICPARSERDEFAULT"
760 >xmlPedanticParserDefault</A
763 HREF="libxml-parser.html#XMLLINENUMBERSDEFAULT"
764 >xmlLineNumbersDefault</A
767 HREF="libxml-tree.html#XMLDOCPTR"
770 HREF="libxml-parser.html#XMLRECOVERDOC"
773 HREF="libxml-tree.html#XMLCHAR"
777 HREF="libxml-tree.html#XMLDOCPTR"
780 HREF="libxml-parser.html#XMLRECOVERMEMORY"
782 > (const char *buffer,
785 HREF="libxml-tree.html#XMLDOCPTR"
788 HREF="libxml-parser.html#XMLRECOVERFILE"
790 > (const char *filename);
792 HREF="libxml-parser.html#XMLPARSEDOCUMENT"
795 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
799 HREF="libxml-parser.html#XMLPARSEEXTPARSEDENT"
800 >xmlParseExtParsedEnt</A
802 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
806 HREF="libxml-tree.html#XMLDOCPTR"
809 HREF="libxml-parser.html#XMLSAXPARSEDOC"
812 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
816 HREF="libxml-tree.html#XMLCHAR"
821 HREF="libxml-parser.html#XMLSAXUSERPARSEFILE"
822 >xmlSAXUserParseFile</A
824 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
828 const char *filename);
830 HREF="libxml-parser.html#XMLSAXUSERPARSEMEMORY"
831 >xmlSAXUserParseMemory</A
833 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
840 HREF="libxml-tree.html#XMLDOCPTR"
843 HREF="libxml-parser.html#XMLSAXPARSEMEMORY"
844 >xmlSAXParseMemory</A
846 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
853 HREF="libxml-tree.html#XMLDOCPTR"
856 HREF="libxml-parser.html#XMLSAXPARSEFILE"
859 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
862 const char *filename,
865 HREF="libxml-tree.html#XMLDOCPTR"
868 HREF="libxml-parser.html#XMLSAXPARSEFILEWITHDATA"
869 >xmlSAXParseFileWithData</A
871 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
874 const char *filename,
878 HREF="libxml-tree.html#XMLDOCPTR"
881 HREF="libxml-parser.html#XMLSAXPARSEENTITY"
882 >xmlSAXParseEntity</A
884 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
887 const char *filename);
889 HREF="libxml-tree.html#XMLDOCPTR"
892 HREF="libxml-parser.html#XMLPARSEENTITY"
894 > (const char *filename);
896 HREF="libxml-tree.html#XMLDTDPTR"
899 HREF="libxml-parser.html#XMLPARSEDTD"
902 HREF="libxml-tree.html#XMLCHAR"
906 HREF="libxml-tree.html#XMLCHAR"
910 HREF="libxml-tree.html#XMLDTDPTR"
913 HREF="libxml-parser.html#XMLSAXPARSEDTD"
916 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
920 HREF="libxml-tree.html#XMLCHAR"
924 HREF="libxml-tree.html#XMLCHAR"
928 HREF="libxml-tree.html#XMLDTDPTR"
931 HREF="libxml-parser.html#XMLIOPARSEDTD"
934 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
938 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
939 >xmlParserInputBufferPtr</A
942 HREF="libxml-encoding.html#XMLCHARENCODING"
946 HREF="libxml-parser.html#XMLPARSEBALANCEDCHUNKMEMORY"
947 >xmlParseBalancedChunkMemory</A
949 HREF="libxml-tree.html#XMLDOCPTR"
953 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
959 HREF="libxml-tree.html#XMLCHAR"
963 HREF="libxml-tree.html#XMLNODEPTR"
967 HREF="libxml-parser.html#XMLPARSEBALANCEDCHUNKMEMORYRECOVER"
968 >xmlParseBalancedChunkMemoryRecover</A
971 HREF="libxml-tree.html#XMLDOCPTR"
975 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
981 HREF="libxml-tree.html#XMLCHAR"
985 HREF="libxml-tree.html#XMLNODEPTR"
990 HREF="libxml-parser.html#XMLPARSEEXTERNALENTITY"
991 >xmlParseExternalEntity</A
993 HREF="libxml-tree.html#XMLDOCPTR"
997 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
1003 HREF="libxml-tree.html#XMLCHAR"
1007 HREF="libxml-tree.html#XMLCHAR"
1011 HREF="libxml-tree.html#XMLNODEPTR"
1015 HREF="libxml-parser.html#XMLPARSECTXTEXTERNALENTITY"
1016 >xmlParseCtxtExternalEntity</A
1018 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
1019 >xmlParserCtxtPtr</A
1022 HREF="libxml-tree.html#XMLCHAR"
1026 HREF="libxml-tree.html#XMLCHAR"
1030 HREF="libxml-tree.html#XMLNODEPTR"
1034 HREF="libxml-parser.html#XMLINITPARSERCTXT"
1035 >xmlInitParserCtxt</A
1037 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
1038 >xmlParserCtxtPtr</A
1041 HREF="libxml-parser.html#XMLCLEARPARSERCTXT"
1042 >xmlClearParserCtxt</A
1044 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
1045 >xmlParserCtxtPtr</A
1048 HREF="libxml-parser.html#XMLFREEPARSERCTXT"
1049 >xmlFreeParserCtxt</A
1051 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
1052 >xmlParserCtxtPtr</A
1055 HREF="libxml-parser.html#XMLSETUPPARSERFORBUFFER"
1056 >xmlSetupParserForBuffer</A
1058 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
1059 >xmlParserCtxtPtr</A
1062 HREF="libxml-tree.html#XMLCHAR"
1065 const char *filename);
1067 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
1068 >xmlParserCtxtPtr</A
1070 HREF="libxml-parser.html#XMLCREATEDOCPARSERCTXT"
1071 >xmlCreateDocParserCtxt</A
1073 HREF="libxml-tree.html#XMLCHAR"
1077 HREF="libxml-parser.html#XMLGETFEATURESLIST"
1078 >xmlGetFeaturesList</A
1080 const char **result);
1082 HREF="libxml-parser.html#XMLGETFEATURE"
1085 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
1086 >xmlParserCtxtPtr</A
1091 HREF="libxml-parser.html#XMLSETFEATURE"
1094 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
1095 >xmlParserCtxtPtr</A
1100 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
1101 >xmlParserCtxtPtr</A
1103 HREF="libxml-parser.html#XMLCREATEPUSHPARSERCTXT"
1104 >xmlCreatePushParserCtxt</A
1106 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
1107 >xmlSAXHandlerPtr</A
1112 const char *filename);
1114 HREF="libxml-parser.html#XMLPARSECHUNK"
1117 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
1118 >xmlParserCtxtPtr</A
1124 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
1125 >xmlParserCtxtPtr</A
1127 HREF="libxml-parser.html#XMLCREATEIOPARSERCTXT"
1128 >xmlCreateIOParserCtxt</A
1130 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
1131 >xmlSAXHandlerPtr</A
1135 HREF="libxml-xmlio.html#XMLINPUTREADCALLBACK"
1136 >xmlInputReadCallback</A
1139 HREF="libxml-xmlio.html#XMLINPUTCLOSECALLBACK"
1140 >xmlInputCloseCallback</A
1144 HREF="libxml-encoding.html#XMLCHARENCODING"
1148 HREF="libxml-tree.html#XMLPARSERINPUTPTR"
1149 >xmlParserInputPtr</A
1151 HREF="libxml-parser.html#XMLNEWIOINPUTSTREAM"
1152 >xmlNewIOInputStream</A
1154 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
1155 >xmlParserCtxtPtr</A
1158 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
1159 >xmlParserInputBufferPtr</A
1162 HREF="libxml-encoding.html#XMLCHARENCODING"
1166 HREF="libxml-parser.html#XMLPARSERNODEINFO"
1167 >xmlParserNodeInfo</A
1169 HREF="libxml-parser.html#XMLPARSERFINDNODEINFO"
1170 >xmlParserFindNodeInfo</A
1173 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
1174 >xmlParserCtxtPtr</A
1177 HREF="libxml-tree.html#XMLNODEPTR"
1181 HREF="libxml-parser.html#XMLINITNODEINFOSEQ"
1182 >xmlInitNodeInfoSeq</A
1184 HREF="libxml-parser.html#XMLPARSERNODEINFOSEQPTR"
1185 >xmlParserNodeInfoSeqPtr</A
1188 HREF="libxml-parser.html#XMLCLEARNODEINFOSEQ"
1189 >xmlClearNodeInfoSeq</A
1191 HREF="libxml-parser.html#XMLPARSERNODEINFOSEQPTR"
1192 >xmlParserNodeInfoSeqPtr</A
1194 unsigned <GTKDOCLINK
1198 HREF="libxml-parser.html#XMLPARSERFINDNODEINFOINDEX"
1199 >xmlParserFindNodeInfoIndex</A
1201 HREF="libxml-parser.html#XMLPARSERNODEINFOSEQPTR"
1202 >xmlParserNodeInfoSeqPtr</A
1205 HREF="libxml-tree.html#XMLNODEPTR"
1209 HREF="libxml-parser.html#XMLPARSERADDNODEINFO"
1210 >xmlParserAddNodeInfo</A
1212 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
1213 >xmlParserCtxtPtr</A
1216 HREF="libxml-parser.html#XMLPARSERNODEINFOPTR"
1217 >xmlParserNodeInfoPtr</A
1220 HREF="libxml-parser.html#XMLSETEXTERNALENTITYLOADER"
1221 >xmlSetExternalEntityLoader</A
1223 HREF="libxml-parser.html#XMLEXTERNALENTITYLOADER"
1224 >xmlExternalEntityLoader</A
1227 HREF="libxml-parser.html#XMLEXTERNALENTITYLOADER"
1228 >xmlExternalEntityLoader</A
1230 HREF="libxml-parser.html#XMLGETEXTERNALENTITYLOADER"
1231 >xmlGetExternalEntityLoader</A
1235 HREF="libxml-tree.html#XMLPARSERINPUTPTR"
1236 >xmlParserInputPtr</A
1238 HREF="libxml-parser.html#XMLLOADEXTERNALENTITY"
1239 >xmlLoadExternalEntity</A
1243 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
1244 >xmlParserCtxtPtr</A
1274 NAME="XML-DEFAULT-VERSION-CAPS"
1276 >XML_DEFAULT_VERSION</H3
1285 CLASS="PROGRAMLISTING"
1286 >#define XML_DEFAULT_VERSION "1.0"</PRE
1291 >The default version of XML used: 1.0</P
1302 NAME="XMLPARSERINPUTDEALLOCATE"
1304 >xmlParserInputDeallocate ()</H3
1313 CLASS="PROGRAMLISTING"
1314 >void (*xmlParserInputDeallocate) (<A
1315 HREF="libxml-tree.html#XMLCHAR"
1322 >Callback for freeing some parser input allocations.</P
1326 CLASS="INFORMALTABLE"
1353 > the string to deallocate</TD
1368 NAME="XMLPARSERINPUT"
1370 >struct xmlParserInput</H3
1379 CLASS="PROGRAMLISTING"
1380 >struct xmlParserInput {
1382 xmlParserInputBufferPtr buf; /* UTF-8 encoded buffer */
1384 const char *filename; /* The file analyzed, if any */
1385 const char *directory; /* the directory/base of the file */
1386 const xmlChar *base; /* Base of the array to parse */
1387 const xmlChar *cur; /* Current char being parsed */
1388 const xmlChar *end; /* end of the array to parse */
1389 int length; /* length if known */
1390 int line; /* Current line */
1391 int col; /* Current column */
1392 int consumed; /* How many xmlChars already consumed */
1393 xmlParserInputDeallocate free; /* function to deallocate the base */
1394 const xmlChar *encoding; /* the encoding string for entity */
1395 const xmlChar *version; /* the version string for entity */
1396 int standalone; /* Was that entity marked standalone */
1402 >An xmlParserInput is an input flow for the XML processor.
1403 Each entity parsed is associated an xmlParserInput (except the
1404 few predefined ones). This is the case both for internal entities
1405 - in which case the flow is already completely in memory - or
1406 external entities - in which case we use the buf structure for
1407 progressive reading and I18N conversions to the internal UTF-8 format.</P
1418 NAME="XMLPARSERNODEINFO"
1420 >struct xmlParserNodeInfo</H3
1429 CLASS="PROGRAMLISTING"
1430 >struct xmlParserNodeInfo {
1431 const struct _xmlNode* node;
1432 /* Position & line # that text that created the node begins & ends on */
1433 unsigned long begin_pos;
1434 unsigned long begin_line;
1435 unsigned long end_pos;
1436 unsigned long end_line;
1442 >The parser can be asked to collect Node informations, i.e. at what
1443 place in the file they were detected.
1444 NOTE: This is off by default and not very well tested.</P
1455 NAME="XMLPARSERNODEINFOPTR"
1457 >xmlParserNodeInfoPtr</H3
1466 CLASS="PROGRAMLISTING"
1467 >typedef xmlParserNodeInfo *xmlParserNodeInfoPtr;</PRE
1481 NAME="XMLPARSERNODEINFOSEQ"
1483 >struct xmlParserNodeInfoSeq</H3
1492 CLASS="PROGRAMLISTING"
1493 >struct xmlParserNodeInfoSeq {
1494 unsigned long maximum;
1495 unsigned long length;
1496 xmlParserNodeInfo* buffer;
1511 NAME="XMLPARSERNODEINFOSEQPTR"
1513 >xmlParserNodeInfoSeqPtr</H3
1522 CLASS="PROGRAMLISTING"
1523 >typedef xmlParserNodeInfoSeq *xmlParserNodeInfoSeqPtr;</PRE
1537 NAME="XMLPARSERINPUTSTATE"
1539 >enum xmlParserInputState</H3
1548 CLASS="PROGRAMLISTING"
1550 XML_PARSER_EOF = -1, /* nothing is to be parsed */
1551 XML_PARSER_START = 0, /* nothing has been parsed */
1552 XML_PARSER_MISC, /* Misc* before int subset */
1553 XML_PARSER_PI, /* Within a processing instruction */
1554 XML_PARSER_DTD, /* within some DTD content */
1555 XML_PARSER_PROLOG, /* Misc* after internal subset */
1556 XML_PARSER_COMMENT, /* within a comment */
1557 XML_PARSER_START_TAG, /* within a start tag */
1558 XML_PARSER_CONTENT, /* within the content */
1559 XML_PARSER_CDATA_SECTION, /* within a CDATA section */
1560 XML_PARSER_END_TAG, /* within a closing tag */
1561 XML_PARSER_ENTITY_DECL, /* within an entity declaration */
1562 XML_PARSER_ENTITY_VALUE, /* within an entity value in a decl */
1563 XML_PARSER_ATTRIBUTE_VALUE, /* within an attribute value */
1564 XML_PARSER_SYSTEM_LITERAL, /* within a SYSTEM value */
1565 XML_PARSER_EPILOG, /* the Misc* after the last end tag */
1566 XML_PARSER_IGNORE, /* within an IGNORED section */
1567 XML_PARSER_PUBLIC_LITERAL /* within a PUBLIC value */
1568 } xmlParserInputState;</PRE
1573 >The parser is now working also as a state based parser.
1574 The recursive one use the state info for entities processing.</P
1585 NAME="XML-DETECT-IDS-CAPS"
1596 CLASS="PROGRAMLISTING"
1597 >#define XML_DETECT_IDS 2</PRE
1602 >Bit in the loadsubset context field to tell to do ID/REFs lookups.
1603 Use it to initialize xmlLoadExtDtdDefaultValue.</P
1614 NAME="XML-COMPLETE-ATTRS-CAPS"
1616 >XML_COMPLETE_ATTRS</H3
1625 CLASS="PROGRAMLISTING"
1626 >#define XML_COMPLETE_ATTRS 4</PRE
1631 >Bit in the loadsubset context field to tell to do complete the
1632 elements attributes lists with the ones defaulted from the DTDs.
1633 Use it to initialize xmlLoadExtDtdDefaultValue.</P
1644 NAME="XMLPARSERCTXT"
1646 >struct xmlParserCtxt</H3
1655 CLASS="PROGRAMLISTING"
1656 >struct xmlParserCtxt {
1657 struct _xmlSAXHandler *sax; /* The SAX handler */
1658 void *userData; /* For SAX interface only, used by DOM build */
1659 xmlDocPtr myDoc; /* the document being built */
1660 int wellFormed; /* is the document well formed */
1661 int replaceEntities; /* shall we replace entities ? */
1662 const xmlChar *version; /* the XML version string */
1663 const xmlChar *encoding; /* the declared encoding, if any */
1664 int standalone; /* standalone document */
1665 int html; /* an HTML(1)/Docbook(2) document */
1667 /* Input stream stack */
1668 xmlParserInputPtr input; /* Current input stream */
1669 int inputNr; /* Number of current input streams */
1670 int inputMax; /* Max number of input streams */
1671 xmlParserInputPtr *inputTab; /* stack of inputs */
1673 /* Node analysis stack only used for DOM building */
1674 xmlNodePtr node; /* Current parsed Node */
1675 int nodeNr; /* Depth of the parsing stack */
1676 int nodeMax; /* Max depth of the parsing stack */
1677 xmlNodePtr *nodeTab; /* array of nodes */
1679 int record_info; /* Whether node info should be kept */
1680 xmlParserNodeInfoSeq node_seq; /* info about each node parsed */
1682 int errNo; /* error code */
1684 int hasExternalSubset; /* reference and external subset */
1685 int hasPErefs; /* the internal subset has PE refs */
1686 int external; /* are we parsing an external entity */
1688 int valid; /* is the document valid */
1689 int validate; /* shall we try to validate ? */
1690 xmlValidCtxt vctxt; /* The validity context */
1692 xmlParserInputState instate; /* current type of input */
1693 int token; /* next char look-ahead */
1695 char *directory; /* the data directory */
1697 /* Node name stack */
1698 xmlChar *name; /* Current parsed Node */
1699 int nameNr; /* Depth of the parsing stack */
1700 int nameMax; /* Max depth of the parsing stack */
1701 xmlChar * *nameTab; /* array of nodes */
1703 long nbChars; /* number of xmlChar processed */
1704 long checkIndex; /* used by progressive parsing lookup */
1705 int keepBlanks; /* ugly but ... */
1706 int disableSAX; /* SAX callbacks are disabled */
1707 int inSubset; /* Parsing is in int 1/ext 2 subset */
1708 xmlChar * intSubName; /* name of subset */
1709 xmlChar * extSubURI; /* URI of external subset */
1710 xmlChar * extSubSystem; /* SYSTEM ID of external subset */
1712 /* xml:space values */
1713 int * space; /* Should the parser preserve spaces */
1714 int spaceNr; /* Depth of the parsing stack */
1715 int spaceMax; /* Max depth of the parsing stack */
1716 int * spaceTab; /* array of space infos */
1718 int depth; /* to prevent entity substitution loops */
1719 xmlParserInputPtr entity; /* used to check entities boundaries */
1720 int charset; /* encoding of the in-memory content
1721 actually an xmlCharEncoding */
1722 int nodelen; /* Those two fields are there to */
1723 int nodemem; /* Speed up large node parsing */
1724 int pedantic; /* signal pedantic warnings */
1725 void *_private; /* For user data, libxml won't touch it */
1727 int loadsubset; /* should the external subset be loaded */
1728 int linenumbers; /* set line number in element content */
1729 void *catalogs; /* document's own catalog */
1735 >The parser context.
1736 NOTE This doesn't completely define the parser state, the (current ?)
1737 design of the parser uses recursive function calls since this allow
1738 and easy mapping from the production rules of the specification
1739 to the actual code. The drawback is that the actual function call
1740 also reflect the parser state. However most of the parsing routines
1741 takes as the only argument the parser context pointer, so migrating
1742 to a state based parser for progressive parsing shouldn't be too hard.</P
1753 NAME="XMLSAXLOCATOR"
1755 >struct xmlSAXLocator</H3
1764 CLASS="PROGRAMLISTING"
1765 >struct xmlSAXLocator {
1766 const xmlChar *(*getPublicId)(void *ctx);
1767 const xmlChar *(*getSystemId)(void *ctx);
1768 int (*getLineNumber)(void *ctx);
1769 int (*getColumnNumber)(void *ctx);
1786 NAME="RESOLVEENTITYSAXFUNC"
1788 >resolveEntitySAXFunc ()</H3
1797 CLASS="PROGRAMLISTING"
1799 HREF="libxml-tree.html#XMLPARSERINPUTPTR"
1800 >xmlParserInputPtr</A
1801 > (*resolveEntitySAXFunc) (void *ctx,
1803 HREF="libxml-tree.html#XMLCHAR"
1807 HREF="libxml-tree.html#XMLCHAR"
1815 The entity loader, to control the loading of external entities,
1816 the application can either:
1818 HREF="libxml-sax.html#RESOLVEENTITY"
1820 >() callback in the SAX block
1821 - or better use the <A
1822 HREF="libxml-parser.html#XMLSETEXTERNALENTITYLOADER"
1823 >xmlSetExternalEntityLoader</A
1825 set up it's own entity resolution routine</P
1829 CLASS="INFORMALTABLE"
1856 > the user data (XML parser context)</TD
1873 > The public ID of the entity</TD
1890 > The system ID of the entity</TD
1908 >the xmlParserInputPtr if inlined or NULL for DOM behaviour.</TD
1923 NAME="INTERNALSUBSETSAXFUNC"
1925 >internalSubsetSAXFunc ()</H3
1934 CLASS="PROGRAMLISTING"
1935 >void (*internalSubsetSAXFunc) (void *ctx,
1937 HREF="libxml-tree.html#XMLCHAR"
1941 HREF="libxml-tree.html#XMLCHAR"
1945 HREF="libxml-tree.html#XMLCHAR"
1952 >Callback on internal subset declaration.</P
1956 CLASS="INFORMALTABLE"
1983 > the user data (XML parser context)</TD
2000 > the root element name</TD
2017 > the external ID</TD
2034 > the SYSTEM ID (e.g. filename or URL)</TD
2049 NAME="EXTERNALSUBSETSAXFUNC"
2051 >externalSubsetSAXFunc ()</H3
2060 CLASS="PROGRAMLISTING"
2061 >void (*externalSubsetSAXFunc) (void *ctx,
2063 HREF="libxml-tree.html#XMLCHAR"
2067 HREF="libxml-tree.html#XMLCHAR"
2071 HREF="libxml-tree.html#XMLCHAR"
2078 >Callback on external subset declaration.</P
2082 CLASS="INFORMALTABLE"
2109 > the user data (XML parser context)</TD
2126 > the root element name</TD
2143 > the external ID</TD
2160 > the SYSTEM ID (e.g. filename or URL)</TD
2175 NAME="GETENTITYSAXFUNC"
2177 >getEntitySAXFunc ()</H3
2186 CLASS="PROGRAMLISTING"
2188 HREF="libxml-tree.html#XMLENTITYPTR"
2190 > (*getEntitySAXFunc) (void *ctx,
2192 HREF="libxml-tree.html#XMLCHAR"
2199 >Get an entity by name.</P
2203 CLASS="INFORMALTABLE"
2230 > the user data (XML parser context)</TD
2247 > The entity name</TD
2265 >the xmlEntityPtr if found.</TD
2280 NAME="GETPARAMETERENTITYSAXFUNC"
2282 >getParameterEntitySAXFunc ()</H3
2291 CLASS="PROGRAMLISTING"
2293 HREF="libxml-tree.html#XMLENTITYPTR"
2295 > (*getParameterEntitySAXFunc) (void *ctx,
2297 HREF="libxml-tree.html#XMLCHAR"
2304 >Get a parameter entity by name.</P
2308 CLASS="INFORMALTABLE"
2335 > the user data (XML parser context)</TD
2352 > The entity name</TD
2370 >the xmlEntityPtr if found.</TD
2385 NAME="ENTITYDECLSAXFUNC"
2387 >entityDeclSAXFunc ()</H3
2396 CLASS="PROGRAMLISTING"
2397 >void (*entityDeclSAXFunc) (void *ctx,
2399 HREF="libxml-tree.html#XMLCHAR"
2404 HREF="libxml-tree.html#XMLCHAR"
2408 HREF="libxml-tree.html#XMLCHAR"
2412 HREF="libxml-tree.html#XMLCHAR"
2419 >An entity definition has been parsed.</P
2423 CLASS="INFORMALTABLE"
2450 > the user data (XML parser context)</TD
2467 > the entity name </TD
2484 > the entity type </TD
2501 > The public ID of the entity</TD
2518 > The system ID of the entity</TD
2535 > the entity value (without processing).</TD
2550 NAME="NOTATIONDECLSAXFUNC"
2552 >notationDeclSAXFunc ()</H3
2561 CLASS="PROGRAMLISTING"
2562 >void (*notationDeclSAXFunc) (void *ctx,
2564 HREF="libxml-tree.html#XMLCHAR"
2568 HREF="libxml-tree.html#XMLCHAR"
2572 HREF="libxml-tree.html#XMLCHAR"
2579 >What to do when a notation declaration has been parsed.</P
2583 CLASS="INFORMALTABLE"
2610 > the user data (XML parser context)</TD
2627 > The name of the notation</TD
2644 > The public ID of the entity</TD
2661 > The system ID of the entity</TD
2676 NAME="ATTRIBUTEDECLSAXFUNC"
2678 >attributeDeclSAXFunc ()</H3
2687 CLASS="PROGRAMLISTING"
2688 >void (*attributeDeclSAXFunc) (void *ctx,
2690 HREF="libxml-tree.html#XMLCHAR"
2694 HREF="libxml-tree.html#XMLCHAR"
2700 HREF="libxml-tree.html#XMLCHAR"
2704 HREF="libxml-tree.html#XMLENUMERATIONPTR"
2705 >xmlEnumerationPtr</A
2711 >An attribute definition has been parsed.</P
2715 CLASS="INFORMALTABLE"
2742 > the user data (XML parser context)</TD
2759 > the name of the element</TD
2776 > the attribute name </TD
2793 > the attribute type </TD
2810 > the type of default value</TD
2827 > the attribute default value</TD
2844 > the tree of enumerated value set</TD
2859 NAME="ELEMENTDECLSAXFUNC"
2861 >elementDeclSAXFunc ()</H3
2870 CLASS="PROGRAMLISTING"
2871 >void (*elementDeclSAXFunc) (void *ctx,
2873 HREF="libxml-tree.html#XMLCHAR"
2878 HREF="libxml-tree.html#XMLELEMENTCONTENTPTR"
2879 >xmlElementContentPtr</A
2885 >An element definition has been parsed.</P
2889 CLASS="INFORMALTABLE"
2916 > the user data (XML parser context)</TD
2933 > the element name </TD
2950 > the element type </TD
2967 > the element value tree</TD
2982 NAME="UNPARSEDENTITYDECLSAXFUNC"
2984 >unparsedEntityDeclSAXFunc ()</H3
2993 CLASS="PROGRAMLISTING"
2994 >void (*unparsedEntityDeclSAXFunc) (void *ctx,
2996 HREF="libxml-tree.html#XMLCHAR"
3000 HREF="libxml-tree.html#XMLCHAR"
3004 HREF="libxml-tree.html#XMLCHAR"
3008 HREF="libxml-tree.html#XMLCHAR"
3010 > *notationName);</PRE
3015 >What to do when an unparsed entity declaration is parsed.</P
3019 CLASS="INFORMALTABLE"
3046 > the user data (XML parser context)</TD
3063 > The name of the entity</TD
3080 > The public ID of the entity</TD
3097 > The system ID of the entity</TD
3114 > the name of the notation</TD
3129 NAME="SETDOCUMENTLOCATORSAXFUNC"
3131 >setDocumentLocatorSAXFunc ()</H3
3140 CLASS="PROGRAMLISTING"
3141 >void (*setDocumentLocatorSAXFunc) (void *ctx,
3143 HREF="libxml-tree.html#XMLSAXLOCATORPTR"
3144 >xmlSAXLocatorPtr</A
3150 >Receive the document locator at startup, actually xmlDefaultSAXLocator.
3151 Everything is available on the context, so this is useless in our case.</P
3155 CLASS="INFORMALTABLE"
3182 > the user data (XML parser context)</TD
3214 NAME="STARTDOCUMENTSAXFUNC"
3216 >startDocumentSAXFunc ()</H3
3225 CLASS="PROGRAMLISTING"
3226 >void (*startDocumentSAXFunc) (void *ctx);</PRE
3231 >Called when the document start being processed.</P
3235 CLASS="INFORMALTABLE"
3262 > the user data (XML parser context)</TD
3277 NAME="ENDDOCUMENTSAXFUNC"
3279 >endDocumentSAXFunc ()</H3
3288 CLASS="PROGRAMLISTING"
3289 >void (*endDocumentSAXFunc) (void *ctx);</PRE
3294 >Called when the document end has been detected.</P
3298 CLASS="INFORMALTABLE"
3325 > the user data (XML parser context)</TD
3340 NAME="STARTELEMENTSAXFUNC"
3342 >startElementSAXFunc ()</H3
3351 CLASS="PROGRAMLISTING"
3352 >void (*startElementSAXFunc) (void *ctx,
3354 HREF="libxml-tree.html#XMLCHAR"
3358 HREF="libxml-tree.html#XMLCHAR"
3365 >Called when an opening tag has been processed.</P
3369 CLASS="INFORMALTABLE"
3396 > the user data (XML parser context)</TD
3413 > The element name, including namespace prefix</TD
3430 > An array of name/value attributes pairs, NULL terminated</TD
3445 NAME="ENDELEMENTSAXFUNC"
3447 >endElementSAXFunc ()</H3
3456 CLASS="PROGRAMLISTING"
3457 >void (*endElementSAXFunc) (void *ctx,
3459 HREF="libxml-tree.html#XMLCHAR"
3466 >Called when the end of an element has been detected.</P
3470 CLASS="INFORMALTABLE"
3497 > the user data (XML parser context)</TD
3514 > The element name</TD
3529 NAME="ATTRIBUTESAXFUNC"
3531 >attributeSAXFunc ()</H3
3540 CLASS="PROGRAMLISTING"
3541 >void (*attributeSAXFunc) (void *ctx,
3543 HREF="libxml-tree.html#XMLCHAR"
3547 HREF="libxml-tree.html#XMLCHAR"
3554 >Handle an attribute that has been read by the parser.
3555 The default handling is to convert the attribute into an
3556 DOM subtree and past it in a new xmlAttr element added to
3561 CLASS="INFORMALTABLE"
3588 > the user data (XML parser context)</TD
3605 > The attribute name, including namespace prefix</TD
3622 > The attribute value</TD
3637 NAME="REFERENCESAXFUNC"
3639 >referenceSAXFunc ()</H3
3648 CLASS="PROGRAMLISTING"
3649 >void (*referenceSAXFunc) (void *ctx,
3651 HREF="libxml-tree.html#XMLCHAR"
3658 >Called when an entity reference is detected.</P
3662 CLASS="INFORMALTABLE"
3689 > the user data (XML parser context)</TD
3706 > The entity name</TD
3721 NAME="CHARACTERSSAXFUNC"
3723 >charactersSAXFunc ()</H3
3732 CLASS="PROGRAMLISTING"
3733 >void (*charactersSAXFunc) (void *ctx,
3735 HREF="libxml-tree.html#XMLCHAR"
3743 >Receiving some chars from the parser.</P
3747 CLASS="INFORMALTABLE"
3774 > the user data (XML parser context)</TD
3791 > a xmlChar string</TD
3808 > the number of xmlChar</TD
3823 NAME="IGNORABLEWHITESPACESAXFUNC"
3825 >ignorableWhitespaceSAXFunc ()</H3
3834 CLASS="PROGRAMLISTING"
3835 >void (*ignorableWhitespaceSAXFunc) (void *ctx,
3837 HREF="libxml-tree.html#XMLCHAR"
3845 >Receiving some ignorable whitespaces from the parser.
3846 UNUSED: by default the DOM building will use characters.</P
3850 CLASS="INFORMALTABLE"
3877 > the user data (XML parser context)</TD
3894 > a xmlChar string</TD
3911 > the number of xmlChar</TD
3926 NAME="PROCESSINGINSTRUCTIONSAXFUNC"
3928 >processingInstructionSAXFunc ()</H3
3937 CLASS="PROGRAMLISTING"
3938 >void (*processingInstructionSAXFunc) (void *ctx,
3940 HREF="libxml-tree.html#XMLCHAR"
3944 HREF="libxml-tree.html#XMLCHAR"
3951 >A processing instruction has been parsed.</P
3955 CLASS="INFORMALTABLE"
3982 > the user data (XML parser context)</TD
3999 > the target name</TD
4031 NAME="COMMENTSAXFUNC"
4033 >commentSAXFunc ()</H3
4042 CLASS="PROGRAMLISTING"
4043 >void (*commentSAXFunc) (void *ctx,
4045 HREF="libxml-tree.html#XMLCHAR"
4052 >A comment has been parsed.</P
4056 CLASS="INFORMALTABLE"
4083 > the user data (XML parser context)</TD
4100 > the comment content</TD
4115 NAME="CDATABLOCKSAXFUNC"
4117 >cdataBlockSAXFunc ()</H3
4126 CLASS="PROGRAMLISTING"
4127 >void (*cdataBlockSAXFunc) (void *ctx,
4129 HREF="libxml-tree.html#XMLCHAR"
4137 >Called when a pcdata block has been parsed.</P
4141 CLASS="INFORMALTABLE"
4168 > the user data (XML parser context)</TD
4185 > The pcdata content</TD
4202 > the block length</TD
4217 NAME="WARNINGSAXFUNC"
4219 >warningSAXFunc ()</H3
4228 CLASS="PROGRAMLISTING"
4229 >void (*warningSAXFunc) (void *ctx,
4236 >Display and format a warning messages, callback.</P
4240 CLASS="INFORMALTABLE"
4267 > an XML parser context</TD
4284 > the message to display/transmit</TD
4301 > extra parameters for the message display</TD
4318 >errorSAXFunc ()</H3
4327 CLASS="PROGRAMLISTING"
4328 >void (*errorSAXFunc) (void *ctx,
4335 >Display and format an error messages, callback.</P
4339 CLASS="INFORMALTABLE"
4366 > an XML parser context</TD
4383 > the message to display/transmit</TD
4400 > extra parameters for the message display</TD
4415 NAME="FATALERRORSAXFUNC"
4417 >fatalErrorSAXFunc ()</H3
4426 CLASS="PROGRAMLISTING"
4427 >void (*fatalErrorSAXFunc) (void *ctx,
4434 >Display and format fatal error messages, callback.</P
4438 CLASS="INFORMALTABLE"
4465 > an XML parser context</TD
4482 > the message to display/transmit</TD
4499 > extra parameters for the message display</TD
4514 NAME="ISSTANDALONESAXFUNC"
4516 >isStandaloneSAXFunc ()</H3
4525 CLASS="PROGRAMLISTING"
4526 >int (*isStandaloneSAXFunc) (void *ctx);</PRE
4531 >Is this document tagged standalone?</P
4535 CLASS="INFORMALTABLE"
4562 > the user data (XML parser context)</TD
4595 NAME="HASINTERNALSUBSETSAXFUNC"
4597 >hasInternalSubsetSAXFunc ()</H3
4606 CLASS="PROGRAMLISTING"
4607 >int (*hasInternalSubsetSAXFunc) (void *ctx);</PRE
4612 >Does this document has an internal subset.</P
4616 CLASS="INFORMALTABLE"
4643 > the user data (XML parser context)</TD
4676 NAME="HASEXTERNALSUBSETSAXFUNC"
4678 >hasExternalSubsetSAXFunc ()</H3
4687 CLASS="PROGRAMLISTING"
4688 >int (*hasExternalSubsetSAXFunc) (void *ctx);</PRE
4693 >Does this document has an external subset?</P
4697 CLASS="INFORMALTABLE"
4724 > the user data (XML parser context)</TD
4757 NAME="XMLSAXHANDLER"
4759 >struct xmlSAXHandler</H3
4768 CLASS="PROGRAMLISTING"
4769 >struct xmlSAXHandler {
4770 internalSubsetSAXFunc internalSubset;
4771 isStandaloneSAXFunc isStandalone;
4772 hasInternalSubsetSAXFunc hasInternalSubset;
4773 hasExternalSubsetSAXFunc hasExternalSubset;
4774 resolveEntitySAXFunc resolveEntity;
4775 getEntitySAXFunc getEntity;
4776 entityDeclSAXFunc entityDecl;
4777 notationDeclSAXFunc notationDecl;
4778 attributeDeclSAXFunc attributeDecl;
4779 elementDeclSAXFunc elementDecl;
4780 unparsedEntityDeclSAXFunc unparsedEntityDecl;
4781 setDocumentLocatorSAXFunc setDocumentLocator;
4782 startDocumentSAXFunc startDocument;
4783 endDocumentSAXFunc endDocument;
4784 startElementSAXFunc startElement;
4785 endElementSAXFunc endElement;
4786 referenceSAXFunc reference;
4787 charactersSAXFunc characters;
4788 ignorableWhitespaceSAXFunc ignorableWhitespace;
4789 processingInstructionSAXFunc processingInstruction;
4790 commentSAXFunc comment;
4791 warningSAXFunc warning;
4793 fatalErrorSAXFunc fatalError;
4794 getParameterEntitySAXFunc getParameterEntity;
4795 cdataBlockSAXFunc cdataBlock;
4796 externalSubsetSAXFunc externalSubset;
4803 >A SAX handler is bunch of callbacks called by the parser when processing
4804 of the input generate data or structure informations.</P
4815 NAME="XMLEXTERNALENTITYLOADER"
4817 >xmlExternalEntityLoader ()</H3
4826 CLASS="PROGRAMLISTING"
4828 HREF="libxml-tree.html#XMLPARSERINPUTPTR"
4829 >xmlParserInputPtr</A
4830 > (*xmlExternalEntityLoader)
4834 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
4835 >xmlParserCtxtPtr</A
4841 >External entity loaders types.</P
4845 CLASS="INFORMALTABLE"
4872 > The System ID of the resource requested</TD
4889 > The Public ID of the resource requested</TD
4906 > the XML parser context </TD
4924 >the entity input parser.</TD
4939 NAME="XMLSUBSTITUTEENTITIESDEFAULTVALUE"
4941 >xmlSubstituteEntitiesDefaultValue</H3
4950 CLASS="PROGRAMLISTING"
4951 >#define xmlSubstituteEntitiesDefaultValue</PRE
4956 >Global variable controlling the entity substitution default behavior.</P
4967 NAME="XMLINITPARSER"
4969 >xmlInitParser ()</H3
4978 CLASS="PROGRAMLISTING"
4979 >void xmlInitParser (void);</PRE
4984 >Initialization function for the XML parser.
4985 This is not reentrant. Call once before processing in case of
4986 use in multithreaded programs.</P
4997 NAME="XMLCLEANUPPARSER"
4999 >xmlCleanupParser ()</H3
5008 CLASS="PROGRAMLISTING"
5009 >void xmlCleanupParser (void);</PRE
5014 >Cleanup function for the XML parser. It tries to reclaim all
5015 parsing related global memory allocated for the parser processing.
5016 It doesn't deallocate any document related memory. Calling this
5017 function should not prevent reusing the parser.</P
5028 NAME="XMLPARSERINPUTREAD"
5030 >xmlParserInputRead ()</H3
5039 CLASS="PROGRAMLISTING"
5040 >int xmlParserInputRead (<A
5041 HREF="libxml-tree.html#XMLPARSERINPUTPTR"
5042 >xmlParserInputPtr</A
5049 >This function refresh the input for the parser. It doesn't try to
5050 preserve pointers to the input buffer, and discard already read data</P
5054 CLASS="INFORMALTABLE"
5081 > an XML parser input</TD
5098 > an indicative size for the lookahead</TD
5116 >the number of xmlChars read, or -1 in case of error, 0 indicate the
5117 end of this entity</TD
5132 NAME="XMLPARSERINPUTGROW"
5134 >xmlParserInputGrow ()</H3
5143 CLASS="PROGRAMLISTING"
5144 >int xmlParserInputGrow (<A
5145 HREF="libxml-tree.html#XMLPARSERINPUTPTR"
5146 >xmlParserInputPtr</A
5153 >This function increase the input for the parser. It tries to
5154 preserve pointers to the input buffer, and keep already read data</P
5158 CLASS="INFORMALTABLE"
5185 > an XML parser input</TD
5202 > an indicative size for the lookahead</TD
5220 >the number of xmlChars read, or -1 in case of error, 0 indicate the
5221 end of this entity</TD
5247 CLASS="PROGRAMLISTING"
5249 HREF="libxml-tree.html#XMLCHAR"
5251 >* xmlStrdup (const <A
5252 HREF="libxml-tree.html#XMLCHAR"
5259 >a strdup for array of xmlChar's. Since they are supposed to be
5260 encoded in UTF-8 or an encoding with 8bit based chars, we assume
5261 a termination mark of '0'.</P
5265 CLASS="INFORMALTABLE"
5292 > the input xmlChar *</TD
5310 >a new xmlChar * or NULL</TD
5336 CLASS="PROGRAMLISTING"
5338 HREF="libxml-tree.html#XMLCHAR"
5340 >* xmlStrndup (const <A
5341 HREF="libxml-tree.html#XMLCHAR"
5349 >a strndup for array of xmlChar's</P
5353 CLASS="INFORMALTABLE"
5380 > the input xmlChar *</TD
5420 >a new xmlChar * or NULL</TD
5435 NAME="XMLCHARSTRNDUP"
5437 >xmlCharStrndup ()</H3
5446 CLASS="PROGRAMLISTING"
5448 HREF="libxml-tree.html#XMLCHAR"
5450 >* xmlCharStrndup (const char *cur,
5456 >a strndup for char's to xmlChar's</P
5460 CLASS="INFORMALTABLE"
5487 > the input char *</TD
5527 >a new xmlChar * or NULL</TD
5542 NAME="XMLCHARSTRDUP"
5544 >xmlCharStrdup ()</H3
5553 CLASS="PROGRAMLISTING"
5555 HREF="libxml-tree.html#XMLCHAR"
5557 >* xmlCharStrdup (const char *cur);</PRE
5562 >a strdup for char's to xmlChar's</P
5566 CLASS="INFORMALTABLE"
5593 > the input char *</TD
5611 >a new xmlChar * or NULL</TD
5637 CLASS="PROGRAMLISTING"
5639 HREF="libxml-tree.html#XMLCHAR"
5641 >* xmlStrsub (const <A
5642 HREF="libxml-tree.html#XMLCHAR"
5651 >Extract a substring of a given string</P
5655 CLASS="INFORMALTABLE"
5682 > the xmlChar * array (haystack)</TD
5699 > the index of the first char (zero based)</TD
5716 > the length of the substring</TD
5734 >the xmlChar * for the first occurrence or NULL.</TD
5760 CLASS="PROGRAMLISTING"
5762 HREF="libxml-tree.html#XMLCHAR"
5764 >* xmlStrchr (const <A
5765 HREF="libxml-tree.html#XMLCHAR"
5769 HREF="libxml-tree.html#XMLCHAR"
5776 >a strchr for xmlChar's</P
5780 CLASS="INFORMALTABLE"
5807 > the xmlChar * array</TD
5824 > the xmlChar to search</TD
5842 >the xmlChar * for the first occurrence or NULL.</TD
5868 CLASS="PROGRAMLISTING"
5870 HREF="libxml-tree.html#XMLCHAR"
5872 >* xmlStrstr (const <A
5873 HREF="libxml-tree.html#XMLCHAR"
5877 HREF="libxml-tree.html#XMLCHAR"
5884 >a strstr for xmlChar's</P
5888 CLASS="INFORMALTABLE"
5915 > the xmlChar * array (haystack)</TD
5932 > the xmlChar to search (needle)</TD
5950 >the xmlChar * for the first occurrence or NULL.</TD
5965 NAME="XMLSTRCASESTR"
5967 >xmlStrcasestr ()</H3
5976 CLASS="PROGRAMLISTING"
5978 HREF="libxml-tree.html#XMLCHAR"
5980 >* xmlStrcasestr (const <A
5981 HREF="libxml-tree.html#XMLCHAR"
5985 HREF="libxml-tree.html#XMLCHAR"
5992 >a case-ignoring strstr for xmlChar's</P
5996 CLASS="INFORMALTABLE"
6023 > the xmlChar * array (haystack)</TD
6040 > the xmlChar to search (needle)</TD
6058 >the xmlChar * for the first occurrence or NULL.</TD
6084 CLASS="PROGRAMLISTING"
6085 >int xmlStrcmp (const <A
6086 HREF="libxml-tree.html#XMLCHAR"
6090 HREF="libxml-tree.html#XMLCHAR"
6097 >a strcmp for xmlChar's</P
6101 CLASS="INFORMALTABLE"
6128 > the first xmlChar *</TD
6145 > the second xmlChar *</TD
6163 >the integer result of the comparison</TD
6189 CLASS="PROGRAMLISTING"
6190 >int xmlStrncmp (const <A
6191 HREF="libxml-tree.html#XMLCHAR"
6195 HREF="libxml-tree.html#XMLCHAR"
6203 >a strncmp for xmlChar's</P
6207 CLASS="INFORMALTABLE"
6234 > the first xmlChar *</TD
6251 > the second xmlChar *</TD
6268 > the max comparison length</TD
6286 >the integer result of the comparison</TD
6301 NAME="XMLSTRCASECMP"
6303 >xmlStrcasecmp ()</H3
6312 CLASS="PROGRAMLISTING"
6313 >int xmlStrcasecmp (const <A
6314 HREF="libxml-tree.html#XMLCHAR"
6318 HREF="libxml-tree.html#XMLCHAR"
6325 >a strcasecmp for xmlChar's</P
6329 CLASS="INFORMALTABLE"
6356 > the first xmlChar *</TD
6373 > the second xmlChar *</TD
6391 >the integer result of the comparison</TD
6406 NAME="XMLSTRNCASECMP"
6408 >xmlStrncasecmp ()</H3
6417 CLASS="PROGRAMLISTING"
6418 >int xmlStrncasecmp (const <A
6419 HREF="libxml-tree.html#XMLCHAR"
6423 HREF="libxml-tree.html#XMLCHAR"
6431 >a strncasecmp for xmlChar's</P
6435 CLASS="INFORMALTABLE"
6462 > the first xmlChar *</TD
6479 > the second xmlChar *</TD
6496 > the max comparison length</TD
6514 >the integer result of the comparison</TD
6540 CLASS="PROGRAMLISTING"
6541 >int xmlStrEqual (const <A
6542 HREF="libxml-tree.html#XMLCHAR"
6546 HREF="libxml-tree.html#XMLCHAR"
6553 >Check if both string are equal of have same content
6554 Should be a bit more readable and faster than <A
6555 HREF="libxml-parser.html#XMLSTREQUAL"
6561 CLASS="INFORMALTABLE"
6588 > the first xmlChar *</TD
6605 > the second xmlChar *</TD
6623 >1 if they are equal, 0 if they are different</TD
6649 CLASS="PROGRAMLISTING"
6650 >int xmlStrlen (const <A
6651 HREF="libxml-tree.html#XMLCHAR"
6658 >length of a xmlChar's string</P
6662 CLASS="INFORMALTABLE"
6689 > the xmlChar * array</TD
6707 >the number of xmlChar contained in the ARRAY.</TD
6733 CLASS="PROGRAMLISTING"
6735 HREF="libxml-tree.html#XMLCHAR"
6738 HREF="libxml-tree.html#XMLCHAR"
6742 HREF="libxml-tree.html#XMLCHAR"
6749 >a strcat for array of xmlChar's. Since they are supposed to be
6750 encoded in UTF-8 or an encoding with 8bit based chars, we assume
6751 a termination mark of '0'.</P
6755 CLASS="INFORMALTABLE"
6782 > the original xmlChar * array</TD
6799 > the xmlChar * array added</TD
6817 >a new xmlChar * containing the concatenated string.</TD
6843 CLASS="PROGRAMLISTING"
6845 HREF="libxml-tree.html#XMLCHAR"
6848 HREF="libxml-tree.html#XMLCHAR"
6852 HREF="libxml-tree.html#XMLCHAR"
6860 >a strncat for array of xmlChar's, it will extend <TT
6875 CLASS="INFORMALTABLE"
6902 > the original xmlChar * array</TD
6919 > the xmlChar * array added</TD
6959 >a new xmlChar *, the original <TT
6964 > is reallocated if needed
6965 and should not be freed</TD
6991 CLASS="PROGRAMLISTING"
6993 HREF="libxml-tree.html#XMLDOCPTR"
6996 HREF="libxml-tree.html#XMLCHAR"
7003 >parse an XML in-memory document and build a tree.</P
7007 CLASS="INFORMALTABLE"
7034 > a pointer to an array of xmlChar</TD
7052 >the resulting document tree</TD
7067 NAME="XMLPARSEMEMORY"
7069 >xmlParseMemory ()</H3
7078 CLASS="PROGRAMLISTING"
7080 HREF="libxml-tree.html#XMLDOCPTR"
7082 > xmlParseMemory (const char *buffer,
7088 >parse an XML in-memory block and build a tree.</P
7092 CLASS="INFORMALTABLE"
7119 > an pointer to a char array</TD
7136 > the size of the array</TD
7154 >the resulting document tree</TD
7171 >xmlParseFile ()</H3
7180 CLASS="PROGRAMLISTING"
7182 HREF="libxml-tree.html#XMLDOCPTR"
7184 > xmlParseFile (const char *filename);</PRE
7189 >parse an XML file and build a tree. Automatic support for ZLIB/Compress
7190 compressed document is provided by default if found at compile-time.</P
7194 CLASS="INFORMALTABLE"
7239 >the resulting document tree if the file was wellformed,
7255 NAME="XMLSUBSTITUTEENTITIESDEFAULT"
7257 >xmlSubstituteEntitiesDefault ()</H3
7266 CLASS="PROGRAMLISTING"
7267 >int xmlSubstituteEntitiesDefault (int val);</PRE
7272 >Set and return the previous value for default entity support.
7273 Initially the parser always keep entity references instead of substituting
7274 entity values in the output. This function has to be used to change the
7275 default parser behavior
7277 HREF="SUBSTITUTEENTITIES"
7278 >substituteEntities</GTKDOCLINK
7279 >() has to be used for changing that on a file by
7284 CLASS="INFORMALTABLE"
7329 >the last value for 0 for no substitution, 1 for substitution.</TD
7344 NAME="XMLKEEPBLANKSDEFAULT"
7346 >xmlKeepBlanksDefault ()</H3
7355 CLASS="PROGRAMLISTING"
7356 >int xmlKeepBlanksDefault (int val);</PRE
7361 >Set and return the previous value for default blanks text nodes support.
7362 The 1.x version of the parser used an heuristic to try to detect
7363 ignorable white spaces. As a result the SAX callback was generating
7365 HREF="libxml-sax.html#IGNORABLEWHITESPACE"
7366 >ignorableWhitespace</A
7367 >() callbacks instead of <A
7368 HREF="libxml-sax.html#CHARACTERS"
7371 using the DOM output text nodes containing those blanks were not generated.
7372 The 2.x and later version will switch to the XML standard way and
7374 HREF="libxml-sax.html#IGNORABLEWHITESPACE"
7375 >ignorableWhitespace</A
7376 >() are only generated when running the parser in
7377 validating mode and when the current element doesn't allow CDATA or
7379 This function is provided as a way to force the standard behavior
7380 on 1.X libs and to switch back to the old mode for compatibility when
7381 running 1.X client code on 2.X . Upgrade of 1.X code should be done
7383 HREF="libxml-tree.html#XMLISBLANKNODE"
7385 >() commodity function to detect the "empty"
7387 This value also affect autogeneration of indentation when saving code
7388 if blanks sections are kept, indentation is not generated.</P
7392 CLASS="INFORMALTABLE"
7437 >the last value for 0 for no substitution, 1 for substitution.</TD
7452 NAME="XMLSTOPPARSER"
7454 >xmlStopParser ()</H3
7463 CLASS="PROGRAMLISTING"
7464 >void xmlStopParser (<A
7465 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
7466 >xmlParserCtxtPtr</A
7472 >Blocks further parser processing</P
7476 CLASS="INFORMALTABLE"
7503 > an XML parser context</TD
7518 NAME="XMLPEDANTICPARSERDEFAULT"
7520 >xmlPedanticParserDefault ()</H3
7529 CLASS="PROGRAMLISTING"
7530 >int xmlPedanticParserDefault (int val);</PRE
7535 >Set and return the previous value for enabling pedantic warnings.</P
7539 CLASS="INFORMALTABLE"
7584 >the last value for 0 for no substitution, 1 for substitution.</TD
7599 NAME="XMLLINENUMBERSDEFAULT"
7601 >xmlLineNumbersDefault ()</H3
7610 CLASS="PROGRAMLISTING"
7611 >int xmlLineNumbersDefault (int val);</PRE
7616 >Set and return the previous value for enabling line numbers in elements
7617 contents. This may break on old application and is turned off by default.</P
7621 CLASS="INFORMALTABLE"
7666 >the last value for 0 for no substitution, 1 for substitution.</TD
7681 NAME="XMLRECOVERDOC"
7683 >xmlRecoverDoc ()</H3
7692 CLASS="PROGRAMLISTING"
7694 HREF="libxml-tree.html#XMLDOCPTR"
7697 HREF="libxml-tree.html#XMLCHAR"
7704 >parse an XML in-memory document and build a tree.
7705 In the case the document is not Well Formed, a tree is built anyway</P
7709 CLASS="INFORMALTABLE"
7736 > a pointer to an array of xmlChar</TD
7754 >the resulting document tree</TD
7769 NAME="XMLRECOVERMEMORY"
7771 >xmlRecoverMemory ()</H3
7780 CLASS="PROGRAMLISTING"
7782 HREF="libxml-tree.html#XMLDOCPTR"
7784 > xmlRecoverMemory (const char *buffer,
7790 >parse an XML in-memory block and build a tree.
7791 In the case the document is not Well Formed, a tree is built anyway</P
7795 CLASS="INFORMALTABLE"
7822 > an pointer to a char array</TD
7839 > the size of the array</TD
7857 >the resulting document tree</TD
7872 NAME="XMLRECOVERFILE"
7874 >xmlRecoverFile ()</H3
7883 CLASS="PROGRAMLISTING"
7885 HREF="libxml-tree.html#XMLDOCPTR"
7887 > xmlRecoverFile (const char *filename);</PRE
7892 >parse an XML file and build a tree. Automatic support for ZLIB/Compress
7893 compressed document is provided by default if found at compile-time.
7894 In the case the document is not Well Formed, a tree is built anyway</P
7898 CLASS="INFORMALTABLE"
7943 >the resulting document tree</TD
7958 NAME="XMLPARSEDOCUMENT"
7960 >xmlParseDocument ()</H3
7969 CLASS="PROGRAMLISTING"
7970 >int xmlParseDocument (<A
7971 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
7972 >xmlParserCtxtPtr</A
7978 >parse an XML document (and build a tree if using the standard SAX
7981 >[1] document ::= prolog element Misc*</P
7983 >[22] prolog ::= XMLDecl? Misc* (doctypedecl Misc*)?</P
7987 CLASS="INFORMALTABLE"
8014 > an XML parser context</TD
8032 >0, -1 in case of error. the parser context is augmented
8033 as a result of the parsing.</TD
8048 NAME="XMLPARSEEXTPARSEDENT"
8050 >xmlParseExtParsedEnt ()</H3
8059 CLASS="PROGRAMLISTING"
8060 >int xmlParseExtParsedEnt (<A
8061 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
8062 >xmlParserCtxtPtr</A
8068 >parse a general parsed entity
8069 An external general parsed entity is well-formed if it matches the
8070 production labeled extParsedEnt.</P
8072 >[78] extParsedEnt ::= TextDecl? content</P
8076 CLASS="INFORMALTABLE"
8103 > an XML parser context</TD
8121 >0, -1 in case of error. the parser context is augmented
8122 as a result of the parsing.</TD
8137 NAME="XMLSAXPARSEDOC"
8139 >xmlSAXParseDoc ()</H3
8148 CLASS="PROGRAMLISTING"
8150 HREF="libxml-tree.html#XMLDOCPTR"
8152 > xmlSAXParseDoc (<A
8153 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
8154 >xmlSAXHandlerPtr</A
8157 HREF="libxml-tree.html#XMLCHAR"
8165 >parse an XML in-memory document and build a tree.
8166 It use the given SAX function block to handle the parsing callback.
8167 If sax is NULL, fallback to the default DOM tree building routines.</P
8171 CLASS="INFORMALTABLE"
8198 > the SAX handler block</TD
8215 > a pointer to an array of xmlChar</TD
8232 > work in recovery mode, i.e. tries to read no Well Formed
8251 >the resulting document tree</TD
8266 NAME="XMLSAXUSERPARSEFILE"
8268 >xmlSAXUserParseFile ()</H3
8277 CLASS="PROGRAMLISTING"
8278 >int xmlSAXUserParseFile (<A
8279 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
8280 >xmlSAXHandlerPtr</A
8283 const char *filename);</PRE
8288 >parse an XML file and call the given SAX handler routines.
8289 Automatic support for ZLIB/Compress compressed document is provided</P
8293 CLASS="INFORMALTABLE"
8337 > The user data returned on SAX callbacks</TD
8372 >0 in case of success or a error number otherwise</TD
8387 NAME="XMLSAXUSERPARSEMEMORY"
8389 >xmlSAXUserParseMemory ()</H3
8398 CLASS="PROGRAMLISTING"
8399 >int xmlSAXUserParseMemory (<A
8400 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
8401 >xmlSAXHandlerPtr</A
8410 >A better SAX parsing routine.
8411 parse an XML in-memory buffer and call the given SAX handler routines.</P
8415 CLASS="INFORMALTABLE"
8459 > The user data returned on SAX callbacks</TD
8476 > an in-memory XML document input</TD
8493 > the length of the XML document in bytes</TD
8511 >0 in case of success or a error number otherwise</TD
8526 NAME="XMLSAXPARSEMEMORY"
8528 >xmlSAXParseMemory ()</H3
8537 CLASS="PROGRAMLISTING"
8539 HREF="libxml-tree.html#XMLDOCPTR"
8541 > xmlSAXParseMemory (<A
8542 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
8543 >xmlSAXHandlerPtr</A
8552 >parse an XML in-memory block and use the given SAX function block
8553 to handle the parsing callback. If sax is NULL, fallback to the default
8554 DOM tree building routines.</P
8558 CLASS="INFORMALTABLE"
8585 > the SAX handler block</TD
8602 > an pointer to a char array</TD
8619 > the size of the array</TD
8636 > work in recovery mode, i.e. tries to read not Well Formed
8655 >the resulting document tree</TD
8670 NAME="XMLSAXPARSEFILE"
8672 >xmlSAXParseFile ()</H3
8681 CLASS="PROGRAMLISTING"
8683 HREF="libxml-tree.html#XMLDOCPTR"
8685 > xmlSAXParseFile (<A
8686 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
8687 >xmlSAXHandlerPtr</A
8689 const char *filename,
8695 >parse an XML file and build a tree. Automatic support for ZLIB/Compress
8696 compressed document is provided by default if found at compile-time.
8697 It use the given SAX function block to handle the parsing callback.
8698 If sax is NULL, fallback to the default DOM tree building routines.</P
8702 CLASS="INFORMALTABLE"
8729 > the SAX handler block</TD
8763 > work in recovery mode, i.e. tries to read no Well Formed
8782 >the resulting document tree</TD
8797 NAME="XMLSAXPARSEFILEWITHDATA"
8799 >xmlSAXParseFileWithData ()</H3
8808 CLASS="PROGRAMLISTING"
8810 HREF="libxml-tree.html#XMLDOCPTR"
8812 > xmlSAXParseFileWithData (<A
8813 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
8814 >xmlSAXHandlerPtr</A
8816 const char *filename,
8823 >parse an XML file and build a tree. Automatic support for ZLIB/Compress
8824 compressed document is provided by default if found at compile-time.
8825 It use the given SAX function block to handle the parsing callback.
8826 If sax is NULL, fallback to the default DOM tree building routines.</P
8828 >User data (void *) is stored within the parser context in the
8829 context's _private member, so it is available nearly everywhere in libxml</P
8833 CLASS="INFORMALTABLE"
8860 > the SAX handler block</TD
8894 > work in recovery mode, i.e. tries to read no Well Formed
8930 >the resulting document tree</TD
8945 NAME="XMLSAXPARSEENTITY"
8947 >xmlSAXParseEntity ()</H3
8956 CLASS="PROGRAMLISTING"
8958 HREF="libxml-tree.html#XMLDOCPTR"
8960 > xmlSAXParseEntity (<A
8961 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
8962 >xmlSAXHandlerPtr</A
8964 const char *filename);</PRE
8969 >parse an XML external entity out of context and build a tree.
8970 It use the given SAX function block to handle the parsing callback.
8971 If sax is NULL, fallback to the default DOM tree building routines.</P
8973 >[78] extParsedEnt ::= TextDecl? content</P
8975 >This correspond to a "Well Balanced" chunk</P
8979 CLASS="INFORMALTABLE"
9006 > the SAX handler block</TD
9041 >the resulting document tree</TD
9056 NAME="XMLPARSEENTITY"
9058 >xmlParseEntity ()</H3
9067 CLASS="PROGRAMLISTING"
9069 HREF="libxml-tree.html#XMLDOCPTR"
9071 > xmlParseEntity (const char *filename);</PRE
9076 >parse an XML external entity out of context and build a tree.</P
9078 >[78] extParsedEnt ::= TextDecl? content</P
9080 >This correspond to a "Well Balanced" chunk</P
9084 CLASS="INFORMALTABLE"
9129 >the resulting document tree</TD
9155 CLASS="PROGRAMLISTING"
9157 HREF="libxml-tree.html#XMLDTDPTR"
9159 > xmlParseDTD (const <A
9160 HREF="libxml-tree.html#XMLCHAR"
9164 HREF="libxml-tree.html#XMLCHAR"
9171 >Load and parse an external subset.</P
9175 CLASS="INFORMALTABLE"
9202 > a NAME* containing the External ID of the DTD</TD
9219 > a NAME* containing the URL to the DTD</TD
9237 >the resulting xmlDtdPtr or NULL in case of error.</TD
9252 NAME="XMLSAXPARSEDTD"
9254 >xmlSAXParseDTD ()</H3
9263 CLASS="PROGRAMLISTING"
9265 HREF="libxml-tree.html#XMLDTDPTR"
9267 > xmlSAXParseDTD (<A
9268 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
9269 >xmlSAXHandlerPtr</A
9272 HREF="libxml-tree.html#XMLCHAR"
9276 HREF="libxml-tree.html#XMLCHAR"
9283 >Load and parse an external subset.</P
9287 CLASS="INFORMALTABLE"
9314 > the SAX handler block</TD
9331 > a NAME* containing the External ID of the DTD</TD
9348 > a NAME* containing the URL to the DTD</TD
9366 >the resulting xmlDtdPtr or NULL in case of error.</TD
9381 NAME="XMLIOPARSEDTD"
9383 >xmlIOParseDTD ()</H3
9392 CLASS="PROGRAMLISTING"
9394 HREF="libxml-tree.html#XMLDTDPTR"
9397 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
9398 >xmlSAXHandlerPtr</A
9401 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
9402 >xmlParserInputBufferPtr</A
9405 HREF="libxml-encoding.html#XMLCHARENCODING"
9412 >Load and parse a DTD</P
9416 CLASS="INFORMALTABLE"
9443 > the SAX handler block or NULL</TD
9460 > an Input Buffer</TD
9477 > the charset encoding if known</TD
9495 >the resulting xmlDtdPtr or NULL in case of error.
9501 > will be freed at parsing end.</TD
9516 NAME="XMLPARSEBALANCEDCHUNKMEMORY"
9518 >xmlParseBalancedChunkMemory ()</H3
9527 CLASS="PROGRAMLISTING"
9528 >int xmlParseBalancedChunkMemory (<A
9529 HREF="libxml-tree.html#XMLDOCPTR"
9533 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
9534 >xmlSAXHandlerPtr</A
9539 HREF="libxml-tree.html#XMLCHAR"
9543 HREF="libxml-tree.html#XMLNODEPTR"
9550 >Parse a well-balanced chunk of an XML document
9551 called by the parser
9552 The allowed sequence for the Well Balanced Chunk is the one defined by
9553 the content production in the XML grammar:</P
9555 >[43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*</P
9559 CLASS="INFORMALTABLE"
9586 > the document the chunk pertains to</TD
9603 > the SAX handler bloc (possibly NULL)</TD
9620 > The user data returned on SAX callbacks (possibly NULL)</TD
9637 > Used for loop detection, use 0</TD
9654 > the input string in UTF8 or ISO-Latin (zero terminated)</TD
9671 > the return value for the set of parsed nodes</TD
9689 >0 if the chunk is well balanced, -1 in case of args problem and
9690 the parser error code otherwise</TD
9705 NAME="XMLPARSEBALANCEDCHUNKMEMORYRECOVER"
9707 >xmlParseBalancedChunkMemoryRecover ()</H3
9716 CLASS="PROGRAMLISTING"
9717 >int xmlParseBalancedChunkMemoryRecover
9719 HREF="libxml-tree.html#XMLDOCPTR"
9723 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
9724 >xmlSAXHandlerPtr</A
9729 HREF="libxml-tree.html#XMLCHAR"
9733 HREF="libxml-tree.html#XMLNODEPTR"
9741 >Parse a well-balanced chunk of an XML document
9742 called by the parser
9743 The allowed sequence for the Well Balanced Chunk is the one defined by
9744 the content production in the XML grammar:</P
9746 >[43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*</P
9750 CLASS="INFORMALTABLE"
9777 > the document the chunk pertains to</TD
9794 > the SAX handler bloc (possibly NULL)</TD
9811 > The user data returned on SAX callbacks (possibly NULL)</TD
9828 > Used for loop detection, use 0</TD
9845 > the input string in UTF8 or ISO-Latin (zero terminated)</TD
9862 > the return value for the set of parsed nodes</TD
9879 > return nodes even if the data is broken (use 0)</TD
9897 >0 if the chunk is well balanced, -1 in case of args problem and
9898 the parser error code otherwise
9900 In case recover is set to 1, the nodelist will not be empty even if
9901 the parsed chunk is not well balanced. </TD
9916 NAME="XMLPARSEEXTERNALENTITY"
9918 >xmlParseExternalEntity ()</H3
9927 CLASS="PROGRAMLISTING"
9928 >int xmlParseExternalEntity (<A
9929 HREF="libxml-tree.html#XMLDOCPTR"
9933 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
9934 >xmlSAXHandlerPtr</A
9939 HREF="libxml-tree.html#XMLCHAR"
9943 HREF="libxml-tree.html#XMLCHAR"
9947 HREF="libxml-tree.html#XMLNODEPTR"
9954 >Parse an external general entity
9955 An external general parsed entity is well-formed if it matches the
9956 production labeled extParsedEnt.</P
9958 >[78] extParsedEnt ::= TextDecl? content</P
9962 CLASS="INFORMALTABLE"
9989 > the document the chunk pertains to</TD
10006 > the SAX handler bloc (possibly NULL)</TD
10023 > The user data returned on SAX callbacks (possibly NULL)</TD
10040 > Used for loop detection, use 0</TD
10057 > the URL for the entity to load</TD
10074 > the System ID for the entity to load</TD
10091 > the return value for the set of parsed nodes</TD
10109 >0 if the entity is well formed, -1 in case of args problem and
10110 the parser error code otherwise</TD
10125 NAME="XMLPARSECTXTEXTERNALENTITY"
10127 >xmlParseCtxtExternalEntity ()</H3
10136 CLASS="PROGRAMLISTING"
10137 >int xmlParseCtxtExternalEntity (<A
10138 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
10139 >xmlParserCtxtPtr</A
10142 HREF="libxml-tree.html#XMLCHAR"
10146 HREF="libxml-tree.html#XMLCHAR"
10150 HREF="libxml-tree.html#XMLNODEPTR"
10157 >Parse an external general entity within an existing parsing context
10158 An external general parsed entity is well-formed if it matches the
10159 production labeled extParsedEnt.</P
10161 >[78] extParsedEnt ::= TextDecl? content</P
10165 CLASS="INFORMALTABLE"
10192 > the existing parsing context</TD
10209 > the URL for the entity to load</TD
10226 > the System ID for the entity to load</TD
10243 > the return value for the set of parsed nodes</TD
10261 >0 if the entity is well formed, -1 in case of args problem and
10262 the parser error code otherwise</TD
10277 NAME="XMLINITPARSERCTXT"
10279 >xmlInitParserCtxt ()</H3
10288 CLASS="PROGRAMLISTING"
10289 >void xmlInitParserCtxt (<A
10290 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
10291 >xmlParserCtxtPtr</A
10297 >Initialize a parser context</P
10301 CLASS="INFORMALTABLE"
10328 > an XML parser context</TD
10343 NAME="XMLCLEARPARSERCTXT"
10345 >xmlClearParserCtxt ()</H3
10354 CLASS="PROGRAMLISTING"
10355 >void xmlClearParserCtxt (<A
10356 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
10357 >xmlParserCtxtPtr</A
10363 >Clear (release owned resources) and reinitialize a parser context</P
10367 CLASS="INFORMALTABLE"
10394 > an XML parser context</TD
10409 NAME="XMLFREEPARSERCTXT"
10411 >xmlFreeParserCtxt ()</H3
10420 CLASS="PROGRAMLISTING"
10421 >void xmlFreeParserCtxt (<A
10422 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
10423 >xmlParserCtxtPtr</A
10429 >Free all the memory used by a parser context. However the parsed
10430 document in ctxt->myDoc is not freed.</P
10434 CLASS="INFORMALTABLE"
10461 > an XML parser context</TD
10476 NAME="XMLSETUPPARSERFORBUFFER"
10478 >xmlSetupParserForBuffer ()</H3
10487 CLASS="PROGRAMLISTING"
10488 >void xmlSetupParserForBuffer (<A
10489 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
10490 >xmlParserCtxtPtr</A
10493 HREF="libxml-tree.html#XMLCHAR"
10496 const char *filename);</PRE
10501 >Setup the parser context to parse a new buffer; Clears any prior
10502 contents from the parser context. The buffer parameter must not be
10503 NULL, but the filename parameter can be</P
10507 CLASS="INFORMALTABLE"
10534 > an XML parser context</TD
10551 > a xmlChar * buffer</TD
10583 NAME="XMLCREATEDOCPARSERCTXT"
10585 >xmlCreateDocParserCtxt ()</H3
10594 CLASS="PROGRAMLISTING"
10596 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
10597 >xmlParserCtxtPtr</A
10598 > xmlCreateDocParserCtxt (<A
10599 HREF="libxml-tree.html#XMLCHAR"
10606 >Creates a parser context for an XML in-memory document.</P
10610 CLASS="INFORMALTABLE"
10637 > a pointer to an array of xmlChar</TD
10655 >the new parser context or NULL</TD
10670 NAME="XMLGETFEATURESLIST"
10672 >xmlGetFeaturesList ()</H3
10681 CLASS="PROGRAMLISTING"
10682 >int xmlGetFeaturesList (int *len,
10683 const char **result);</PRE
10693 > feature names into the <TT
10702 CLASS="INFORMALTABLE"
10729 > the length of the features name array (input/output)</TD
10746 > an array of string to be filled with the features name.</TD
10764 >-1 in case or error, or the total number of features,
10765 len is updated with the number of strings copied,
10766 strings must not be deallocated</TD
10781 NAME="XMLGETFEATURE"
10783 >xmlGetFeature ()</H3
10792 CLASS="PROGRAMLISTING"
10793 >int xmlGetFeature (<A
10794 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
10795 >xmlParserCtxtPtr</A
10798 void *result);</PRE
10803 >Read the current value of one feature of this parser instance</P
10807 CLASS="INFORMALTABLE"
10834 > an XML/HTML parser context</TD
10851 > the feature name</TD
10868 > location to store the result</TD
10886 >-1 in case or error, 0 otherwise</TD
10901 NAME="XMLSETFEATURE"
10903 >xmlSetFeature ()</H3
10912 CLASS="PROGRAMLISTING"
10913 >int xmlSetFeature (<A
10914 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
10915 >xmlParserCtxtPtr</A
10923 >Change the current value of one feature of this parser instance</P
10927 CLASS="INFORMALTABLE"
10954 > an XML/HTML parser context</TD
10971 > the feature name</TD
10988 > pointer to the location of the new value</TD
11006 >-1 in case or error, 0 otherwise</TD
11021 NAME="XMLCREATEPUSHPARSERCTXT"
11023 >xmlCreatePushParserCtxt ()</H3
11032 CLASS="PROGRAMLISTING"
11034 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
11035 >xmlParserCtxtPtr</A
11036 > xmlCreatePushParserCtxt (<A
11037 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
11038 >xmlSAXHandlerPtr</A
11043 const char *filename);</PRE
11048 >Create a parser context for using the XML parser in push mode
11049 To allow content encoding detection, <TT
11054 > should be >= 4
11060 > is used for fetching external entities
11061 and error/warning reports.</P
11065 CLASS="INFORMALTABLE"
11092 > a SAX handler</TD
11109 > The user data returned on SAX callbacks</TD
11126 > a pointer to an array of chars</TD
11143 > number of chars in the array</TD
11160 > an optional file name or URI</TD
11178 >the new parser context or NULL</TD
11193 NAME="XMLPARSECHUNK"
11195 >xmlParseChunk ()</H3
11204 CLASS="PROGRAMLISTING"
11205 >int xmlParseChunk (<A
11206 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
11207 >xmlParserCtxtPtr</A
11211 int terminate);</PRE
11216 >Parse a Chunk of memory</P
11220 CLASS="INFORMALTABLE"
11247 > an XML parser context</TD
11264 > an char array</TD
11281 > the size in byte of the chunk</TD
11298 > last chunk indicator</TD
11316 >zero if no error, the xmlParserErrors otherwise.</TD
11331 NAME="XMLCREATEIOPARSERCTXT"
11333 >xmlCreateIOParserCtxt ()</H3
11342 CLASS="PROGRAMLISTING"
11344 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
11345 >xmlParserCtxtPtr</A
11346 > xmlCreateIOParserCtxt (<A
11347 HREF="libxml-tree.html#XMLSAXHANDLERPTR"
11348 >xmlSAXHandlerPtr</A
11352 HREF="libxml-xmlio.html#XMLINPUTREADCALLBACK"
11353 >xmlInputReadCallback</A
11356 HREF="libxml-xmlio.html#XMLINPUTCLOSECALLBACK"
11357 >xmlInputCloseCallback</A
11361 HREF="libxml-encoding.html#XMLCHARENCODING"
11362 >xmlCharEncoding</A
11368 >Create a parser context for using the XML parser with an existing
11373 CLASS="INFORMALTABLE"
11400 > a SAX handler</TD
11417 > The user data returned on SAX callbacks</TD
11434 > an I/O read function</TD
11451 > an I/O close function</TD
11468 > an I/O handler</TD
11485 > the charset encoding if known</TD
11503 >the new parser context or NULL</TD
11518 NAME="XMLNEWIOINPUTSTREAM"
11520 >xmlNewIOInputStream ()</H3
11529 CLASS="PROGRAMLISTING"
11531 HREF="libxml-tree.html#XMLPARSERINPUTPTR"
11532 >xmlParserInputPtr</A
11533 > xmlNewIOInputStream (<A
11534 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
11535 >xmlParserCtxtPtr</A
11538 HREF="libxml-tree.html#XMLPARSERINPUTBUFFERPTR"
11539 >xmlParserInputBufferPtr</A
11542 HREF="libxml-encoding.html#XMLCHARENCODING"
11543 >xmlCharEncoding</A
11549 >Create a new input stream structure encapsulating the <TT
11555 a stream suitable for the parser.</P
11559 CLASS="INFORMALTABLE"
11586 > an XML parser context</TD
11620 > the charset encoding if known</TD
11638 >the new input stream or NULL</TD
11653 NAME="XMLPARSERFINDNODEINFO"
11655 >xmlParserFindNodeInfo ()</H3
11664 CLASS="PROGRAMLISTING"
11666 HREF="libxml-parser.html#XMLPARSERNODEINFO"
11667 >xmlParserNodeInfo</A
11668 >* xmlParserFindNodeInfo
11670 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
11671 >xmlParserCtxtPtr</A
11674 HREF="libxml-tree.html#XMLNODEPTR"
11681 >Find the parser node info struct for a given node</P
11685 CLASS="INFORMALTABLE"
11712 > an XML parser context</TD
11729 > an XML node within the tree</TD
11747 >an xmlParserNodeInfo block pointer or NULL</TD
11762 NAME="XMLINITNODEINFOSEQ"
11764 >xmlInitNodeInfoSeq ()</H3
11773 CLASS="PROGRAMLISTING"
11774 >void xmlInitNodeInfoSeq (<A
11775 HREF="libxml-parser.html#XMLPARSERNODEINFOSEQPTR"
11776 >xmlParserNodeInfoSeqPtr</A
11782 >-- Initialize (set to initial state) node info sequence</P
11786 CLASS="INFORMALTABLE"
11813 > a node info sequence pointer</TD
11828 NAME="XMLCLEARNODEINFOSEQ"
11830 >xmlClearNodeInfoSeq ()</H3
11839 CLASS="PROGRAMLISTING"
11840 >void xmlClearNodeInfoSeq (<A
11841 HREF="libxml-parser.html#XMLPARSERNODEINFOSEQPTR"
11842 >xmlParserNodeInfoSeqPtr</A
11848 >-- Clear (release memory and reinitialize) node
11853 CLASS="INFORMALTABLE"
11880 > a node info sequence pointer</TD
11895 NAME="XMLPARSERFINDNODEINFOINDEX"
11897 >xmlParserFindNodeInfoIndex ()</H3
11906 CLASS="PROGRAMLISTING"
11907 >unsigned <GTKDOCLINK
11910 > xmlParserFindNodeInfoIndex (const <A
11911 HREF="libxml-parser.html#XMLPARSERNODEINFOSEQPTR"
11912 >xmlParserNodeInfoSeqPtr</A
11915 HREF="libxml-tree.html#XMLNODEPTR"
11922 >xmlParserFindNodeInfoIndex : Find the index that the info record for
11923 the given node is or should be at in a sorted sequence</P
11927 CLASS="INFORMALTABLE"
11954 > a node info sequence pointer</TD
11971 > an XML node pointer</TD
11989 >a long indicating the position of the record</TD
12004 NAME="XMLPARSERADDNODEINFO"
12006 >xmlParserAddNodeInfo ()</H3
12015 CLASS="PROGRAMLISTING"
12016 >void xmlParserAddNodeInfo (<A
12017 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
12018 >xmlParserCtxtPtr</A
12021 HREF="libxml-parser.html#XMLPARSERNODEINFOPTR"
12022 >xmlParserNodeInfoPtr</A
12028 >Insert node info record into the sorted sequence</P
12032 CLASS="INFORMALTABLE"
12059 > an XML parser context</TD
12076 > a node info sequence pointer</TD
12091 NAME="XMLSETEXTERNALENTITYLOADER"
12093 >xmlSetExternalEntityLoader ()</H3
12102 CLASS="PROGRAMLISTING"
12103 >void xmlSetExternalEntityLoader (<A
12104 HREF="libxml-parser.html#XMLEXTERNALENTITYLOADER"
12105 >xmlExternalEntityLoader</A
12111 >Changes the defaultexternal entity resolver function for the application</P
12115 CLASS="INFORMALTABLE"
12142 > the new entity resolver function</TD
12157 NAME="XMLGETEXTERNALENTITYLOADER"
12159 >xmlGetExternalEntityLoader ()</H3
12168 CLASS="PROGRAMLISTING"
12170 HREF="libxml-parser.html#XMLEXTERNALENTITYLOADER"
12171 >xmlExternalEntityLoader</A
12172 > xmlGetExternalEntityLoader
12178 >Get the default external entity resolver function for the application</P
12182 CLASS="INFORMALTABLE"
12210 >the xmlExternalEntityLoader function pointer</TD
12225 NAME="XMLLOADEXTERNALENTITY"
12227 >xmlLoadExternalEntity ()</H3
12236 CLASS="PROGRAMLISTING"
12238 HREF="libxml-tree.html#XMLPARSERINPUTPTR"
12239 >xmlParserInputPtr</A
12240 > xmlLoadExternalEntity (const char *URL,
12243 HREF="libxml-tree.html#XMLPARSERCTXTPTR"
12244 >xmlParserCtxtPtr</A
12250 >Load an external entity, note that the use of this function for
12251 unparsed entities may generate problems
12252 TODO: a more generic External entity API must be designed</P
12256 CLASS="INFORMALTABLE"
12283 > the URL for the entity to load</TD
12300 > the Public ID for the entity to load</TD
12317 > the context in which the entity is called or NULL</TD
12335 >the xmlParserInputPtr or NULL</TD
12347 CLEAR="all"><BR><TABLE
12359 HREF="libxml-lib.html"
12364 ><<< Previous Page</B
12397 HREF="libxml-lib.html"
12413 HREF="libxml-sax.html"
12418 >Next Page >>></B
12431 >Libxml Library Reference</B