ReactOS 0.4.15-dev-7928-g68a8619
tree.h
Go to the documentation of this file.
1/*
2 * Summary: interfaces for tree manipulation
3 * Description: this module describes the structures found in an tree resulting
4 * from an XML or HTML parsing, as well as the API provided for
5 * various processing on that tree
6 *
7 * Copy: See Copyright for the status of this software.
8 *
9 * Author: Daniel Veillard
10 */
11
12#ifndef __XML_TREE_H__
13#define __XML_TREE_H__
14
15#include <stdio.h>
16#include <limits.h>
17#include <libxml/xmlversion.h>
18#include <libxml/xmlstring.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24/*
25 * Some of the basic types pointer to structures:
26 */
27/* xmlIO.h */
30
31typedef struct _xmlOutputBuffer xmlOutputBuffer;
33
34/* parser.h */
37
40
43
46
47/* entities.h */
48typedef struct _xmlEntity xmlEntity;
50
56#define BASE_BUFFER_SIZE 4096
57
65/* #define LIBXML_NAMESPACE_DICT */
66
74typedef enum {
75 XML_BUFFER_ALLOC_DOUBLEIT, /* double each time one need to grow */
76 XML_BUFFER_ALLOC_EXACT, /* grow only to the minimal size */
77 XML_BUFFER_ALLOC_IMMUTABLE, /* immutable buffer */
78 XML_BUFFER_ALLOC_IO, /* special allocation scheme used for I/O */
79 XML_BUFFER_ALLOC_HYBRID, /* exact up to a threshold, and doubleit thereafter */
80 XML_BUFFER_ALLOC_BOUNDED /* limit the upper size of the buffer */
82
89typedef struct _xmlBuffer xmlBuffer;
91struct _xmlBuffer {
92 xmlChar *content; /* The buffer content UTF8 */
93 unsigned int use; /* The buffer size used */
94 unsigned int size; /* The buffer size */
95 xmlBufferAllocationScheme alloc; /* The realloc method */
96 xmlChar *contentIO; /* in IO mode we may have a different base */
97};
98
105typedef struct _xmlBuf xmlBuf;
106
115
116/*
117 * A few public routines for xmlBuf. As those are expected to be used
118 * mostly internally the bulk of the routines are internal in buf.h
119 */
124
125/*
126 * LIBXML2_NEW_BUFFER:
127 *
128 * Macro used to express that the API use the new buffers for
129 * xmlParserInputBuffer and xmlOutputBuffer. The change was
130 * introduced in 2.9.0.
131 */
132#define LIBXML2_NEW_BUFFER
133
140#define XML_XML_NAMESPACE \
141 (const xmlChar *) "http://www.w3.org/XML/1998/namespace"
142
148#define XML_XML_ID (const xmlChar *) "xml:id"
149
150/*
151 * The different element types carried by an XML tree.
152 *
153 * NOTE: This is synchronized with DOM Level1 values
154 * See http://www.w3.org/TR/REC-DOM-Level-1/
155 *
156 * Actually this had diverged a bit, and now XML_DOCUMENT_TYPE_NODE should
157 * be deprecated to use an XML_DTD_NODE.
158 */
159typedef enum {
180 /* XML_DOCB_DOCUMENT_NODE= 21 */ /* removed */
182
183/* For backward compatibility */
184#define XML_DOCB_DOCUMENT_NODE 21
185
195 const xmlChar *name; /* Notation name */
196 const xmlChar *PublicID; /* Public identifier, if any */
197 const xmlChar *SystemID; /* System identifier, if any */
198};
199
206typedef enum {
218
225typedef enum {
231
241 struct _xmlEnumeration *next; /* next one */
242 const xmlChar *name; /* Enumeration name */
243};
244
254 void *_private; /* application data */
255 xmlElementType type; /* XML_ATTRIBUTE_DECL, must be second ! */
256 const xmlChar *name; /* Attribute name */
257 struct _xmlNode *children; /* NULL */
258 struct _xmlNode *last; /* NULL */
259 struct _xmlDtd *parent; /* -> DTD */
260 struct _xmlNode *next; /* next sibling link */
261 struct _xmlNode *prev; /* previous sibling link */
262 struct _xmlDoc *doc; /* the containing document */
263
264 struct _xmlAttribute *nexth; /* next in hash table */
265 xmlAttributeType atype; /* The attribute type */
266 xmlAttributeDefault def; /* the default */
267 const xmlChar *defaultValue; /* or the default value */
268 xmlEnumerationPtr tree; /* or the enumeration tree if any */
269 const xmlChar *prefix; /* the namespace prefix if any */
270 const xmlChar *elem; /* Element holding the attribute */
271};
272
278typedef enum {
284
290typedef enum {
296
307 xmlElementContentType type; /* PCDATA, ELEMENT, SEQ or OR */
308 xmlElementContentOccur ocur; /* ONCE, OPT, MULT or PLUS */
309 const xmlChar *name; /* Element name */
310 struct _xmlElementContent *c1; /* first child */
311 struct _xmlElementContent *c2; /* second child */
312 struct _xmlElementContent *parent; /* parent */
313 const xmlChar *prefix; /* Namespace prefix */
314};
315
322typedef enum {
329
330#ifdef __cplusplus
331}
332#endif
333#include <libxml/xmlregexp.h>
334#ifdef __cplusplus
335extern "C" {
336#endif
337
344typedef struct _xmlElement xmlElement;
347 void *_private; /* application data */
348 xmlElementType type; /* XML_ELEMENT_DECL, must be second ! */
349 const xmlChar *name; /* Element name */
350 struct _xmlNode *children; /* NULL */
351 struct _xmlNode *last; /* NULL */
352 struct _xmlDtd *parent; /* -> DTD */
353 struct _xmlNode *next; /* next sibling link */
354 struct _xmlNode *prev; /* previous sibling link */
355 struct _xmlDoc *doc; /* the containing document */
356
357 xmlElementTypeVal etype; /* The type */
358 xmlElementContentPtr content; /* the allowed element content */
359 xmlAttributePtr attributes; /* List of the declared attributes */
360 const xmlChar *prefix; /* the namespace prefix if any */
361#ifdef LIBXML_REGEXP_ENABLED
362 xmlRegexpPtr contModel; /* the validating regexp */
363#else
365#endif
366};
367
368
374#define XML_LOCAL_NAMESPACE XML_NAMESPACE_DECL
376
387typedef struct _xmlNs xmlNs;
389struct _xmlNs {
390 struct _xmlNs *next; /* next Ns link for this node */
391 xmlNsType type; /* global or local */
392 const xmlChar *href; /* URL for the namespace */
393 const xmlChar *prefix; /* prefix for the namespace */
394 void *_private; /* application data */
395 struct _xmlDoc *context; /* normally an xmlDoc */
396};
397
404typedef struct _xmlDtd xmlDtd;
406struct _xmlDtd {
407 void *_private; /* application data */
408 xmlElementType type; /* XML_DTD_NODE, must be second ! */
409 const xmlChar *name; /* Name of the DTD */
410 struct _xmlNode *children; /* the value of the property link */
411 struct _xmlNode *last; /* last child link */
412 struct _xmlDoc *parent; /* child->parent link */
413 struct _xmlNode *next; /* next sibling link */
414 struct _xmlNode *prev; /* previous sibling link */
415 struct _xmlDoc *doc; /* the containing document */
416
417 /* End of common part */
418 void *notations; /* Hash table for notations if any */
419 void *elements; /* Hash table for elements if any */
420 void *attributes; /* Hash table for attributes if any */
421 void *entities; /* Hash table for entities if any */
422 const xmlChar *ExternalID; /* External identifier for PUBLIC DTD */
423 const xmlChar *SystemID; /* URI for a SYSTEM or PUBLIC DTD */
424 void *pentities; /* Hash table for param entities if any */
425};
426
432typedef struct _xmlAttr xmlAttr;
434struct _xmlAttr {
435 void *_private; /* application data */
436 xmlElementType type; /* XML_ATTRIBUTE_NODE, must be second ! */
437 const xmlChar *name; /* the name of the property */
438 struct _xmlNode *children; /* the value of the property */
439 struct _xmlNode *last; /* NULL */
440 struct _xmlNode *parent; /* child->parent link */
441 struct _xmlAttr *next; /* next sibling link */
442 struct _xmlAttr *prev; /* previous sibling link */
443 struct _xmlDoc *doc; /* the containing document */
444 xmlNs *ns; /* pointer to the associated namespace */
445 xmlAttributeType atype; /* the attribute type if validating */
446 void *psvi; /* for type/PSVI information */
447};
448
455typedef struct _xmlID xmlID;
457struct _xmlID {
458 struct _xmlID *next; /* next ID */
459 const xmlChar *value; /* The ID name */
460 xmlAttrPtr attr; /* The attribute holding it */
461 const xmlChar *name; /* The attribute if attr is not available */
462 int lineno; /* The line number if attr is not available */
463 struct _xmlDoc *doc; /* The document holding the ID */
464};
465
472typedef struct _xmlRef xmlRef;
474struct _xmlRef {
475 struct _xmlRef *next; /* next Ref */
476 const xmlChar *value; /* The Ref name */
477 xmlAttrPtr attr; /* The attribute holding it */
478 const xmlChar *name; /* The attribute if attr is not available */
479 int lineno; /* The line number if attr is not available */
480};
481
487typedef struct _xmlNode xmlNode;
489struct _xmlNode {
490 void *_private; /* application data */
491 xmlElementType type; /* type number, must be second ! */
492 const xmlChar *name; /* the name of the node, or the entity */
493 struct _xmlNode *children; /* parent->childs link */
494 struct _xmlNode *last; /* last child link */
495 struct _xmlNode *parent; /* child->parent link */
496 struct _xmlNode *next; /* next sibling link */
497 struct _xmlNode *prev; /* previous sibling link */
498 struct _xmlDoc *doc; /* the containing document */
499
500 /* End of common part */
501 xmlNs *ns; /* pointer to the associated namespace */
502 xmlChar *content; /* the content */
503 struct _xmlAttr *properties;/* properties list */
504 xmlNs *nsDef; /* namespace definitions on this node */
505 void *psvi; /* for type/PSVI information */
506 unsigned short line; /* line number */
507 unsigned short extra; /* extra data for XPath/XSLT */
508};
509
515#define XML_GET_CONTENT(n) \
516 ((n)->type == XML_ELEMENT_NODE ? NULL : (n)->content)
517
523#define XML_GET_LINE(n) \
524 (xmlGetLineNo(n))
525
532typedef enum {
533 XML_DOC_WELLFORMED = 1<<0, /* document is XML well formed */
534 XML_DOC_NSVALID = 1<<1, /* document is Namespace valid */
535 XML_DOC_OLD10 = 1<<2, /* parsed with old XML-1.0 parser */
536 XML_DOC_DTDVALID = 1<<3, /* DTD validation was successful */
537 XML_DOC_XINCLUDE = 1<<4, /* XInclude substitution was done */
538 XML_DOC_USERBUILT = 1<<5, /* Document was built using the API
539 and not by parsing an instance */
540 XML_DOC_INTERNAL = 1<<6, /* built for internal processing */
541 XML_DOC_HTML = 1<<7 /* parsed or built HTML document */
543
549typedef struct _xmlDoc xmlDoc;
551struct _xmlDoc {
552 void *_private; /* application data */
553 xmlElementType type; /* XML_DOCUMENT_NODE, must be second ! */
554 char *name; /* name/filename/URI of the document */
555 struct _xmlNode *children; /* the document tree */
556 struct _xmlNode *last; /* last child link */
557 struct _xmlNode *parent; /* child->parent link */
558 struct _xmlNode *next; /* next sibling link */
559 struct _xmlNode *prev; /* previous sibling link */
560 struct _xmlDoc *doc; /* autoreference to itself */
561
562 /* End of common part */
563 int compression;/* level of zlib compression */
564 int standalone; /* standalone document (no external refs)
565 1 if standalone="yes"
566 0 if standalone="no"
567 -1 if there is no XML declaration
568 -2 if there is an XML declaration, but no
569 standalone attribute was specified */
570 struct _xmlDtd *intSubset; /* the document internal subset */
571 struct _xmlDtd *extSubset; /* the document external subset */
572 struct _xmlNs *oldNs; /* Global namespace, the old way */
573 const xmlChar *version; /* the XML version string */
574 const xmlChar *encoding; /* external initial encoding, if any */
575 void *ids; /* Hash table for ID attributes if any */
576 void *refs; /* Hash table for IDREFs attributes if any */
577 const xmlChar *URL; /* The URI for that document */
578 int charset; /* Internal flag for charset handling,
579 actually an xmlCharEncoding */
580 struct _xmlDict *dict; /* dict used to allocate names or NULL */
581 void *psvi; /* for type/PSVI information */
582 int parseFlags; /* set of xmlParserOption used to parse the
583 document */
584 int properties; /* set of xmlDocProperties for this document
585 set at the end of parsing */
586};
587
588
591
605 const xmlChar *nsName,
606 const xmlChar *nsPrefix);
607
614 void * _private;
615 /*
616 * The type of this context, just in case we need specialized
617 * contexts in the future.
618 */
619 int type;
620 /*
621 * Internal namespace map used for various operations.
622 */
624 /*
625 * Use this one to acquire an xmlNsPtr intended for node->ns.
626 * (Note that this is not intended for elem->nsDef).
627 */
629};
630
637#ifndef xmlChildrenNode
638#define xmlChildrenNode children
639#endif
640
647#ifndef xmlRootNode
648#define xmlRootNode children
649#endif
650
651/*
652 * Variables.
653 */
654
655/*
656 * Some helper functions
657 */
658#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XPATH_ENABLED) || \
659 defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_DEBUG_ENABLED) || \
660 defined (LIBXML_HTML_ENABLED) || defined(LIBXML_SAX1_ENABLED) || \
661 defined(LIBXML_HTML_ENABLED) || defined(LIBXML_WRITER_ENABLED) || \
662 defined(LIBXML_LEGACY_ENABLED)
664 xmlValidateNCName (const xmlChar *value,
665 int space);
666#endif
667
668#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
670 xmlValidateQName (const xmlChar *value,
671 int space);
673 xmlValidateName (const xmlChar *value,
674 int space);
676 xmlValidateNMToken (const xmlChar *value,
677 int space);
678#endif
679
681 xmlBuildQName (const xmlChar *ncname,
682 const xmlChar *prefix,
684 int len);
687 xmlChar **prefix);
690 int *len);
691
692/*
693 * Handling Buffers, the old ones see @xmlBuf for the new ones.
694 */
695
700
707 size_t size);
710 unsigned int size);
718 const xmlChar *str,
719 int len);
722 const xmlChar *str,
723 int len);
726 const xmlChar *str);
729 const char *str);
732 unsigned int len);
735 unsigned int len);
747
748/*
749 * Creating/freeing new structures.
750 */
753 const xmlChar *name,
754 const xmlChar *ExternalID,
755 const xmlChar *SystemID);
758 const xmlChar *name,
759 const xmlChar *ExternalID,
760 const xmlChar *SystemID);
765#ifdef LIBXML_LEGACY_ENABLED
768 xmlNewGlobalNs (xmlDocPtr doc,
769 const xmlChar *href,
770 const xmlChar *prefix);
771#endif /* LIBXML_LEGACY_ENABLED */
774 const xmlChar *href,
775 const xmlChar *prefix);
786 const xmlChar *name,
787 const xmlChar *value);
788#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || \
789 defined(LIBXML_SCHEMAS_ENABLED)
791 xmlNewProp (xmlNodePtr node,
792 const xmlChar *name,
793 const xmlChar *value);
794#endif
797 xmlNsPtr ns,
798 const xmlChar *name,
799 const xmlChar *value);
802 xmlNsPtr ns,
803 xmlChar *name,
804 const xmlChar *value);
815#ifdef LIBXML_TREE_ENABLED
817 xmlCopyDtd (xmlDtdPtr dtd);
818#endif /* LIBXML_TREE_ENABLED */
819#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
821 xmlCopyDoc (xmlDocPtr doc,
822 int recursive);
823#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */
824/*
825 * Creating new nodes.
826 */
829 xmlNsPtr ns,
830 const xmlChar *name,
831 const xmlChar *content);
834 xmlNsPtr ns,
835 xmlChar *name,
836 const xmlChar *content);
839 const xmlChar *name);
842 xmlChar *name);
843#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
845 xmlNewChild (xmlNodePtr parent,
846 xmlNsPtr ns,
847 const xmlChar *name,
848 const xmlChar *content);
849#endif
852 const xmlChar *content);
857 const xmlChar *name,
858 const xmlChar *content);
861 const xmlChar *content);
864 const xmlChar *content,
865 int len);
868 int len);
871 const xmlChar *content);
876 const xmlChar *content,
877 int len);
880 const xmlChar *name);
883 const xmlChar *name);
886 int recursive);
889 xmlDocPtr doc,
890 int recursive);
896#ifdef LIBXML_TREE_ENABLED
898 xmlNewTextChild (xmlNodePtr parent,
899 xmlNsPtr ns,
900 const xmlChar *name,
901 const xmlChar *content);
903 xmlNewDocRawNode (xmlDocPtr doc,
904 xmlNsPtr ns,
905 const xmlChar *name,
906 const xmlChar *content);
908 xmlNewDocFragment (xmlDocPtr doc);
909#endif /* LIBXML_TREE_ENABLED */
910
911/*
912 * Navigating.
913 */
916#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_DEBUG_ENABLED)
918 xmlGetNodePath (const xmlNode *node);
919#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_DEBUG_ENABLED) */
928
929/*
930 * Changing the structure.
931 */
932#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED)
934 xmlDocSetRootElement (xmlDocPtr doc,
936#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED) */
937#ifdef LIBXML_TREE_ENABLED
939 xmlNodeSetName (xmlNodePtr cur,
940 const xmlChar *name);
941#endif /* LIBXML_TREE_ENABLED */
948#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED)
950 xmlReplaceNode (xmlNodePtr old,
952#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED) */
953#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || \
954 defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED)
956 xmlAddPrevSibling (xmlNodePtr cur,
958#endif /* LIBXML_TREE_ENABLED || LIBXML_HTML_ENABLED || LIBXML_SCHEMAS_ENABLED */
969 xmlNodePtr second);
972 const xmlChar *content,
973 int len);
980 xmlDocPtr doc);
983 xmlDocPtr doc);
984/*
985 * Namespaces.
986 */
990 const xmlChar *nameSpace);
994 const xmlChar *href);
995#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XPATH_ENABLED) || \
996 defined(LIBXML_SCHEMAS_ENABLED)
998 xmlGetNsList (const xmlDoc *doc,
999 const xmlNode *node);
1000#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XPATH_ENABLED) */
1001
1002XMLPUBFUN void XMLCALL
1004 xmlNsPtr ns);
1009
1010/*
1011 * Changing the content.
1012 */
1013#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || \
1014 defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED)
1016 xmlSetProp (xmlNodePtr node,
1017 const xmlChar *name,
1018 const xmlChar *value);
1020 xmlSetNsProp (xmlNodePtr node,
1021 xmlNsPtr ns,
1022 const xmlChar *name,
1023 const xmlChar *value);
1024#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || \
1025 defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED) */
1028 const xmlChar *name);
1031 const xmlChar *name);
1034 const xmlChar *name);
1037 const xmlChar *name,
1038 const xmlChar *nameSpace);
1041 const xmlChar *name,
1042 const xmlChar *nameSpace);
1045 const xmlChar *value);
1048 const xmlChar *value,
1049 int len);
1052 const xmlNode *list,
1053 int inLine);
1054#ifdef LIBXML_TREE_ENABLED
1056 xmlNodeListGetRawString (const xmlDoc *doc,
1057 const xmlNode *list,
1058 int inLine);
1059#endif /* LIBXML_TREE_ENABLED */
1060XMLPUBFUN void XMLCALL
1062 const xmlChar *content);
1063#ifdef LIBXML_TREE_ENABLED
1064XMLPUBFUN void XMLCALL
1065 xmlNodeSetContentLen (xmlNodePtr cur,
1066 const xmlChar *content,
1067 int len);
1068#endif /* LIBXML_TREE_ENABLED */
1069XMLPUBFUN void XMLCALL
1071 const xmlChar *content);
1072XMLPUBFUN void XMLCALL
1074 const xmlChar *content,
1075 int len);
1078
1081 const xmlNode *cur);
1084 const xmlNode *cur);
1085
1090#ifdef LIBXML_TREE_ENABLED
1091XMLPUBFUN void XMLCALL
1092 xmlNodeSetLang (xmlNodePtr cur,
1093 const xmlChar *lang);
1094XMLPUBFUN void XMLCALL
1095 xmlNodeSetSpacePreserve (xmlNodePtr cur,
1096 int val);
1097#endif /* LIBXML_TREE_ENABLED */
1100 const xmlNode *cur);
1101#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED)
1102XMLPUBFUN void XMLCALL
1103 xmlNodeSetBase (xmlNodePtr cur,
1104 const xmlChar *uri);
1105#endif
1106
1107/*
1108 * Removing content.
1109 */
1112#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
1114 xmlUnsetNsProp (xmlNodePtr node,
1115 xmlNsPtr ns,
1116 const xmlChar *name);
1118 xmlUnsetProp (xmlNodePtr node,
1119 const xmlChar *name);
1120#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */
1121
1122/*
1123 * Internal, don't use.
1124 */
1125XMLPUBFUN void XMLCALL
1127 const xmlChar *string);
1128XMLPUBFUN void XMLCALL
1130 const char *string);
1131XMLPUBFUN void XMLCALL
1133 const xmlChar *string);
1134
1135#ifdef LIBXML_OUTPUT_ENABLED
1136XMLPUBFUN void xmlAttrSerializeTxtContent(xmlBufferPtr buf,
1137 xmlDocPtr doc,
1139 const xmlChar *string);
1140#endif /* LIBXML_OUTPUT_ENABLED */
1141
1142#ifdef LIBXML_TREE_ENABLED
1143/*
1144 * Namespace handling.
1145 */
1147 xmlReconciliateNs (xmlDocPtr doc,
1149#endif
1150
1151#ifdef LIBXML_OUTPUT_ENABLED
1152/*
1153 * Saving.
1154 */
1155XMLPUBFUN void XMLCALL
1156 xmlDocDumpFormatMemory (xmlDocPtr cur,
1157 xmlChar **mem,
1158 int *size,
1159 int format);
1160XMLPUBFUN void XMLCALL
1161 xmlDocDumpMemory (xmlDocPtr cur,
1162 xmlChar **mem,
1163 int *size);
1164XMLPUBFUN void XMLCALL
1165 xmlDocDumpMemoryEnc (xmlDocPtr out_doc,
1166 xmlChar **doc_txt_ptr,
1167 int * doc_txt_len,
1168 const char *txt_encoding);
1169XMLPUBFUN void XMLCALL
1170 xmlDocDumpFormatMemoryEnc(xmlDocPtr out_doc,
1171 xmlChar **doc_txt_ptr,
1172 int * doc_txt_len,
1173 const char *txt_encoding,
1174 int format);
1176 xmlDocFormatDump (FILE *f,
1177 xmlDocPtr cur,
1178 int format);
1180 xmlDocDump (FILE *f,
1181 xmlDocPtr cur);
1182XMLPUBFUN void XMLCALL
1183 xmlElemDump (FILE *f,
1184 xmlDocPtr doc,
1185 xmlNodePtr cur);
1187 xmlSaveFile (const char *filename,
1188 xmlDocPtr cur);
1190 xmlSaveFormatFile (const char *filename,
1191 xmlDocPtr cur,
1192 int format);
1193XMLPUBFUN size_t XMLCALL
1194 xmlBufNodeDump (xmlBufPtr buf,
1195 xmlDocPtr doc,
1197 int level,
1198 int format);
1200 xmlNodeDump (xmlBufferPtr buf,
1201 xmlDocPtr doc,
1203 int level,
1204 int format);
1205
1207 xmlSaveFileTo (xmlOutputBufferPtr buf,
1208 xmlDocPtr cur,
1209 const char *encoding);
1211 xmlSaveFormatFileTo (xmlOutputBufferPtr buf,
1212 xmlDocPtr cur,
1213 const char *encoding,
1214 int format);
1215XMLPUBFUN void XMLCALL
1216 xmlNodeDumpOutput (xmlOutputBufferPtr buf,
1217 xmlDocPtr doc,
1219 int level,
1220 int format,
1221 const char *encoding);
1222
1224 xmlSaveFormatFileEnc (const char *filename,
1225 xmlDocPtr cur,
1226 const char *encoding,
1227 int format);
1228
1230 xmlSaveFileEnc (const char *filename,
1231 xmlDocPtr cur,
1232 const char *encoding);
1233
1234#endif /* LIBXML_OUTPUT_ENABLED */
1235/*
1236 * XHTML
1237 */
1239 xmlIsXHTML (const xmlChar *systemID,
1240 const xmlChar *publicID);
1241
1242/*
1243 * Compression.
1244 */
1247XMLPUBFUN void XMLCALL
1249 int mode);
1252XMLPUBFUN void XMLCALL
1254
1255/*
1256* DOM-wrapper helper functions.
1257*/
1260XMLPUBFUN void XMLCALL
1265 int options);
1268 xmlDocPtr sourceDoc,
1270 xmlDocPtr destDoc,
1271 xmlNodePtr destParent,
1272 int options);
1275 xmlDocPtr doc,
1277 int options);
1280 xmlDocPtr sourceDoc,
1282 xmlNodePtr *clonedNode,
1283 xmlDocPtr destDoc,
1284 xmlNodePtr destParent,
1285 int deep,
1286 int options);
1287
1288#ifdef LIBXML_TREE_ENABLED
1289/*
1290 * 5 interfaces from DOM ElementTraversal, but different in entities
1291 * traversal.
1292 */
1293XMLPUBFUN unsigned long XMLCALL
1294 xmlChildElementCount (xmlNodePtr parent);
1296 xmlNextElementSibling (xmlNodePtr node);
1298 xmlFirstElementChild (xmlNodePtr parent);
1300 xmlLastElementChild (xmlNodePtr parent);
1302 xmlPreviousElementSibling (xmlNodePtr node);
1303#endif
1304#ifdef __cplusplus
1305}
1306#endif
1307#ifndef __XML_PARSER_H__
1308#include <libxml/xmlmemory.h>
1309#endif
1310
1311#endif /* __XML_TREE_H__ */
1312
Definition: list.h:37
content
Definition: atl_ax.c:994
static const WCHAR version[]
Definition: asmname.c:66
r parent
Definition: btrfs.c:3010
#define XMLCALL
FxCollectionEntry * cur
GLint level
Definition: gl.h:1546
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl.h:1546
GLsizeiptr size
Definition: glext.h:5919
GLuint buffer
Definition: glext.h:5915
GLfloat f
Definition: glext.h:7540
GLenum mode
Definition: glext.h:6217
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
const GLint * first
Definition: glext.h:5794
GLuint GLfloat * val
Definition: glext.h:7180
GLenum GLsizei len
Definition: glext.h:6722
GLenum target
Definition: glext.h:7315
const char * filename
Definition: ioapi.h:137
static char memory[1024 *256]
Definition: process.c:116
static size_t elem
Definition: string.c:68
const char * uri
Definition: sec_mgr.c:1588
const WCHAR * str
DWORD scheme
XMLPUBFUN xmlNodePtr XMLCALL xmlAddChild(xmlNodePtr parent, xmlNodePtr cur)
XMLPUBFUN xmlNodePtr XMLCALL xmlNewReference(const xmlDoc *doc, const xmlChar *name)
XMLPUBFUN void XMLCALL xmlSetBufferAllocationScheme(xmlBufferAllocationScheme scheme)
XMLPUBFUN int XMLCALL xmlGetDocCompressMode(const xmlDoc *doc)
XMLPUBFUN void XMLCALL xmlBufferFree(xmlBufferPtr buf)
XMLPUBFUN xmlChar *XMLCALL xmlNodeGetContent(const xmlNode *cur)
XMLPUBFUN xmlNodePtr XMLCALL xmlNewComment(const xmlChar *content)
XMLPUBFUN xmlNsPtr XMLCALL xmlCopyNamespace(xmlNsPtr cur)
XMLPUBFUN xmlDtdPtr XMLCALL xmlNewDtd(xmlDocPtr doc, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
XMLPUBFUN xmlNodePtr XMLCALL xmlDocGetRootElement(const xmlDoc *doc)
xmlDOMWrapCtxt * xmlDOMWrapCtxtPtr
Definition: tree.h:590
XMLPUBFUN int XMLCALL xmlDOMWrapCloneNode(xmlDOMWrapCtxtPtr ctxt, xmlDocPtr sourceDoc, xmlNodePtr node, xmlNodePtr *clonedNode, xmlDocPtr destDoc, xmlNodePtr destParent, int deep, int options)
XMLPUBFUN void XMLCALL xmlSetListDoc(xmlNodePtr list, xmlDocPtr doc)
XMLPUBFUN xmlDtdPtr XMLCALL xmlCreateIntSubset(xmlDocPtr doc, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
xmlAttributeType
Definition: tree.h:206
@ XML_ATTRIBUTE_NMTOKENS
Definition: tree.h:214
@ XML_ATTRIBUTE_IDREF
Definition: tree.h:209
@ XML_ATTRIBUTE_ENTITIES
Definition: tree.h:212
@ XML_ATTRIBUTE_IDREFS
Definition: tree.h:210
@ XML_ATTRIBUTE_ID
Definition: tree.h:208
@ XML_ATTRIBUTE_NOTATION
Definition: tree.h:216
@ XML_ATTRIBUTE_ENUMERATION
Definition: tree.h:215
@ XML_ATTRIBUTE_CDATA
Definition: tree.h:207
@ XML_ATTRIBUTE_NMTOKEN
Definition: tree.h:213
@ XML_ATTRIBUTE_ENTITY
Definition: tree.h:211
XMLPUBFUN xmlChar *XMLCALL xmlBufEnd(xmlBufPtr buf)
Definition: buf.c:571
XMLPUBFUN xmlNodePtr XMLCALL xmlGetLastChild(const xmlNode *parent)
XMLPUBFUN void XMLCALL xmlSetCompressMode(int mode)
XMLPUBFUN void XMLCALL xmlFreeDtd(xmlDtdPtr cur)
XMLPUBFUN void XMLCALL xmlBufferWriteChar(xmlBufferPtr buf, const char *string)
XMLPUBFUN void XMLCALL xmlFreeDoc(xmlDocPtr cur)
XMLPUBFUN xmlAttrPtr XMLCALL xmlHasProp(const xmlNode *node, const xmlChar *name)
XMLPUBFUN int XMLCALL xmlBufferResize(xmlBufferPtr buf, unsigned int size)
XMLPUBFUN int XMLCALL xmlBufferAdd(xmlBufferPtr buf, const xmlChar *str, int len)
XMLPUBFUN xmlChar *XMLCALL xmlGetProp(const xmlNode *node, const xmlChar *name)
xmlAttributeDefault
Definition: tree.h:225
@ XML_ATTRIBUTE_REQUIRED
Definition: tree.h:227
@ XML_ATTRIBUTE_IMPLIED
Definition: tree.h:228
@ XML_ATTRIBUTE_NONE
Definition: tree.h:226
@ XML_ATTRIBUTE_FIXED
Definition: tree.h:229
XMLPUBFUN xmlNsPtr XMLCALL xmlSearchNs(xmlDocPtr doc, xmlNodePtr node, const xmlChar *nameSpace)
xmlElementContent * xmlElementContentPtr
Definition: tree.h:305
XMLPUBFUN xmlAttrPtr XMLCALL xmlCopyPropList(xmlNodePtr target, xmlAttrPtr cur)
XMLPUBFUN xmlNodePtr XMLCALL xmlNewDocNode(xmlDocPtr doc, xmlNsPtr ns, const xmlChar *name, const xmlChar *content)
XMLPUBFUN int XMLCALL xmlDOMWrapReconcileNamespaces(xmlDOMWrapCtxtPtr ctxt, xmlNodePtr elem, int options)
XMLPUBFUN int XMLCALL xmlNodeBufGetContent(xmlBufferPtr buffer, const xmlNode *cur)
xmlOutputBuffer * xmlOutputBufferPtr
Definition: tree.h:32
XMLPUBFUN int XMLCALL xmlTextConcat(xmlNodePtr node, const xmlChar *content, int len)
XMLPUBFUN xmlNodePtr XMLCALL xmlCopyNode(xmlNodePtr node, int recursive)
XMLPUBFUN size_t XMLCALL xmlBufUse(const xmlBufPtr buf)
Definition: buf.c:633
XMLPUBFUN xmlBufferPtr XMLCALL xmlBufferCreateStatic(void *mem, size_t size)
XMLPUBFUN xmlNodePtr XMLCALL xmlStringGetNodeList(const xmlDoc *doc, const xmlChar *value)
XMLPUBFUN int XMLCALL xmlNodeIsText(const xmlNode *node)
XMLPUBFUN int XMLCALL xmlNodeGetSpacePreserve(const xmlNode *cur)
xmlNsPtr(* xmlDOMWrapAcquireNsFunction)(xmlDOMWrapCtxtPtr ctxt, xmlNodePtr node, const xmlChar *nsName, const xmlChar *nsPrefix)
Definition: tree.h:603
XMLPUBFUN xmlChar *XMLCALL xmlGetNoNsProp(const xmlNode *node, const xmlChar *name)
XMLPUBFUN void XMLCALL xmlDOMWrapFreeCtxt(xmlDOMWrapCtxtPtr ctxt)
XMLPUBFUN void XMLCALL xmlNodeAddContent(xmlNodePtr cur, const xmlChar *content)
XMLPUBFUN xmlChar *XMLCALL xmlBuildQName(const xmlChar *ncname, const xmlChar *prefix, xmlChar *memory, int len)
xmlElement * xmlElementPtr
Definition: tree.h:345
XMLPUBFUN void XMLCALL xmlNodeAddContentLen(xmlNodePtr cur, const xmlChar *content, int len)
XMLPUBFUN xmlNodePtr XMLCALL xmlNewTextLen(const xmlChar *content, int len)
xmlNode * xmlNodePtr
Definition: tree.h:488
XMLPUBFUN xmlDocPtr XMLCALL xmlNewDoc(const xmlChar *version)
XMLPUBFUN int XMLCALL xmlRemoveProp(xmlAttrPtr cur)
XMLPUBFUN xmlChar *XMLCALL xmlGetNsProp(const xmlNode *node, const xmlChar *name, const xmlChar *nameSpace)
XMLPUBFUN void XMLCALL xmlSetNs(xmlNodePtr node, xmlNsPtr ns)
XMLPUBFUN xmlNodePtr XMLCALL xmlNewCharRef(xmlDocPtr doc, const xmlChar *name)
xmlDoc * xmlDocPtr
Definition: tree.h:550
struct _xmlOutputBuffer xmlOutputBuffer
Definition: tree.h:31
XMLPUBFUN xmlAttrPtr XMLCALL xmlNewDocProp(xmlDocPtr doc, const xmlChar *name, const xmlChar *value)
XMLPUBFUN xmlNodePtr XMLCALL xmlCopyNodeList(xmlNodePtr node)
xmlSAXHandler * xmlSAXHandlerPtr
Definition: tree.h:45
XMLPUBFUN xmlNodePtr XMLCALL xmlNewPI(const xmlChar *name, const xmlChar *content)
XMLPUBFUN xmlAttrPtr XMLCALL xmlCopyProp(xmlNodePtr target, xmlAttrPtr cur)
XMLPUBFUN xmlDOMWrapCtxtPtr XMLCALL xmlDOMWrapNewCtxt(void)
XMLPUBFUN xmlNodePtr XMLCALL xmlTextMerge(xmlNodePtr first, xmlNodePtr second)
xmlElementContentOccur
Definition: tree.h:290
@ XML_ELEMENT_CONTENT_OPT
Definition: tree.h:292
@ XML_ELEMENT_CONTENT_ONCE
Definition: tree.h:291
@ XML_ELEMENT_CONTENT_PLUS
Definition: tree.h:294
@ XML_ELEMENT_CONTENT_MULT
Definition: tree.h:293
XMLPUBFUN xmlNodePtr XMLCALL xmlNewText(const xmlChar *content)
XMLPUBFUN void XMLCALL xmlFreeNsList(xmlNsPtr cur)
XMLPUBFUN int XMLCALL xmlBufferCCat(xmlBufferPtr buf, const char *str)
XMLPUBFUN xmlNodePtr XMLCALL xmlAddNextSibling(xmlNodePtr cur, xmlNodePtr elem)
XMLPUBFUN void XMLCALL xmlBufferWriteCHAR(xmlBufferPtr buf, const xmlChar *string)
XMLPUBFUN xmlDtdPtr XMLCALL xmlGetIntSubset(const xmlDoc *doc)
xmlElementType
Definition: tree.h:159
@ XML_DOCUMENT_TYPE_NODE
Definition: tree.h:169
@ XML_ATTRIBUTE_NODE
Definition: tree.h:161
@ XML_ENTITY_DECL
Definition: tree.h:176
@ XML_DOCUMENT_NODE
Definition: tree.h:168
@ XML_CDATA_SECTION_NODE
Definition: tree.h:163
@ XML_TEXT_NODE
Definition: tree.h:162
@ XML_XINCLUDE_START
Definition: tree.h:178
@ XML_ENTITY_NODE
Definition: tree.h:165
@ XML_PI_NODE
Definition: tree.h:166
@ XML_XINCLUDE_END
Definition: tree.h:179
@ XML_DOCUMENT_FRAG_NODE
Definition: tree.h:170
@ XML_COMMENT_NODE
Definition: tree.h:167
@ XML_DTD_NODE
Definition: tree.h:173
@ XML_NAMESPACE_DECL
Definition: tree.h:177
@ XML_HTML_DOCUMENT_NODE
Definition: tree.h:172
@ XML_ELEMENT_NODE
Definition: tree.h:160
@ XML_ELEMENT_DECL
Definition: tree.h:174
@ XML_ENTITY_REF_NODE
Definition: tree.h:164
@ XML_NOTATION_NODE
Definition: tree.h:171
@ XML_ATTRIBUTE_DECL
Definition: tree.h:175
XMLPUBFUN int XMLCALL xmlGetCompressMode(void)
xmlParserInput * xmlParserInputPtr
Definition: tree.h:36
XMLPUBFUN int XMLCALL xmlIsXHTML(const xmlChar *systemID, const xmlChar *publicID)
Definition: xmlsave.c:55
XMLPUBFUN void XMLCALL xmlUnlinkNode(xmlNodePtr cur)
XMLPUBFUN xmlBufferPtr XMLCALL xmlBufferCreate(void)
XMLPUBFUN xmlNodePtr XMLCALL xmlNewDocPI(xmlDocPtr doc, const xmlChar *name, const xmlChar *content)
xmlAttr * xmlAttrPtr
Definition: tree.h:433
XMLPUBFUN xmlNsPtr XMLCALL xmlSearchNsByHref(xmlDocPtr doc, xmlNodePtr node, const xmlChar *href)
XMLPUBFUN void XMLCALL xmlSetTreeDoc(xmlNodePtr tree, xmlDocPtr doc)
xmlNotation * xmlNotationPtr
Definition: tree.h:193
XMLPUBFUN xmlNodePtr XMLCALL xmlAddSibling(xmlNodePtr cur, xmlNodePtr elem)
XMLPUBFUN xmlChar *XMLCALL xmlNodeGetBase(const xmlDoc *doc, const xmlNode *cur)
XMLPUBFUN size_t XMLCALL xmlBufShrink(xmlBufPtr buf, size_t len)
Definition: buf.c:381
xmlElementType xmlNsType
Definition: tree.h:375
XMLPUBFUN int XMLCALL xmlBufferShrink(xmlBufferPtr buf, unsigned int len)
XMLPUBFUN xmlNodePtr XMLCALL xmlNewDocTextLen(xmlDocPtr doc, const xmlChar *content, int len)
XMLPUBFUN xmlBufferAllocationScheme XMLCALL xmlGetBufferAllocationScheme(void)
XMLPUBFUN int XMLCALL xmlDOMWrapAdoptNode(xmlDOMWrapCtxtPtr ctxt, xmlDocPtr sourceDoc, xmlNodePtr node, xmlDocPtr destDoc, xmlNodePtr destParent, int options)
XMLPUBFUN int XMLCALL xmlBufferGrow(xmlBufferPtr buf, unsigned int len)
xmlEnumeration * xmlEnumerationPtr
Definition: tree.h:239
xmlBufferAllocationScheme
Definition: tree.h:74
@ XML_BUFFER_ALLOC_BOUNDED
Definition: tree.h:80
@ XML_BUFFER_ALLOC_EXACT
Definition: tree.h:76
@ XML_BUFFER_ALLOC_IMMUTABLE
Definition: tree.h:77
@ XML_BUFFER_ALLOC_IO
Definition: tree.h:78
@ XML_BUFFER_ALLOC_DOUBLEIT
Definition: tree.h:75
@ XML_BUFFER_ALLOC_HYBRID
Definition: tree.h:79
xmlParserCtxt * xmlParserCtxtPtr
Definition: tree.h:39
xmlSAXLocator * xmlSAXLocatorPtr
Definition: tree.h:42
XMLPUBFUN xmlBufferPtr XMLCALL xmlBufferCreateSize(size_t size)
XMLPUBFUN int XMLCALL xmlBufGetNodeContent(xmlBufPtr buf, const xmlNode *cur)
xmlDocProperties
Definition: tree.h:532
@ XML_DOC_WELLFORMED
Definition: tree.h:533
@ XML_DOC_NSVALID
Definition: tree.h:534
@ XML_DOC_USERBUILT
Definition: tree.h:538
@ XML_DOC_INTERNAL
Definition: tree.h:540
@ XML_DOC_XINCLUDE
Definition: tree.h:537
@ XML_DOC_HTML
Definition: tree.h:541
@ XML_DOC_OLD10
Definition: tree.h:535
@ XML_DOC_DTDVALID
Definition: tree.h:536
XMLPUBFUN void XMLCALL xmlFreeProp(xmlAttrPtr cur)
xmlRef * xmlRefPtr
Definition: tree.h:473
xmlID * xmlIDPtr
Definition: tree.h:456
XMLPUBFUN void XMLCALL xmlFreePropList(xmlAttrPtr cur)
XMLPUBFUN xmlAttrPtr XMLCALL xmlNewNsPropEatName(xmlNodePtr node, xmlNsPtr ns, xmlChar *name, const xmlChar *value)
XMLPUBFUN void XMLCALL xmlNodeSetContent(xmlNodePtr cur, const xmlChar *content)
XMLPUBFUN int XMLCALL xmlIsBlankNode(const xmlNode *node)
XMLPUBFUN xmlNodePtr XMLCALL xmlNewDocText(const xmlDoc *doc, const xmlChar *content)
xmlEntity * xmlEntityPtr
Definition: tree.h:49
XMLPUBFUN int XMLCALL xmlDOMWrapRemoveNode(xmlDOMWrapCtxtPtr ctxt, xmlDocPtr doc, xmlNodePtr node, int options)
XMLPUBFUN void XMLCALL xmlFreeNs(xmlNsPtr cur)
XMLPUBFUN xmlNodePtr XMLCALL xmlNewDocComment(xmlDocPtr doc, const xmlChar *content)
XMLPUBFUN long XMLCALL xmlGetLineNo(const xmlNode *node)
XMLPUBFUN const xmlChar *XMLCALL xmlBufferContent(const xmlBuffer *buf)
XMLPUBFUN xmlNodePtr XMLCALL xmlDocCopyNodeList(xmlDocPtr doc, xmlNodePtr node)
XMLPUBFUN void XMLCALL xmlFreeNodeList(xmlNodePtr cur)
XMLPUBFUN xmlAttrPtr XMLCALL xmlHasNsProp(const xmlNode *node, const xmlChar *name, const xmlChar *nameSpace)
xmlNs * xmlNsPtr
Definition: tree.h:388
XMLPUBFUN xmlNodePtr XMLCALL xmlNewNodeEatName(xmlNsPtr ns, xmlChar *name)
XMLPUBFUN xmlNodePtr XMLCALL xmlNewDocNodeEatName(xmlDocPtr doc, xmlNsPtr ns, xmlChar *name, const xmlChar *content)
XMLPUBFUN xmlChar *XMLCALL xmlBufferDetach(xmlBufferPtr buf)
xmlElementTypeVal
Definition: tree.h:322
@ XML_ELEMENT_TYPE_MIXED
Definition: tree.h:326
@ XML_ELEMENT_TYPE_EMPTY
Definition: tree.h:324
@ XML_ELEMENT_TYPE_UNDEFINED
Definition: tree.h:323
@ XML_ELEMENT_TYPE_ELEMENT
Definition: tree.h:327
@ XML_ELEMENT_TYPE_ANY
Definition: tree.h:325
XMLPUBFUN void XMLCALL xmlBufferWriteQuotedString(xmlBufferPtr buf, const xmlChar *string)
XMLPUBFUN void XMLCALL xmlFreeNode(xmlNodePtr cur)
XMLPUBFUN int XMLCALL xmlBufferLength(const xmlBuffer *buf)
XMLPUBFUN xmlChar *XMLCALL xmlNodeGetLang(const xmlNode *cur)
XMLPUBFUN const xmlChar *XMLCALL xmlSplitQName3(const xmlChar *name, int *len)
XMLPUBFUN xmlNodePtr XMLCALL xmlAddChildList(xmlNodePtr parent, xmlNodePtr cur)
XMLPUBFUN xmlNsPtr XMLCALL xmlNewNs(xmlNodePtr node, const xmlChar *href, const xmlChar *prefix)
xmlDtd * xmlDtdPtr
Definition: tree.h:405
XMLPUBFUN int XMLCALL xmlBufferCat(xmlBufferPtr buf, const xmlChar *str)
XMLPUBFUN xmlChar *XMLCALL xmlSplitQName2(const xmlChar *name, xmlChar **prefix)
XMLPUBFUN xmlAttrPtr XMLCALL xmlNewNsProp(xmlNodePtr node, xmlNsPtr ns, const xmlChar *name, const xmlChar *value)
XMLPUBFUN xmlNodePtr XMLCALL xmlNewCDataBlock(xmlDocPtr doc, const xmlChar *content, int len)
xmlParserInputBuffer * xmlParserInputBufferPtr
Definition: tree.h:29
xmlAttribute * xmlAttributePtr
Definition: tree.h:252
XMLPUBFUN xmlNsPtr XMLCALL xmlCopyNamespaceList(xmlNsPtr cur)
xmlElementContentType
Definition: tree.h:278
@ XML_ELEMENT_CONTENT_PCDATA
Definition: tree.h:279
@ XML_ELEMENT_CONTENT_ELEMENT
Definition: tree.h:280
@ XML_ELEMENT_CONTENT_OR
Definition: tree.h:282
@ XML_ELEMENT_CONTENT_SEQ
Definition: tree.h:281
XMLPUBFUN int XMLCALL xmlBufferDump(FILE *file, xmlBufferPtr buf)
XMLPUBFUN int XMLCALL xmlBufferAddHead(xmlBufferPtr buf, const xmlChar *str, int len)
xmlBuffer * xmlBufferPtr
Definition: tree.h:90
XMLPUBFUN xmlNodePtr XMLCALL xmlNewNode(xmlNsPtr ns, const xmlChar *name)
XMLPUBFUN void XMLCALL xmlBufferSetAllocationScheme(xmlBufferPtr buf, xmlBufferAllocationScheme scheme)
XMLPUBFUN xmlChar *XMLCALL xmlBufContent(const xmlBuf *buf)
Definition: buf.c:553
XMLPUBFUN void XMLCALL xmlSetDocCompressMode(xmlDocPtr doc, int mode)
XMLPUBFUN void XMLCALL xmlBufferEmpty(xmlBufferPtr buf)
xmlBuf * xmlBufPtr
Definition: tree.h:114
XMLPUBFUN xmlChar *XMLCALL xmlNodeListGetString(xmlDocPtr doc, const xmlNode *list, int inLine)
XMLPUBFUN xmlNodePtr XMLCALL xmlDocCopyNode(xmlNodePtr node, xmlDocPtr doc, int recursive)
XMLPUBFUN xmlNodePtr XMLCALL xmlStringLenGetNodeList(const xmlDoc *doc, const xmlChar *value, int len)
Definition: tree.h:434
xmlNs * ns
Definition: tree.h:444
struct _xmlNode * children
Definition: tree.h:438
struct _xmlNode * last
Definition: tree.h:439
struct _xmlAttr * next
Definition: tree.h:441
void * psvi
Definition: tree.h:446
xmlElementType type
Definition: tree.h:436
void * _private
Definition: tree.h:435
xmlAttributeType atype
Definition: tree.h:445
struct _xmlNode * parent
Definition: tree.h:440
struct _xmlAttr * prev
Definition: tree.h:442
struct _xmlDoc * doc
Definition: tree.h:443
const xmlChar * name
Definition: tree.h:437
const xmlChar * defaultValue
Definition: tree.h:267
const xmlChar * name
Definition: tree.h:256
void * _private
Definition: tree.h:254
xmlAttributeDefault def
Definition: tree.h:266
xmlEnumerationPtr tree
Definition: tree.h:268
struct _xmlNode * prev
Definition: tree.h:261
const xmlChar * prefix
Definition: tree.h:269
struct _xmlDoc * doc
Definition: tree.h:262
struct _xmlNode * next
Definition: tree.h:260
struct _xmlNode * children
Definition: tree.h:257
const xmlChar * elem
Definition: tree.h:270
struct _xmlAttribute * nexth
Definition: tree.h:264
struct _xmlDtd * parent
Definition: tree.h:259
xmlAttributeType atype
Definition: tree.h:265
struct _xmlNode * last
Definition: tree.h:258
xmlElementType type
Definition: tree.h:255
Definition: buf.c:43
unsigned int size
Definition: tree.h:94
unsigned int use
Definition: tree.h:93
xmlBufferAllocationScheme alloc
Definition: tree.h:95
xmlChar * contentIO
Definition: tree.h:96
xmlChar * content
Definition: tree.h:92
xmlDOMWrapAcquireNsFunction getNsForNodeFunc
Definition: tree.h:628
void * namespaceMap
Definition: tree.h:623
void * _private
Definition: tree.h:614
Definition: dict.c:111
Definition: tree.h:551
struct _xmlNode * next
Definition: tree.h:558
const xmlChar * URL
Definition: tree.h:577
char * name
Definition: tree.h:554
struct _xmlDtd * intSubset
Definition: tree.h:570
int charset
Definition: tree.h:578
const xmlChar * encoding
Definition: tree.h:574
const xmlChar * version
Definition: tree.h:573
void * _private
Definition: tree.h:552
struct _xmlNode * parent
Definition: tree.h:557
struct _xmlNs * oldNs
Definition: tree.h:572
void * ids
Definition: tree.h:575
struct _xmlNode * last
Definition: tree.h:556
int parseFlags
Definition: tree.h:582
int properties
Definition: tree.h:584
void * refs
Definition: tree.h:576
int standalone
Definition: tree.h:564
struct _xmlNode * prev
Definition: tree.h:559
struct _xmlDict * dict
Definition: tree.h:580
struct _xmlNode * children
Definition: tree.h:555
int compression
Definition: tree.h:563
xmlElementType type
Definition: tree.h:553
void * psvi
Definition: tree.h:581
struct _xmlDoc * doc
Definition: tree.h:560
struct _xmlDtd * extSubset
Definition: tree.h:571
Definition: tree.h:406
struct _xmlDoc * doc
Definition: tree.h:415
struct _xmlNode * prev
Definition: tree.h:414
void * pentities
Definition: tree.h:424
void * _private
Definition: tree.h:407
struct _xmlNode * next
Definition: tree.h:413
xmlElementType type
Definition: tree.h:408
const xmlChar * name
Definition: tree.h:409
struct _xmlNode * last
Definition: tree.h:411
void * elements
Definition: tree.h:419
void * entities
Definition: tree.h:421
struct _xmlNode * children
Definition: tree.h:410
void * notations
Definition: tree.h:418
const xmlChar * SystemID
Definition: tree.h:423
struct _xmlDoc * parent
Definition: tree.h:412
const xmlChar * ExternalID
Definition: tree.h:422
void * attributes
Definition: tree.h:420
struct _xmlElementContent * c2
Definition: tree.h:311
xmlElementContentOccur ocur
Definition: tree.h:308
xmlElementContentType type
Definition: tree.h:307
const xmlChar * prefix
Definition: tree.h:313
const xmlChar * name
Definition: tree.h:309
struct _xmlElementContent * c1
Definition: tree.h:310
struct _xmlElementContent * parent
Definition: tree.h:312
void * _private
Definition: tree.h:347
const xmlChar * name
Definition: tree.h:349
xmlElementTypeVal etype
Definition: tree.h:357
xmlAttributePtr attributes
Definition: tree.h:359
const xmlChar * prefix
Definition: tree.h:360
struct _xmlNode * prev
Definition: tree.h:354
struct _xmlDtd * parent
Definition: tree.h:352
struct _xmlDoc * doc
Definition: tree.h:355
void * contModel
Definition: tree.h:364
struct _xmlNode * children
Definition: tree.h:350
struct _xmlNode * last
Definition: tree.h:351
xmlElementType type
Definition: tree.h:348
xmlElementContentPtr content
Definition: tree.h:358
struct _xmlNode * next
Definition: tree.h:353
struct _xmlEnumeration * next
Definition: tree.h:241
const xmlChar * name
Definition: tree.h:242
Definition: tree.h:457
xmlAttrPtr attr
Definition: tree.h:460
int lineno
Definition: tree.h:462
struct _xmlDoc * doc
Definition: tree.h:463
const xmlChar * value
Definition: tree.h:459
const xmlChar * name
Definition: tree.h:461
struct _xmlID * next
Definition: tree.h:458
Definition: tree.h:489
xmlChar * content
Definition: tree.h:502
void * _private
Definition: tree.h:490
struct _xmlNode * children
Definition: tree.h:493
struct _xmlNode * next
Definition: tree.h:496
unsigned short extra
Definition: tree.h:507
void * psvi
Definition: tree.h:505
struct _xmlDoc * doc
Definition: tree.h:498
xmlNs * nsDef
Definition: tree.h:504
unsigned short line
Definition: tree.h:506
const xmlChar * name
Definition: tree.h:492
struct _xmlAttr * properties
Definition: tree.h:503
struct _xmlNode * last
Definition: tree.h:494
xmlElementType type
Definition: tree.h:491
struct _xmlNode * parent
Definition: tree.h:495
struct _xmlNode * prev
Definition: tree.h:497
xmlNs * ns
Definition: tree.h:501
const xmlChar * name
Definition: tree.h:195
const xmlChar * SystemID
Definition: tree.h:197
const xmlChar * PublicID
Definition: tree.h:196
Definition: tree.h:389
const xmlChar * href
Definition: tree.h:392
void * _private
Definition: tree.h:394
xmlNsType type
Definition: tree.h:391
const xmlChar * prefix
Definition: tree.h:393
struct _xmlNs * next
Definition: tree.h:390
struct _xmlDoc * context
Definition: tree.h:395
Definition: tree.h:474
struct _xmlRef * next
Definition: tree.h:475
xmlAttrPtr attr
Definition: tree.h:477
const xmlChar * name
Definition: tree.h:478
int lineno
Definition: tree.h:479
const xmlChar * value
Definition: tree.h:476
Definition: cookie.c:202
Definition: fci.c:127
Definition: mem.c:156
Definition: name.c:39
Definition: mxnamespace.c:45
Definition: dlist.c:348
Definition: pdh_main.c:94
static const WCHAR lang[]
Definition: wbemdisp.c:287
#define XMLPUBFUN
Definition: xmlexports.h:61
static char * encoding
Definition: xmllint.c:155
unsigned char xmlChar
Definition: xmlstring.h:28
#define XML_DEPRECATED
Definition: xmlversion.h:494