Software: Apache. PHP/7.3.33 uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) Safe-mode: OFF (not secure) /opt/alt/libxml2/usr/share/gtk-doc/html/libxml2/ drwxr-xr-x |
Viewing file: Select action/file-type:
treetree - interfaces for tree manipulation this module describes the structures found in an tree resulting from an XML or HTML parsing, as well as the API provided for various processing on that tree Author(s): Daniel Veillard Synopsis#define BASE_BUFFER_SIZE; #define LIBXML2_NEW_BUFFER; #define XML_DOCB_DOCUMENT_NODE; #define XML_GET_CONTENT; #define XML_GET_LINE; #define XML_LOCAL_NAMESPACE; #define XML_XML_ID; #define XML_XML_NAMESPACE; #define xmlChildrenNode; #define xmlRootNode; typedef struct _xmlAttr xmlAttr; typedef xmlAttr * xmlAttrPtr; typedef struct _xmlAttribute xmlAttribute; typedef enum xmlAttributeDefault; typedef xmlAttribute * xmlAttributePtr; typedef enum xmlAttributeType; typedef struct _xmlBuf xmlBuf; typedef xmlBuf * xmlBufPtr; typedef struct _xmlBuffer xmlBuffer; typedef enum xmlBufferAllocationScheme; typedef xmlBuffer * xmlBufferPtr; typedef struct _xmlDOMWrapCtxt xmlDOMWrapCtxt; typedef xmlDOMWrapCtxt * xmlDOMWrapCtxtPtr; typedef struct _xmlDoc xmlDoc; typedef enum xmlDocProperties; typedef xmlDoc * xmlDocPtr; typedef struct _xmlDtd xmlDtd; typedef xmlDtd * xmlDtdPtr; typedef struct _xmlElement xmlElement; typedef struct _xmlElementContent xmlElementContent; typedef enum xmlElementContentOccur; typedef xmlElementContent * xmlElementContentPtr; typedef enum xmlElementContentType; typedef xmlElement * xmlElementPtr; typedef enum xmlElementType; typedef enum xmlElementTypeVal; typedef struct _xmlEntity xmlEntity; typedef xmlEntity * xmlEntityPtr; typedef struct _xmlEnumeration xmlEnumeration; typedef xmlEnumeration * xmlEnumerationPtr; typedef struct _xmlID xmlID; typedef xmlID * xmlIDPtr; typedef struct _xmlNode xmlNode; typedef xmlNode * xmlNodePtr; typedef struct _xmlNotation xmlNotation; typedef xmlNotation * xmlNotationPtr; typedef struct _xmlNs xmlNs; typedef xmlNs * xmlNsPtr; typedef xmlElementType xmlNsType; typedef struct _xmlOutputBuffer xmlOutputBuffer; typedef xmlOutputBuffer * xmlOutputBufferPtr; typedef struct _xmlParserCtxt xmlParserCtxt; typedef xmlParserCtxt * xmlParserCtxtPtr; typedef struct _xmlParserInput xmlParserInput; typedef struct _xmlParserInputBuffer xmlParserInputBuffer; typedef xmlParserInputBuffer * xmlParserInputBufferPtr; typedef xmlParserInput * xmlParserInputPtr; typedef struct _xmlRef xmlRef; typedef xmlRef * xmlRefPtr; typedef struct _xmlSAXHandler xmlSAXHandler; typedef xmlSAXHandler * xmlSAXHandlerPtr; typedef struct _xmlSAXLocator xmlSAXLocator; typedef xmlSAXLocator * xmlSAXLocatorPtr; xmlNodePtr xmlAddChild (xmlNodePtr parent, DescriptionDetailsMacro LIBXML2_NEW_BUFFER#define LIBXML2_NEW_BUFFER; Macro used to express that the API use the new buffers for xmlParserInputBuffer and xmlOutputBuffer. The change was introduced in 2.9.0. Macro XML_DOCB_DOCUMENT_NODE#define XML_DOCB_DOCUMENT_NODE; Macro XML_XML_NAMESPACE#define XML_XML_NAMESPACE; This is the namespace for the special xml: prefix predefined in the XML Namespace specification. Macro xmlChildrenNode#define xmlChildrenNode; Macro for compatibility naming layer with libxml1. Maps to "children." Macro xmlRootNode#define xmlRootNode; Macro for compatibility naming layer with libxml1. Maps to "children". Structure xmlAttrstruct _xmlAttr { void * _private : application data xmlElementType type : XML_ATTRIBUTE_NODE, must be second ! const xmlChar * name : the name of the property struct _xmlNode * children : the value of the property struct _xmlNode * last : NULL struct _xmlNode * parent : child->parent link struct _xmlAttr * next : next sibling link struct _xmlAttr * prev : previous sibling link struct _xmlDoc * doc : the containing document xmlNs * ns : pointer to the associated namespace xmlAttributeType atype : the attribute type if validating void * psvi : for type/PSVI information } xmlAttr; Structure xmlAttributestruct _xmlAttribute { void * _private : application data xmlElementType type : XML_ATTRIBUTE_DECL, must be second ! const xmlChar * name : Attribute name struct _xmlNode * children : NULL struct _xmlNode * last : NULL struct _xmlDtd * parent : -> DTD struct _xmlNode * next : next sibling link struct _xmlNode * prev : previous sibling link struct _xmlDoc * doc : the containing document struct _xmlAttribute * nexth : next in hash table xmlAttributeType atype : The attribute type xmlAttributeDefault def : the default const xmlChar * defaultValue : or the default value xmlEnumerationPtr tree : or the enumeration tree if any const xmlChar * prefix : the namespace prefix if any const xmlChar * elem : Element holding the attribute } xmlAttribute; Enum xmlAttributeDefaultenum xmlAttributeDefault { XML_ATTRIBUTE_NONE = 1 XML_ATTRIBUTE_REQUIRED = 2 XML_ATTRIBUTE_IMPLIED = 3 XML_ATTRIBUTE_FIXED = 4 }; Typedef xmlAttributePtrxmlAttribute * xmlAttributePtr; Enum xmlAttributeTypeenum xmlAttributeType { XML_ATTRIBUTE_CDATA = 1 XML_ATTRIBUTE_ID = 2 XML_ATTRIBUTE_IDREF = 3 XML_ATTRIBUTE_IDREFS = 4 XML_ATTRIBUTE_ENTITY = 5 XML_ATTRIBUTE_ENTITIES = 6 XML_ATTRIBUTE_NMTOKEN = 7 XML_ATTRIBUTE_NMTOKENS = 8 XML_ATTRIBUTE_ENUMERATION = 9 XML_ATTRIBUTE_NOTATION = 10 }; Structure xmlBufstruct _xmlBuf { The content of this structure is not made public by the API. } xmlBuf; Typedef xmlBufPtrxmlBuf * xmlBufPtr; A pointer to a buffer structure, the actual structure internals are not public Structure xmlBufferstruct _xmlBuffer { xmlChar * content : The buffer content UTF8 unsigned int use : The buffer size used unsigned int size : The buffer size xmlBufferAllocationScheme alloc : The realloc method xmlChar * contentIO : in IO mode we may have a different base } xmlBuffer; Enum xmlBufferAllocationSchemeenum xmlBufferAllocationScheme { XML_BUFFER_ALLOC_DOUBLEIT = 1 /* double each time one need to grow */ XML_BUFFER_ALLOC_EXACT = 2 /* grow only to the minimal size */ XML_BUFFER_ALLOC_IMMUTABLE = 3 /* immutable buffer */ XML_BUFFER_ALLOC_IO = 4 /* special allocation scheme used for I/O */ XML_BUFFER_ALLOC_HYBRID = 5 /* exact up to a threshold, and doubleit thereafter */ XML_BUFFER_ALLOC_BOUNDED = 6 /* limit the upper size of the buffer */ }; Structure xmlDOMWrapCtxtstruct _xmlDOMWrapCtxt { void * _private : * The type of this context, just in case we need specialized * context int type : * Internal namespace map used for various operations. * void * namespaceMap : * Use this one to acquire an xmlNsPtr intended for node->ns. * (Note t xmlDOMWrapAcquireNsFunction getNsForNodeFunc } xmlDOMWrapCtxt; Typedef xmlDOMWrapCtxtPtrxmlDOMWrapCtxt * xmlDOMWrapCtxtPtr; Structure xmlDocstruct _xmlDoc { void * _private : application data xmlElementType type : XML_DOCUMENT_NODE, must be second ! char * name : name/filename/URI of the document struct _xmlNode * children : the document tree struct _xmlNode * last : last child link struct _xmlNode * parent : child->parent link struct _xmlNode * next : next sibling link struct _xmlNode * prev : previous sibling link struct _xmlDoc * doc : autoreference to itself End of common part int compression : level of zlib compression int standalone : standalone document (no external refs) 1 if standalone="yes" 0 if sta struct _xmlDtd * intSubset : the document internal subset struct _xmlDtd * extSubset : the document external subset struct _xmlNs * oldNs : Global namespace, the old way const xmlChar * version : the XML version string const xmlChar * encoding : external initial encoding, if any void * ids : Hash table for ID attributes if any void * refs : Hash table for IDREFs attributes if any const xmlChar * URL : The URI for that document int charset : Internal flag for charset handling, actually an xmlCharEncoding struct _xmlDict * dict : dict used to allocate names or NULL void * psvi : for type/PSVI information int parseFlags : set of xmlParserOption used to parse the document int properties : set of xmlDocProperties for this document set at the end of parsing } xmlDoc; Enum xmlDocPropertiesenum xmlDocProperties { XML_DOC_WELLFORMED = 1 /* document is XML well formed */ XML_DOC_NSVALID = 2 /* document is Namespace valid */ XML_DOC_OLD10 = 4 /* parsed with old XML-1.0 parser */ XML_DOC_DTDVALID = 8 /* DTD validation was successful */ XML_DOC_XINCLUDE = 16 /* XInclude substitution was done */ XML_DOC_USERBUILT = 32 /* Document was built using the API and not by parsing an instance */ XML_DOC_INTERNAL = 64 /* built for internal processing */ XML_DOC_HTML = 128 /* parsed or built HTML document */ }; Structure xmlDtdstruct _xmlDtd { void * _private : application data xmlElementType type : XML_DTD_NODE, must be second ! const xmlChar * name : Name of the DTD struct _xmlNode * children : the value of the property link struct _xmlNode * last : last child link struct _xmlDoc * parent : child->parent link struct _xmlNode * next : next sibling link struct _xmlNode * prev : previous sibling link struct _xmlDoc * doc : the containing document End of common part void * notations : Hash table for notations if any void * elements : Hash table for elements if any void * attributes : Hash table for attributes if any void * entities : Hash table for entities if any const xmlChar * ExternalID : External identifier for PUBLIC DTD const xmlChar * SystemID : URI for a SYSTEM or PUBLIC DTD void * pentities : Hash table for param entities if any } xmlDtd; Structure xmlElementstruct _xmlElement { void * _private : application data xmlElementType type : XML_ELEMENT_DECL, must be second ! const xmlChar * name : Element name struct _xmlNode * children : NULL struct _xmlNode * last : NULL struct _xmlDtd * parent : -> DTD struct _xmlNode * next : next sibling link struct _xmlNode * prev : previous sibling link struct _xmlDoc * doc : the containing document xmlElementTypeVal etype : The type xmlElementContentPtr content : the allowed element content xmlAttributePtr attributes : List of the declared attributes const xmlChar * prefix : the namespace prefix if any xmlRegexpPtr contModel : the validating regexp void * contModel } xmlElement; Structure xmlElementContentstruct _xmlElementContent { xmlElementContentType type : PCDATA, ELEMENT, SEQ or OR xmlElementContentOccur ocur : ONCE, OPT, MULT or PLUS const xmlChar * name : Element name struct _xmlElementContent * c1 : first child struct _xmlElementContent * c2 : second child struct _xmlElementContent * parent : parent const xmlChar * prefix : Namespace prefix } xmlElementContent; Enum xmlElementContentOccurenum xmlElementContentOccur { XML_ELEMENT_CONTENT_ONCE = 1 XML_ELEMENT_CONTENT_OPT = 2 XML_ELEMENT_CONTENT_MULT = 3 XML_ELEMENT_CONTENT_PLUS = 4 }; Typedef xmlElementContentPtrxmlElementContent * xmlElementContentPtr; Enum xmlElementContentTypeenum xmlElementContentType { XML_ELEMENT_CONTENT_PCDATA = 1 XML_ELEMENT_CONTENT_ELEMENT = 2 XML_ELEMENT_CONTENT_SEQ = 3 XML_ELEMENT_CONTENT_OR = 4 }; Typedef xmlElementPtrxmlElement * xmlElementPtr; Enum xmlElementTypeenum xmlElementType { XML_ELEMENT_NODE = 1 XML_ATTRIBUTE_NODE = 2 XML_TEXT_NODE = 3 XML_CDATA_SECTION_NODE = 4 XML_ENTITY_REF_NODE = 5 XML_ENTITY_NODE = 6 XML_PI_NODE = 7 XML_COMMENT_NODE = 8 XML_DOCUMENT_NODE = 9 XML_DOCUMENT_TYPE_NODE = 10 XML_DOCUMENT_FRAG_NODE = 11 XML_NOTATION_NODE = 12 XML_HTML_DOCUMENT_NODE = 13 XML_DTD_NODE = 14 XML_ELEMENT_DECL = 15 XML_ATTRIBUTE_DECL = 16 XML_ENTITY_DECL = 17 XML_NAMESPACE_DECL = 18 XML_XINCLUDE_START = 19 XML_XINCLUDE_END = 20 /* XML_DOCB_DOCUMENT_NODE= 21 removed */ }; Enum xmlElementTypeValenum xmlElementTypeVal { XML_ELEMENT_TYPE_UNDEFINED = 0 XML_ELEMENT_TYPE_EMPTY = 1 XML_ELEMENT_TYPE_ANY = 2 XML_ELEMENT_TYPE_MIXED = 3 XML_ELEMENT_TYPE_ELEMENT = 4 }; Structure xmlEntitystruct _xmlEntity { void * _private : application data xmlElementType type : XML_ENTITY_DECL, must be second ! const xmlChar * name : Entity name struct _xmlNode * children : First child link struct _xmlNode * last : Last child link struct _xmlDtd * parent : -> DTD struct _xmlNode * next : next sibling link struct _xmlNode * prev : previous sibling link struct _xmlDoc * doc : the containing document xmlChar * orig : content without ref substitution xmlChar * content : content or ndata if unparsed int length : the content length xmlEntityType etype : The entity type const xmlChar * ExternalID : External identifier for PUBLIC const xmlChar * SystemID : URI for a SYSTEM or PUBLIC Entity struct _xmlEntity * nexte : unused const xmlChar * URI : the full URI as computed int owner : does the entity own the childrens int checked : was the entity content checked this is also used to count entities * } xmlEntity; Structure xmlEnumerationstruct _xmlEnumeration { struct _xmlEnumeration * next : next one const xmlChar * name : Enumeration name } xmlEnumeration; Typedef xmlEnumerationPtrxmlEnumeration * xmlEnumerationPtr; Structure xmlIDstruct _xmlID { struct _xmlID * next : next ID const xmlChar * value : The ID name xmlAttrPtr attr : The attribute holding it const xmlChar * name : The attribute if attr is not available int lineno : The line number if attr is not available struct _xmlDoc * doc : The document holding the ID } xmlID; Structure xmlNodestruct _xmlNode { void * _private : application data xmlElementType type : type number, must be second ! const xmlChar * name : the name of the node, or the entity struct _xmlNode * children : parent->childs link struct _xmlNode * last : last child link struct _xmlNode * parent : child->parent link struct _xmlNode * next : next sibling link struct _xmlNode * prev : previous sibling link struct _xmlDoc * doc : the containing document End of common part xmlNs * ns : pointer to the associated namespace xmlChar * content : the content struct _xmlAttr * properties : properties list xmlNs * nsDef : namespace definitions on this node void * psvi : for type/PSVI information unsigned short line : line number unsigned short extra : extra data for XPath/XSLT } xmlNode; Structure xmlNotationstruct _xmlNotation { const xmlChar * name : Notation name const xmlChar * PublicID : Public identifier, if any const xmlChar * SystemID : System identifier, if any } xmlNotation; Typedef xmlNotationPtrxmlNotation * xmlNotationPtr; Structure xmlNsstruct _xmlNs { struct _xmlNs * next : next Ns link for this node xmlNsType type : global or local const xmlChar * href : URL for the namespace const xmlChar * prefix : prefix for the namespace void * _private : application data struct _xmlDoc * context : normally an xmlDoc } xmlNs; Typedef xmlNsTypexmlElementType xmlNsType; Structure xmlOutputBufferstruct _xmlOutputBuffer { void * context xmlOutputWriteCallback writecallback xmlOutputCloseCallback closecallback xmlCharEncodingHandlerPtr encoder : I18N conversions to UTF-8 xmlBufPtr buffer : Local buffer encoded in UTF-8 or ISOLatin xmlBufPtr conv : if encoder != NULL buffer for output int written : total number of byte written int error } xmlOutputBuffer; Typedef xmlOutputBufferPtrxmlOutputBuffer * xmlOutputBufferPtr; Structure xmlParserCtxtstruct _xmlParserCtxt { struct _xmlSAXHandler * sax : The SAX handler void * userData : For SAX interface only, used by DOM build xmlDocPtr myDoc : the document being built int wellFormed : is the document well formed int replaceEntities : shall we replace entities ? const xmlChar * version : the XML version string const xmlChar * encoding : the declared encoding, if any int standalone : standalone document int html : an HTML(1) document * 3 is HTML after <head> * 10 is HTML after <body xmlParserInputPtr input : Current input stream int inputNr : Number of current input streams int inputMax : Max number of input streams xmlParserInputPtr * inputTab : stack of inputs Node analysis stack only used for DOM building xmlNodePtr node : Current parsed Node int nodeNr : Depth of the parsing stack int nodeMax : Max depth of the parsing stack xmlNodePtr * nodeTab : array of nodes int record_info : Whether node info should be kept xmlParserNodeInfoSeq node_seq : info about each node parsed int errNo : error code int hasExternalSubset : reference and external subset int hasPErefs : the internal subset has PE refs int external : are we parsing an external entity int valid : is the document valid int validate : shall we try to validate ? xmlValidCtxt vctxt : The validity context xmlParserInputState instate : current type of input int token : next char look-ahead char * directory : the data directory Node name stack const xmlChar * name : Current parsed Node int nameNr : Depth of the parsing stack int nameMax : Max depth of the parsing stack const xmlChar * * nameTab : array of nodes long nbChars : unused long checkIndex : used by progressive parsing lookup int keepBlanks : ugly but ... int disableSAX : SAX callbacks are disabled int inSubset : Parsing is in int 1/ext 2 subset const xmlChar * intSubName : name of subset xmlChar * extSubURI : URI of external subset xmlChar * extSubSystem : SYSTEM ID of external subset xml:space values int * space : Should the parser preserve spaces int spaceNr : Depth of the parsing stack int spaceMax : Max depth of the parsing stack int * spaceTab : array of space infos int depth : to prevent entity substitution loops xmlParserInputPtr entity : used to check entities boundaries int charset : encoding of the in-memory content actually an xmlCharEncoding int nodelen : Those two fields are there to int nodemem : Speed up large node parsing int pedantic : signal pedantic warnings void * _private : For user data, libxml won't touch it int loadsubset : should the external subset be loaded int linenumbers : set line number in element content void * catalogs : document's own catalog int recovery : run in recovery mode int progressive : is this a progressive parsing xmlDictPtr dict : dictionary for the parser const xmlChar * * atts : array for the attributes callbacks int maxatts : the size of the array int docdict : * pre-interned strings * const xmlChar * str_xml const xmlChar * str_xmlns const xmlChar * str_xml_ns : * Everything below is used only by the new SAX mode * int sax2 : operating in the new SAX mode int nsNr : the number of inherited namespaces int nsMax : the size of the arrays const xmlChar * * nsTab : the array of prefix/namespace name int * attallocs : which attribute were allocated xmlStartTag * pushTab : array of data for push xmlHashTablePtr attsDefault : defaulted attributes if any xmlHashTablePtr attsSpecial : non-CDATA attributes if any int nsWellFormed : is the document XML Namespace okay int options : * Those fields are needed only for streaming parsing so far * int dictNames : Use dictionary names for the tree int freeElemsNr : number of freed element nodes xmlNodePtr freeElems : List of freed element nodes int freeAttrsNr : number of freed attributes nodes xmlAttrPtr freeAttrs : * the complete error information for the last error. * xmlError lastError xmlParserMode parseMode : the parser mode unsigned long nbentities : number of entities references unsigned long sizeentities : size of parsed entities for use by HTML non-recursive parser xmlParserNodeInfo * nodeInfo : Current NodeInfo int nodeInfoNr : Depth of the parsing stack int nodeInfoMax : Max depth of the parsing stack xmlParserNodeInfo * nodeInfoTab : array of nodeInfos int input_id : we need to label inputs unsigned long sizeentcopy : volume of entity copy } xmlParserCtxt; Typedef xmlParserCtxtPtrxmlParserCtxt * xmlParserCtxtPtr; Structure xmlParserInputstruct _xmlParserInput { xmlParserInputBufferPtr buf : UTF-8 encoded buffer const char * filename : The file analyzed, if any const char * directory : the directory/base of the file const xmlChar * base : Base of the array to parse const xmlChar * cur : Current char being parsed const xmlChar * end : end of the array to parse int length : length if known int line : Current line int col : * NOTE: consumed is only tested for equality in the parser code, * unsigned long consumed : How many xmlChars already consumed xmlParserInputDeallocate free : function to deallocate the base const xmlChar * encoding : the encoding string for entity const xmlChar * version : the version string for entity int standalone : Was that entity marked standalone int id : an unique identifier for the entity } xmlParserInput; Structure xmlParserInputBufferstruct _xmlParserInputBuffer { void * context xmlInputReadCallback readcallback xmlInputCloseCallback closecallback xmlCharEncodingHandlerPtr encoder : I18N conversions to UTF-8 xmlBufPtr buffer : Local buffer encoded in UTF-8 xmlBufPtr raw : if encoder != NULL buffer for raw input int compressed : -1=unknown, 0=not compressed, 1=compressed int error unsigned long rawconsumed : amount consumed from raw } xmlParserInputBuffer; Typedef xmlParserInputBufferPtrxmlParserInputBuffer * xmlParserInputBufferPtr; Typedef xmlParserInputPtrxmlParserInput * xmlParserInputPtr; Structure xmlRefstruct _xmlRef { struct _xmlRef * next : next Ref const xmlChar * value : The Ref name xmlAttrPtr attr : The attribute holding it const xmlChar * name : The attribute if attr is not available int lineno : The line number if attr is not available } xmlRef; Structure xmlSAXHandlerstruct _xmlSAXHandler { internalSubsetSAXFunc internalSubset isStandaloneSAXFunc isStandalone hasInternalSubsetSAXFunc hasInternalSubset hasExternalSubsetSAXFunc hasExternalSubset resolveEntitySAXFunc resolveEntity getEntitySAXFunc getEntity entityDeclSAXFunc entityDecl notationDeclSAXFunc notationDecl attributeDeclSAXFunc attributeDecl elementDeclSAXFunc elementDecl unparsedEntityDeclSAXFunc unparsedEntityDecl setDocumentLocatorSAXFunc setDocumentLocator startDocumentSAXFunc startDocument endDocumentSAXFunc endDocument startElementSAXFunc startElement endElementSAXFunc endElement referenceSAXFunc reference charactersSAXFunc characters ignorableWhitespaceSAXFunc ignorableWhitespace processingInstructionSAXFunc processingInstruction commentSAXFunc comment warningSAXFunc warning errorSAXFunc error fatalErrorSAXFunc fatalError : unused error() get all the errors getParameterEntitySAXFunc getParameterEntity cdataBlockSAXFunc cdataBlock externalSubsetSAXFunc externalSubset unsigned int initialized : The following fields are extensions available only on version 2 void * _private startElementNsSAX2Func startElementNs endElementNsSAX2Func endElementNs xmlStructuredErrorFunc serror } xmlSAXHandler; Typedef xmlSAXHandlerPtrxmlSAXHandler * xmlSAXHandlerPtr; Structure xmlSAXLocatorstruct _xmlSAXLocator { const xmlChar *(*getPublicId) getPublicId const xmlChar *(*getSystemId) getSystemId int(*getLineNumber) getLineNumber int(*getColumnNumber) getColumnNumber } xmlSAXLocator; Typedef xmlSAXLocatorPtrxmlSAXLocator * xmlSAXLocatorPtr; Function type xmlDOMWrapAcquireNsFunctionxmlNsPtr xmlDOMWrapAcquireNsFunction (xmlDOMWrapCtxtPtr ctxt, A function called to acquire namespaces (xmlNs) from the wrapper.
xmlAddChild ()xmlNodePtr xmlAddChild (xmlNodePtr parent, Add a new node to @parent, at the end of the child (or property) list merging adjacent TEXT nodes (in which case @cur is freed) If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal name, it is first destroyed. All tree manipulation functions can safely move nodes within a document. But when moving nodes from one document to another, references to namespaces in element or attribute nodes are NOT fixed. In this case, you MUST call xmlReconciliateNs after the move operation to avoid memory errors.
xmlAddChildList ()xmlNodePtr xmlAddChildList (xmlNodePtr parent, Add a list of node at the end of the child list of the parent merging adjacent TEXT nodes (@cur may be freed) See the note regarding namespaces in xmlAddChild.
xmlAddNextSibling ()xmlNodePtr xmlAddNextSibling (xmlNodePtr cur, Add a new node @elem as the next sibling of @cur If the new node was already inserted in a document it is first unlinked from its existing context. As a result of text merging @elem may be freed. If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal name, it is first destroyed. See the note regarding namespaces in xmlAddChild.
xmlAddPrevSibling ()xmlNodePtr xmlAddPrevSibling (xmlNodePtr cur, Add a new node @elem as the previous sibling of @cur merging adjacent TEXT nodes (@elem may be freed) If the new node was already inserted in a document it is first unlinked from its existing context. If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal name, it is first destroyed. See the note regarding namespaces in xmlAddChild.
xmlAddSibling ()xmlNodePtr xmlAddSibling (xmlNodePtr cur, Add a new element @elem to the list of siblings of @cur merging adjacent TEXT nodes (@elem may be freed) If the new element was already inserted in a document it is first unlinked from its existing context. See the note regarding namespaces in xmlAddChild.
xmlAttrSerializeTxtContent ()void xmlAttrSerializeTxtContent (xmlBufferPtr buf, Serialize text attribute values to an xml simple buffer
xmlBufContent ()xmlChar * xmlBufContent (const xmlBuf * buf) Function to extract the content of a buffer
xmlBufEnd ()xmlChar * xmlBufEnd (xmlBufPtr buf) Function to extract the end of the content of a buffer
xmlBufGetNodeContent ()int xmlBufGetNodeContent (xmlBufPtr buf, Read the value of a node @cur, this can be either the text carried directly by this node if it's a TEXT node or the aggregate string of the values carried by this node child's (TEXT and ENTITY_REF). Entity references are substituted. Fills up the buffer @buf with this value
xmlBufNodeDump ()size_t xmlBufNodeDump (xmlBufPtr buf, Dump an XML node, recursive behaviour,children are printed too. Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called
xmlBufShrink ()size_t xmlBufShrink (xmlBufPtr buf, Remove the beginning of an XML buffer. NOTE that this routine behaviour differs from xmlBufferShrink() as it will return 0 on error instead of -1 due to size_t being used as the return type.
xmlBufUse ()size_t xmlBufUse (const xmlBufPtr buf) Function to get the length of a buffer
xmlBufferAdd ()int xmlBufferAdd (xmlBufferPtr buf, Add a string range to an XML buffer. if len == -1, the length of str is recomputed.
xmlBufferAddHead ()int xmlBufferAddHead (xmlBufferPtr buf, Add a string range to the beginning of an XML buffer. if len == -1, the length of @str is recomputed.
xmlBufferCCat ()int xmlBufferCCat (xmlBufferPtr buf, Append a zero terminated C string to an XML buffer.
xmlBufferCat ()int xmlBufferCat (xmlBufferPtr buf, Append a zero terminated string to an XML buffer.
xmlBufferContent ()const xmlChar * xmlBufferContent (const xmlBuffer * buf) Function to extract the content of a buffer
xmlBufferCreate ()xmlBufferPtr xmlBufferCreate (void) routine to create an XML buffer.
xmlBufferCreateSize ()xmlBufferPtr xmlBufferCreateSize (size_t size) routine to create an XML buffer.
xmlBufferCreateStatic ()xmlBufferPtr xmlBufferCreateStatic (void * mem, routine to create an XML buffer from an immutable memory area. The area won't be modified nor copied, and is expected to be present until the end of the buffer lifetime.
xmlBufferDetach ()xmlChar * xmlBufferDetach (xmlBufferPtr buf) Remove the string contained in a buffer and gie it back to the caller. The buffer is reset to an empty content. This doesn't work with immutable buffers as they can't be reset.
xmlBufferDump ()int xmlBufferDump (FILE * file, Dumps an XML buffer to a FILE *.
xmlBufferFree ()void xmlBufferFree (xmlBufferPtr buf) Frees an XML buffer. It frees both the content and the structure which encapsulate it.
xmlBufferGrow ()int xmlBufferGrow (xmlBufferPtr buf, Grow the available space of an XML buffer.
xmlBufferLength ()int xmlBufferLength (const xmlBuffer * buf) Function to get the length of a buffer
xmlBufferResize ()int xmlBufferResize (xmlBufferPtr buf, Resize a buffer to accommodate minimum size of @size.
xmlBufferSetAllocationScheme ()void xmlBufferSetAllocationScheme (xmlBufferPtr buf, Sets the allocation scheme for this buffer
xmlBufferShrink ()int xmlBufferShrink (xmlBufferPtr buf, Remove the beginning of an XML buffer.
xmlBufferWriteCHAR ()void xmlBufferWriteCHAR (xmlBufferPtr buf, routine which manages and grows an output buffer. This one adds xmlChars at the end of the buffer.
xmlBufferWriteChar ()void xmlBufferWriteChar (xmlBufferPtr buf, routine which manage and grows an output buffer. This one add C chars at the end of the array.
xmlBufferWriteQuotedString ()void xmlBufferWriteQuotedString (xmlBufferPtr buf, routine which manage and grows an output buffer. This one writes a quoted or double quoted #xmlChar string, checking first if it holds quote or double-quotes internally
xmlBuildQName ()xmlChar * xmlBuildQName (const xmlChar * ncname, Builds the QName @prefix:@ncname in @memory if there is enough space and prefix is not NULL nor empty, otherwise allocate a new string. If prefix is NULL or empty it returns ncname.
xmlChildElementCount ()unsigned long xmlChildElementCount (xmlNodePtr parent) Finds the current number of child nodes of that element which are element nodes. Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references.
xmlCopyDoc ()xmlDocPtr xmlCopyDoc (xmlDocPtr doc, Do a copy of the document info. If recursive, the content tree will be copied too as well as DTD, namespaces and entities.
xmlCopyDtd ()xmlDtdPtr xmlCopyDtd (xmlDtdPtr dtd) Do a copy of the dtd.
xmlCopyNamespace ()xmlNsPtr xmlCopyNamespace (xmlNsPtr cur) Do a copy of the namespace.
xmlCopyNamespaceList ()xmlNsPtr xmlCopyNamespaceList (xmlNsPtr cur) Do a copy of an namespace list.
xmlCopyNode ()xmlNodePtr xmlCopyNode (xmlNodePtr node, Do a copy of the node.
xmlCopyNodeList ()xmlNodePtr xmlCopyNodeList (xmlNodePtr node) Do a recursive copy of the node list. Use xmlDocCopyNodeList() if possible to ensure string interning.
xmlCopyProp ()xmlAttrPtr xmlCopyProp (xmlNodePtr target, Do a copy of the attribute. xmlCopyPropList ()xmlAttrPtr xmlCopyPropList (xmlNodePtr target, Do a copy of an attribute list.
xmlCreateIntSubset ()xmlDtdPtr xmlCreateIntSubset (xmlDocPtr doc, Create the internal subset of a document
xmlDOMWrapAdoptNode ()int xmlDOMWrapAdoptNode (xmlDOMWrapCtxtPtr ctxt, References of out-of scope ns-decls are remapped to point to @destDoc: 1) If @destParent is given, then nsDef entries on element-nodes are used 2) If *no* @destParent is given, then @destDoc->oldNs entries are used This is the case when you have an unlinked node and just want to move it to the context of If @destParent is given, it ensures that the tree is namespace wellformed by creating additional ns-decls where needed. Note that, since prefixes of already existent ns-decls can be shadowed by this process, it could break QNames in attribute values or element content. NOTE: This function was not intensively tested.
xmlDOMWrapCloneNode ()int xmlDOMWrapCloneNode (xmlDOMWrapCtxtPtr ctxt, References of out-of scope ns-decls are remapped to point to @destDoc: 1) If @destParent is given, then nsDef entries on element-nodes are used 2) If *no* @destParent is given, then @destDoc->oldNs entries are used. This is the case when you don't know already where the cloned branch will be added to. If @destParent is given, it ensures that the tree is namespace wellformed by creating additional ns-decls where needed. Note that, since prefixes of already existent ns-decls can be shadowed by this process, it could break QNames in attribute values or element content. TODO: 1) What to do with XInclude? Currently this returns an error for XInclude.
xmlDOMWrapFreeCtxt ()void xmlDOMWrapFreeCtxt (xmlDOMWrapCtxtPtr ctxt) Frees the DOM-wrapper context.
xmlDOMWrapNewCtxt ()xmlDOMWrapCtxtPtr xmlDOMWrapNewCtxt (void) Allocates and initializes a new DOM-wrapper context.
xmlDOMWrapReconcileNamespaces ()int xmlDOMWrapReconcileNamespaces (xmlDOMWrapCtxtPtr ctxt, Ensures that ns-references point to ns-decls hold on element-nodes. Ensures that the tree is namespace wellformed by creating additional ns-decls where needed. Note that, since prefixes of already existent ns-decls can be shadowed by this process, it could break QNames in attribute values or element content. NOTE: This function was not intensively tested.
xmlDOMWrapRemoveNode ()int xmlDOMWrapRemoveNode (xmlDOMWrapCtxtPtr ctxt, Unlinks the given node from its owner. This will substitute ns-references to node->nsDef for ns-references to doc->oldNs, thus ensuring the removed branch to be autark wrt ns-references. NOTE: This function was not intensively tested.
xmlDocCopyNode ()xmlNodePtr xmlDocCopyNode (xmlNodePtr node, Do a copy of the node to a given document.
xmlDocCopyNodeList ()xmlNodePtr xmlDocCopyNodeList (xmlDocPtr doc, Do a recursive copy of the node list.
xmlDocDump ()int xmlDocDump (FILE * f, Dump an XML document to an open FILE.
xmlDocDumpFormatMemory ()void xmlDocDumpFormatMemory (xmlDocPtr cur, Dump an XML document in memory and return the #xmlChar * and it's size. It's up to the caller to free the memory with xmlFree(). Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called
xmlDocDumpFormatMemoryEnc ()void xmlDocDumpFormatMemoryEnc (xmlDocPtr out_doc, Dump the current DOM tree into memory using the character encoding specified by the caller. Note it is up to the caller of this function to free the allocated memory with xmlFree(). Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called
xmlDocDumpMemory ()void xmlDocDumpMemory (xmlDocPtr cur, Dump an XML document in memory and return the #xmlChar * and it's size in bytes. It's up to the caller to free the memory with xmlFree(). The resulting byte array is zero terminated, though the last 0 is not included in the returned size.
xmlDocDumpMemoryEnc ()void xmlDocDumpMemoryEnc (xmlDocPtr out_doc, Dump the current DOM tree into memory using the character encoding specified by the caller. Note it is up to the caller of this function to free the allocated memory with xmlFree().
xmlDocFormatDump ()int xmlDocFormatDump (FILE * f, Dump an XML document to an open FILE.
xmlDocGetRootElement ()xmlNodePtr xmlDocGetRootElement (const xmlDoc * doc) Get the root element of the document (doc->children is a list containing possibly comments, PIs, etc ...).
xmlDocSetRootElement ()xmlNodePtr xmlDocSetRootElement (xmlDocPtr doc, Set the root element of the document (doc->children is a list containing possibly comments, PIs, etc ...).
xmlElemDump ()void xmlElemDump (FILE * f, Dump an XML/HTML node, recursive behaviour, children are printed too.
xmlFirstElementChild ()xmlNodePtr xmlFirstElementChild (xmlNodePtr parent) Finds the first child node of that element which is a Element node Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references.
xmlFreeDoc ()void xmlFreeDoc (xmlDocPtr cur) Free up all the structures used by a document, tree included.
xmlFreeDtd ()void xmlFreeDtd (xmlDtdPtr cur) Free a DTD structure.
xmlFreeNode ()void xmlFreeNode (xmlNodePtr cur) Free a node, this is a recursive behaviour, all the children are freed too. This doesn't unlink the child from the list, use xmlUnlinkNode() first.
xmlFreeNodeList ()void xmlFreeNodeList (xmlNodePtr cur) Free a node and all its siblings, this is a recursive behaviour, all the children are freed too.
xmlFreeNs ()void xmlFreeNs (xmlNsPtr cur) Free up the structures associated to a namespace
xmlFreeNsList ()void xmlFreeNsList (xmlNsPtr cur) Free up all the structures associated to the chained namespaces.
xmlFreeProp ()void xmlFreeProp (xmlAttrPtr cur) Free one attribute, all the content is freed too
xmlFreePropList ()void xmlFreePropList (xmlAttrPtr cur) Free a property and all its siblings, all the children are freed too.
xmlGetBufferAllocationScheme ()xmlBufferAllocationScheme xmlGetBufferAllocationScheme (void) Types are XML_BUFFER_ALLOC_EXACT - use exact sizes, keeps memory usage down XML_BUFFER_ALLOC_DOUBLEIT - double buffer when extra needed, improves performance XML_BUFFER_ALLOC_HYBRID - use exact sizes on small strings to keep memory usage tight in normal usage, and doubleit on large strings to avoid pathological performance.
xmlGetCompressMode ()int xmlGetCompressMode (void) get the default compression mode used, ZLIB based.
xmlGetDocCompressMode ()int xmlGetDocCompressMode (const xmlDoc * doc) get the compression ratio for a document, ZLIB based
xmlGetIntSubset ()xmlDtdPtr xmlGetIntSubset (const xmlDoc * doc) Get the internal subset of a document
xmlGetLastChild ()xmlNodePtr xmlGetLastChild (const xmlNode * parent) Search the last child of a node.
xmlGetLineNo ()long xmlGetLineNo (const xmlNode * node) Get line number of @node. Try to override the limitation of lines being store in 16 bits ints if XML_PARSE_BIG_LINES parser option was used
xmlGetNoNsProp ()xmlChar * xmlGetNoNsProp (const xmlNode * node, Search and get the value of an attribute associated to a node This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. This function is similar to xmlGetProp except it will accept only an attribute in no namespace. xmlGetNodePath ()xmlChar * xmlGetNodePath (const xmlNode * node) Build a structure based Path for the given node
xmlGetNsList ()xmlNsPtr * xmlGetNsList (const xmlDoc * doc, Search all the namespace applying to a given element.
xmlGetNsProp ()xmlChar * xmlGetNsProp (const xmlNode * node, Search and get the value of an attribute associated to a node This attribute has to be anchored in the namespace specified. This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. xmlGetProp ()xmlChar * xmlGetProp (const xmlNode * node, Search and get the value of an attribute associated to a node This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. NOTE: this function acts independently of namespaces associated to the attribute. Use xmlGetNsProp() or xmlGetNoNsProp() for namespace aware processing. xmlHasNsProp ()xmlAttrPtr xmlHasNsProp (const xmlNode * node, Search for an attribute associated to a node This attribute has to be anchored in the namespace specified. This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. Note that a namespace of NULL indicates to use the default namespace. xmlHasProp ()xmlAttrPtr xmlHasProp (const xmlNode * node, Search an attribute associated to a node This function also looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. xmlIsBlankNode ()int xmlIsBlankNode (const xmlNode * node) Checks whether this node is an empty or whitespace only (and possibly ignorable) text-node.
xmlIsXHTML ()int xmlIsXHTML (const xmlChar * systemID, Try to find if the document correspond to an XHTML DTD
xmlLastElementChild ()xmlNodePtr xmlLastElementChild (xmlNodePtr parent) Finds the last child node of that element which is a Element node Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references.
xmlNewCDataBlock ()xmlNodePtr xmlNewCDataBlock (xmlDocPtr doc, Creation of a new node containing a CDATA block.
xmlNewCharRef ()xmlNodePtr xmlNewCharRef (xmlDocPtr doc, Creation of a new character reference node.
xmlNewChild ()xmlNodePtr xmlNewChild (xmlNodePtr parent, Creation of a new child element, added at the end of @parent children list. @ns and @content parameters are optional (NULL). If @ns is NULL, the newly created element inherits the namespace of @parent. If @content is non NULL, a child list containing the TEXTs and ENTITY_REFs node will be created. NOTE: @content is supposed to be a piece of XML CDATA, so it allows entity references. XML special chars must be escaped first by using xmlEncodeEntitiesReentrant(), or xmlNewTextChild() should be used.
xmlNewComment ()xmlNodePtr xmlNewComment (const xmlChar * content) Use of this function is DISCOURAGED in favor of xmlNewDocComment. Creation of a new node containing a comment.
xmlNewDoc ()xmlDocPtr xmlNewDoc (const xmlChar * version) Creates a new XML document
xmlNewDocComment ()xmlNodePtr xmlNewDocComment (xmlDocPtr doc, Creation of a new node containing a comment within a document.
xmlNewDocFragment ()xmlNodePtr xmlNewDocFragment (xmlDocPtr doc) Creation of a new Fragment node.
xmlNewDocNode ()xmlNodePtr xmlNewDocNode (xmlDocPtr doc, Creation of a new node element within a document. @ns and @content are optional (NULL). NOTE: @content is supposed to be a piece of XML CDATA, so it allow entities references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant(). Use xmlNewDocRawNode() if you don't need entities support.
xmlNewDocNodeEatName ()xmlNodePtr xmlNewDocNodeEatName (xmlDocPtr doc, Creation of a new node element within a document. @ns and @content are optional (NULL). NOTE: @content is supposed to be a piece of XML CDATA, so it allow entities references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant(). Use xmlNewDocRawNode() if you don't need entities support.
xmlNewDocPI ()xmlNodePtr xmlNewDocPI (xmlDocPtr doc, Creation of a processing instruction element.
xmlNewDocProp ()xmlAttrPtr xmlNewDocProp (xmlDocPtr doc, Create a new property carried by a document. NOTE: @value is supposed to be a piece of XML CDATA, so it allows entity references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant(). Use xmlNewProp() if you don't need entities support. xmlNewDocRawNode ()xmlNodePtr xmlNewDocRawNode (xmlDocPtr doc, Creation of a new node element within a document. @ns and @content are optional (NULL).
xmlNewDocText ()xmlNodePtr xmlNewDocText (const xmlDoc * doc, Creation of a new text node within a document.
xmlNewDocTextLen ()xmlNodePtr xmlNewDocTextLen (xmlDocPtr doc, Creation of a new text node with an extra content length parameter. The text node pertain to a given document.
xmlNewDtd ()xmlDtdPtr xmlNewDtd (xmlDocPtr doc, Creation of a new DTD for the external subset. To create an internal subset, use xmlCreateIntSubset().
xmlNewGlobalNs ()xmlNsPtr xmlNewGlobalNs (xmlDocPtr doc, Creation of a Namespace, the old way using PI and without scoping DEPRECATED !!!
xmlNewNode ()xmlNodePtr xmlNewNode (xmlNsPtr ns, Creation of a new node element. @ns is optional (NULL). Use of this function is DISCOURAGED in favor of xmlNewDocNode.
xmlNewNodeEatName ()xmlNodePtr xmlNewNodeEatName (xmlNsPtr ns, Creation of a new node element. @ns is optional (NULL). Use of this function is DISCOURAGED in favor of xmlNewDocNodeEatName.
xmlNewNs ()xmlNsPtr xmlNewNs (xmlNodePtr node, Creation of a new Namespace. This function will refuse to create a namespace with a similar prefix than an existing one present on this node. Note that for a default namespace, @prefix should be NULL. We use href==NULL in the case of an element creation where the namespace was not defined.
xmlNewNsProp ()xmlAttrPtr xmlNewNsProp (xmlNodePtr node, Create a new property tagged with a namespace and carried by a node. xmlNewNsPropEatName ()xmlAttrPtr xmlNewNsPropEatName (xmlNodePtr node, Create a new property tagged with a namespace and carried by a node. xmlNewPI ()xmlNodePtr xmlNewPI (const xmlChar * name, Creation of a processing instruction element. Use of this function is DISCOURAGED in favor of xmlNewDocPI.
xmlNewProp ()xmlAttrPtr xmlNewProp (xmlNodePtr node, Create a new property carried by a node. xmlNewReference ()xmlNodePtr xmlNewReference (const xmlDoc * doc, Creation of a new reference node. xmlNewText ()xmlNodePtr xmlNewText (const xmlChar * content) Creation of a new text node. Use of this function is DISCOURAGED in favor of xmlNewDocText.
xmlNewTextChild ()xmlNodePtr xmlNewTextChild (xmlNodePtr parent, Creation of a new child element, added at the end of @parent children list. @ns and @content parameters are optional (NULL). If @ns is NULL, the newly created element inherits the namespace of @parent. If @content is non NULL, a child TEXT node will be created containing the string @content. NOTE: Use xmlNewChild() if @content will contain entities that need to be preserved. Use this function, xmlNewTextChild(), if you need to ensure that reserved XML chars that might appear in @content, such as the ampersand, greater-than or less-than signs, are automatically replaced by their XML escaped entity representations.
xmlNewTextLen ()xmlNodePtr xmlNewTextLen (const xmlChar * content, Use of this function is DISCOURAGED in favor of xmlNewDocTextLen. Creation of a new text node with an extra parameter for the content's length
xmlNextElementSibling ()xmlNodePtr xmlNextElementSibling (xmlNodePtr node) Finds the first closest next sibling of the node which is an element node. Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references.
xmlNodeAddContent ()void xmlNodeAddContent (xmlNodePtr cur, Append the extra substring to the node content. NOTE: In contrast to xmlNodeSetContent(), @content is supposed to be raw text, so unescaped XML special chars are allowed, entity references are not supported.
xmlNodeAddContentLen ()void xmlNodeAddContentLen (xmlNodePtr cur, Append the extra substring to the node content. NOTE: In contrast to xmlNodeSetContentLen(), @content is supposed to be raw text, so unescaped XML special chars are allowed, entity references are not supported.
xmlNodeBufGetContent ()int xmlNodeBufGetContent (xmlBufferPtr buffer, Read the value of a node @cur, this can be either the text carried directly by this node if it's a TEXT node or the aggregate string of the values carried by this node child's (TEXT and ENTITY_REF). Entity references are substituted. Fills up the buffer @buffer with this value
xmlNodeDump ()int xmlNodeDump (xmlBufferPtr buf, Dump an XML node, recursive behaviour,children are printed too. Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called. Since this is using xmlBuffer structures it is limited to 2GB and somehow deprecated, use xmlNodeDumpOutput() instead.
xmlNodeDumpOutput ()void xmlNodeDumpOutput (xmlOutputBufferPtr buf, Dump an XML node, recursive behaviour, children are printed too. Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called
xmlNodeGetBase ()xmlChar * xmlNodeGetBase (const xmlDoc * doc, Searches for the BASE URL. The code should work on both XML and HTML document even if base mechanisms are completely different. It returns the base as defined in RFC 2396 sections 5.1.1. Base URI within Document Content and 5.1.2. Base URI from the Encapsulating Entity However it does not return the document base (5.1.3), use doc->URL in this case
xmlNodeGetContent ()xmlChar * xmlNodeGetContent (const xmlNode * cur) Read the value of a node, this can be either the text carried directly by this node if it's a TEXT node or the aggregate string of the values carried by this node child's (TEXT and ENTITY_REF). Entity references are substituted.
xmlNodeGetLang ()xmlChar * xmlNodeGetLang (const xmlNode * cur) Searches the language of a node, i.e. the values of the xml:lang attribute or the one carried by the nearest ancestor.
xmlNodeGetSpacePreserve ()int xmlNodeGetSpacePreserve (const xmlNode * cur) Searches the space preserving behaviour of a node, i.e. the values of the xml:space attribute or the one carried by the nearest ancestor.
xmlNodeIsText ()int xmlNodeIsText (const xmlNode * node) Is this node a Text node ?
xmlNodeListGetRawString ()xmlChar * xmlNodeListGetRawString (const xmlDoc * doc, Builds the string equivalent to the text contained in the Node list made of TEXTs and ENTITY_REFs, contrary to xmlNodeListGetString() this function doesn't do any character encoding handling.
xmlNodeListGetString ()xmlChar * xmlNodeListGetString (xmlDocPtr doc, Build the string equivalent to the text contained in the Node list made of TEXTs and ENTITY_REFs
xmlNodeSetBase ()void xmlNodeSetBase (xmlNodePtr cur, Set (or reset) the base URI of a node, i.e. the value of the xml:base attribute.
xmlNodeSetContent ()void xmlNodeSetContent (xmlNodePtr cur, Replace the content of a node. NOTE: @content is supposed to be a piece of XML CDATA, so it allows entity references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant() resp. xmlEncodeSpecialChars().
xmlNodeSetContentLen ()void xmlNodeSetContentLen (xmlNodePtr cur, Replace the content of a node. NOTE: @content is supposed to be a piece of XML CDATA, so it allows entity references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant() resp. xmlEncodeSpecialChars().
xmlNodeSetLang ()void xmlNodeSetLang (xmlNodePtr cur, Set the language of a node, i.e. the values of the xml:lang attribute.
xmlNodeSetName ()void xmlNodeSetName (xmlNodePtr cur, Set (or reset) the name of a node.
xmlNodeSetSpacePreserve ()void xmlNodeSetSpacePreserve (xmlNodePtr cur, Set (or reset) the space preserving behaviour of a node, i.e. the value of the xml:space attribute.
xmlPreviousElementSibling ()xmlNodePtr xmlPreviousElementSibling (xmlNodePtr node) Finds the first closest previous sibling of the node which is an element node. Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references.
xmlReconciliateNs ()int xmlReconciliateNs (xmlDocPtr doc, This function checks that all the namespaces declared within the given tree are properly declared. This is needed for example after Copy or Cut and then paste operations. The subtree may still hold pointers to namespace declarations outside the subtree or invalid/masked. As much as possible the function try to reuse the existing namespaces found in the new environment. If not possible the new namespaces are redeclared on @tree at the top of the given subtree.
xmlRemoveProp ()int xmlRemoveProp (xmlAttrPtr cur) Unlink and free one attribute, all the content is freed too Note this doesn't work for namespace definition attributes
xmlReplaceNode ()xmlNodePtr xmlReplaceNode (xmlNodePtr old, Unlink the old node from its current context, prune the new one at the same place. If @cur was already inserted in a document it is first unlinked from its existing context. See the note regarding namespaces in xmlAddChild.
xmlSaveFile ()int xmlSaveFile (const char * filename, Dump an XML document to a file. Will use compression if compiled in and enabled. If @filename is "-" the stdout file is used.
xmlSaveFileEnc ()int xmlSaveFileEnc (const char * filename, Dump an XML document, converting it to the given encoding
xmlSaveFileTo ()int xmlSaveFileTo (xmlOutputBufferPtr buf, Dump an XML document to an I/O buffer. Warning ! This call xmlOutputBufferClose() on buf which is not available after this call.
xmlSaveFormatFile ()int xmlSaveFormatFile (const char * filename, Dump an XML document to a file. Will use compression if compiled in and enabled. If @filename is "-" the stdout file is used. If @format is set then the document will be indented on output. Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called
xmlSaveFormatFileEnc ()int xmlSaveFormatFileEnc (const char * filename, Dump an XML document to a file or an URL.
xmlSaveFormatFileTo ()int xmlSaveFormatFileTo (xmlOutputBufferPtr buf, Dump an XML document to an I/O buffer. Warning ! This call xmlOutputBufferClose() on buf which is not available after this call.
xmlSearchNs ()xmlNsPtr xmlSearchNs (xmlDocPtr doc, Search a Ns registered under a given name space for a document. recurse on the parents until it finds the defined namespace or return NULL otherwise. @nameSpace can be NULL, this is a search for the default namespace. We don't allow to cross entities boundaries. If you don't declare the namespace within those you will be in troubles !!! A warning is generated to cover this case.
xmlSearchNsByHref ()xmlNsPtr xmlSearchNsByHref (xmlDocPtr doc, Search a Ns aliasing a given URI. Recurse on the parents until it finds the defined namespace or return NULL otherwise.
xmlSetBufferAllocationScheme ()void xmlSetBufferAllocationScheme (xmlBufferAllocationScheme scheme) Set the buffer allocation method. Types are XML_BUFFER_ALLOC_EXACT - use exact sizes, keeps memory usage down XML_BUFFER_ALLOC_DOUBLEIT - double buffer when extra needed, improves performance
xmlSetCompressMode ()void xmlSetCompressMode (int mode) set the default compression mode used, ZLIB based Correct values: 0 (uncompressed) to 9 (max compression)
xmlSetDocCompressMode ()void xmlSetDocCompressMode (xmlDocPtr doc, set the compression ratio for a document, ZLIB based Correct values: 0 (uncompressed) to 9 (max compression)
xmlSetListDoc ()void xmlSetListDoc (xmlNodePtr list, update all nodes in the list to point to the right document
xmlSetNs ()void xmlSetNs (xmlNodePtr node, Associate a namespace to a node, a posteriori.
xmlSetNsProp ()xmlAttrPtr xmlSetNsProp (xmlNodePtr node, Set (or reset) an attribute carried by a node. The ns structure must be in scope, this is not checked xmlSetProp ()xmlAttrPtr xmlSetProp (xmlNodePtr node, Set (or reset) an attribute carried by a node. If @name has a prefix, then the corresponding namespace-binding will be used, if in scope; it is an error it there's no such ns-binding for the prefix in scope. xmlSetTreeDoc ()void xmlSetTreeDoc (xmlNodePtr tree, update all nodes under the tree to point to the right document
xmlSplitQName2 ()xmlChar * xmlSplitQName2 (const xmlChar * name, parse an XML qualified name string [NS 5] QName ::= (Prefix ':')? LocalPart [NS 6] Prefix ::= NCName [NS 7] LocalPart ::= NCName
xmlSplitQName3 ()const xmlChar * xmlSplitQName3 (const xmlChar * name, parse an XML qualified name string,i
xmlStringGetNodeList ()xmlNodePtr xmlStringGetNodeList (const xmlDoc * doc, Parse the value string and build the node list associated. Should produce a flat tree with only TEXTs and ENTITY_REFs.
xmlStringLenGetNodeList ()xmlNodePtr xmlStringLenGetNodeList (const xmlDoc * doc, Parse the value string and build the node list associated. Should produce a flat tree with only TEXTs and ENTITY_REFs.
xmlTextConcat ()int xmlTextConcat (xmlNodePtr node, Concat the given string at the end of the existing node content
xmlTextMerge ()xmlNodePtr xmlTextMerge (xmlNodePtr first, Merge two text nodes into one
xmlUnlinkNode ()void xmlUnlinkNode (xmlNodePtr cur) Unlink a node from it's current context, the node is not freed If one need to free the node, use xmlFreeNode() routine after the unlink to discard it. Note that namespace nodes can't be unlinked as they do not have pointer to their parent.
xmlUnsetNsProp ()int xmlUnsetNsProp (xmlNodePtr node, Remove an attribute carried by a node.
xmlUnsetProp ()int xmlUnsetProp (xmlNodePtr node, Remove an attribute carried by a node. This handles only attributes in no namespace.
xmlValidateNCName ()int xmlValidateNCName (const xmlChar * value, Check that a value conforms to the lexical space of NCName
xmlValidateNMToken ()int xmlValidateNMToken (const xmlChar * value, Check that a value conforms to the lexical space of NMToken
xmlValidateName ()int xmlValidateName (const xmlChar * value, Check that a value conforms to the lexical space of Name
xmlValidateQName ()int xmlValidateQName (const xmlChar * value, Check that a value conforms to the lexical space of QName
|
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0987 ]-- |