http://swpat.ffii.org/
Action against software patents
http://www.gnome.org/
Gnome2 Logo
http://www.w3.org/Status
W3C Logo
http://www.redhat.com/
Red Hat Logo
http://xmlsoft.org/
Made with Libxml2 Logo
Module tree from libxml2
API Menu
../index.html
Main Menu
../docs.html
Developer Menu
../examples/index.html
Code Examples
index.html
API Menu
libxml-parser.html
Parser API
libxml-tree.html
Tree API
libxml-xmlreader.html
Reader API
../guidelines.html
XML Guidelines
../ChangeLog.html
ChangeLog
API Indexes
../APIchunk0.html
Alphabetic
../APIconstructors.html
Constructors
../APIfunctions.html
Functions/Types
../APIfiles.html
Modules
../APIsymbols.html
Symbols
Related links
http://mail.gnome.org/archives/xml/
Mail archive
http://xmlsoft.org/XSLT/
XSLT libxslt
http://phd.cs.unibo.it/gdome2/
DOM gdome2
http://www.aleksey.com/xmlsec/
XML-DSig xmlsec
ftp://xmlsoft.org/
FTP
http://www.zlatkovic.com/projects/libxml/
Windows binaries
http://www.blastwave.org/packages.php/libxml2
Solaris binaries
http://www.explain.com.au/oss/libxml2xslt.html
MacOsX binaries
http://libxmlplusplus.sourceforge.net/
C++ bindings
http://www.zend.com/php5/articles/php5-xmlphp.php#Heading4
PHP bindings
http://sourceforge.net/projects/libxml2-pas/
Pascal bindings
http://rubyforge.org/projects/xml-tools/
Ruby bindings
http://tclxml.sourceforge.net/
Tcl bindings
http://bugzilla.gnome.org/buglist.cgi?product=libxml2
Bug Tracker
libxml-threads.html
Prev
libxml-threads.html
threads
index.html
Up
index.html
API documentation
../index.html
Home
../index.html
The XML C parser and toolkit of Gnome
libxml-uri.html
uri
libxml-uri.html
Next
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
Table of Contents
#define
#BASE_BUFFER_SIZE
BASE_BUFFER_SIZE
#define
#XML_GET_CONTENT
XML_GET_CONTENT
#define
#XML_GET_LINE
XML_GET_LINE
#define
#XML_LOCAL_NAMESPACE
XML_LOCAL_NAMESPACE
#define
#XML_XML_ID
XML_XML_ID
#define
#XML_XML_NAMESPACE
XML_XML_NAMESPACE
#define
#xmlChildrenNode
xmlChildrenNode
#define
#xmlRootNode
xmlRootNode
Structure
#xmlAttr
xmlAttr
struct _xmlAttr
Typedef
libxml-tree.html#xmlAttr
xmlAttr
*
xmlAttrPtr
Structure
#xmlAttribute
xmlAttribute
struct _xmlAttribute
Enum
#xmlAttributeDefault
xmlAttributeDefault
Typedef
libxml-tree.html#xmlAttribute
xmlAttribute
*
xmlAttributePtr
Enum
#xmlAttributeType
xmlAttributeType
Structure
#xmlBuffer
xmlBuffer
struct _xmlBuffer
Enum
#xmlBufferAllocationScheme
xmlBufferAllocationScheme
Typedef
libxml-tree.html#xmlBuffer
xmlBuffer
*
xmlBufferPtr
Structure
#xmlDOMWrapCtxt
xmlDOMWrapCtxt
struct _xmlDOMWrapCtxt
Typedef
libxml-tree.html#xmlDOMWrapCtxt
xmlDOMWrapCtxt
*
xmlDOMWrapCtxtPtr
Structure
#xmlDoc
xmlDoc
struct _xmlDoc
Typedef
libxml-tree.html#xmlDoc
xmlDoc
*
xmlDocPtr
Structure
#xmlDtd
xmlDtd
struct _xmlDtd
Typedef
libxml-tree.html#xmlDtd
xmlDtd
*
xmlDtdPtr
Structure
#xmlElement
xmlElement
struct _xmlElement
Structure
#xmlElementContent
xmlElementContent
struct _xmlElementContent
Enum
#xmlElementContentOccur
xmlElementContentOccur
Typedef
libxml-tree.html#xmlElementContent
xmlElementContent
*
xmlElementContentPtr
Enum
#xmlElementContentType
xmlElementContentType
Typedef
libxml-tree.html#xmlElement
xmlElement
*
xmlElementPtr
Enum
#xmlElementType
xmlElementType
Enum
#xmlElementTypeVal
xmlElementTypeVal
Structure
#xmlEntity
xmlEntity
struct _xmlEntity
Typedef
libxml-tree.html#xmlEntity
xmlEntity
*
xmlEntityPtr
Structure
#xmlEnumeration
xmlEnumeration
struct _xmlEnumeration
Typedef
libxml-tree.html#xmlEnumeration
xmlEnumeration
*
xmlEnumerationPtr
Structure
#xmlID
xmlID
struct _xmlID
Typedef
libxml-tree.html#xmlID
xmlID
*
xmlIDPtr
Structure
#xmlNode
xmlNode
struct _xmlNode
Typedef
libxml-tree.html#xmlNode
xmlNode
*
xmlNodePtr
Structure
#xmlNotation
xmlNotation
struct _xmlNotation
Typedef
libxml-tree.html#xmlNotation
xmlNotation
*
xmlNotationPtr
Structure
#xmlNs
xmlNs
struct _xmlNs
Typedef
libxml-tree.html#xmlNs
xmlNs
*
xmlNsPtr
Typedef
libxml-tree.html#xmlElementType
xmlElementType
xmlNsType
Structure
#xmlOutputBuffer
xmlOutputBuffer
struct _xmlOutputBuffer
Typedef
libxml-tree.html#xmlOutputBuffer
xmlOutputBuffer
*
xmlOutputBufferPtr
Structure
#xmlParserCtxt
xmlParserCtxt
struct _xmlParserCtxt
Typedef
libxml-tree.html#xmlParserCtxt
xmlParserCtxt
*
xmlParserCtxtPtr
Structure
#xmlParserInput
xmlParserInput
struct _xmlParserInput
Structure
#xmlParserInputBuffer
xmlParserInputBuffer
struct _xmlParserInputBuffer
Typedef
libxml-tree.html#xmlParserInputBuffer
xmlParserInputBuffer
*
xmlParserInputBufferPtr
Typedef
libxml-tree.html#xmlParserInput
xmlParserInput
*
xmlParserInputPtr
Structure
#xmlRef
xmlRef
struct _xmlRef
Typedef
libxml-tree.html#xmlRef
xmlRef
*
xmlRefPtr
Structure
#xmlSAXHandler
xmlSAXHandler
struct _xmlSAXHandler
Typedef
libxml-tree.html#xmlSAXHandler
xmlSAXHandler
*
xmlSAXHandlerPtr
Structure
#xmlSAXLocator
xmlSAXLocator
struct _xmlSAXLocator
Typedef
libxml-tree.html#xmlSAXLocator
xmlSAXLocator
*
xmlSAXLocatorPtr
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlAddChild
xmlAddChild
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
parent,
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlAddChildList
xmlAddChildList
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
parent,
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlAddNextSibling
xmlAddNextSibling
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlAddPrevSibling
xmlAddPrevSibling
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlAddSibling
xmlAddSibling
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem)
void
#xmlAttrSerializeTxtContent
xmlAttrSerializeTxtContent
(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
attr,
const
libxml-xmlstring.html#xmlChar
xmlChar
* string)
int
#xmlBufferAdd
xmlBufferAdd
(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
const
libxml-xmlstring.html#xmlChar
xmlChar
* str,
int len)
int
#xmlBufferAddHead
xmlBufferAddHead
(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
const
libxml-xmlstring.html#xmlChar
xmlChar
* str,
int len)
int
#xmlBufferCCat
xmlBufferCCat
(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
const char * str)
int
#xmlBufferCat
xmlBufferCat
(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
const
libxml-xmlstring.html#xmlChar
xmlChar
* str)
const
libxml-xmlstring.html#xmlChar
xmlChar
*
#xmlBufferContent
xmlBufferContent
(const
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf)
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
#xmlBufferCreate
xmlBufferCreate
(void)
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
#xmlBufferCreateSize
xmlBufferCreateSize
(size_t size)
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
#xmlBufferCreateStatic
xmlBufferCreateStatic
(void * mem,
size_t size)
int
#xmlBufferDump
xmlBufferDump
(FILE * file,
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf)
void
#xmlBufferEmpty
xmlBufferEmpty
(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf)
void
#xmlBufferFree
xmlBufferFree
(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf)
int
#xmlBufferGrow
xmlBufferGrow
(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
unsigned int len)
int
#xmlBufferLength
xmlBufferLength
(const
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf)
int
#xmlBufferResize
xmlBufferResize
(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
unsigned int size)
void
#xmlBufferSetAllocationScheme
xmlBufferSetAllocationScheme
(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
libxml-tree.html#xmlBufferAllocationScheme
xmlBufferAllocationScheme
scheme)
int
#xmlBufferShrink
xmlBufferShrink
(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
unsigned int len)
void
#xmlBufferWriteCHAR
xmlBufferWriteCHAR
(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
const
libxml-xmlstring.html#xmlChar
xmlChar
* string)
void
#xmlBufferWriteChar
xmlBufferWriteChar
(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
const char * string)
void
#xmlBufferWriteQuotedString
xmlBufferWriteQuotedString
(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
const
libxml-xmlstring.html#xmlChar
xmlChar
* string)
libxml-xmlstring.html#xmlChar
xmlChar
*
#xmlBuildQName
xmlBuildQName
(const
libxml-xmlstring.html#xmlChar
xmlChar
* ncname,
const
libxml-xmlstring.html#xmlChar
xmlChar
* prefix,
libxml-xmlstring.html#xmlChar
xmlChar
* memory,
int len)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlCopyDoc
xmlCopyDoc
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
int recursive)
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
#xmlCopyDtd
xmlCopyDtd
(
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
dtd)
libxml-tree.html#xmlNsPtr
xmlNsPtr
#xmlCopyNamespace
xmlCopyNamespace
(
libxml-tree.html#xmlNsPtr
xmlNsPtr
cur)
libxml-tree.html#xmlNsPtr
xmlNsPtr
#xmlCopyNamespaceList
xmlCopyNamespaceList
(
libxml-tree.html#xmlNsPtr
xmlNsPtr
cur)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlCopyNode
xmlCopyNode
(const
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
int extended)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlCopyNodeList
xmlCopyNodeList
(const
libxml-tree.html#xmlNodePtr
xmlNodePtr
node)
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
#xmlCopyProp
xmlCopyProp
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
target,
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
cur)
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
#xmlCopyPropList
xmlCopyPropList
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
target,
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
cur)
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
#xmlCreateIntSubset
xmlCreateIntSubset
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ExternalID,
const
libxml-xmlstring.html#xmlChar
xmlChar
* SystemID)
int
#xmlDOMWrapAdoptNode
xmlDOMWrapAdoptNode
(
libxml-tree.html#xmlDOMWrapCtxtPtr
xmlDOMWrapCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
sourceDoc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
libxml-tree.html#xmlDocPtr
xmlDocPtr
destDoc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
destParent,
int options)
void
#xmlDOMWrapFreeCtxt
xmlDOMWrapFreeCtxt
(
libxml-tree.html#xmlDOMWrapCtxtPtr
xmlDOMWrapCtxtPtr
ctxt)
libxml-tree.html#xmlDOMWrapCtxtPtr
xmlDOMWrapCtxtPtr
#xmlDOMWrapNewCtxt
xmlDOMWrapNewCtxt
(void)
int
#xmlDOMWrapReconcileNamespaces
xmlDOMWrapReconcileNamespaces
(
libxml-tree.html#xmlDOMWrapCtxtPtr
xmlDOMWrapCtxtPtr
ctxt,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem,
int options)
int
#xmlDOMWrapRemoveNode
xmlDOMWrapRemoveNode
(
libxml-tree.html#xmlDOMWrapCtxtPtr
xmlDOMWrapCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
int options)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlDocCopyNode
xmlDocCopyNode
(const
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
int extended)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlDocCopyNodeList
xmlDocCopyNodeList
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-tree.html#xmlNodePtr
xmlNodePtr
node)
int
#xmlDocDump
xmlDocDump
(FILE * f,
libxml-tree.html#xmlDocPtr
xmlDocPtr
cur)
void
#xmlDocDumpFormatMemory
xmlDocDumpFormatMemory
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
cur,
libxml-xmlstring.html#xmlChar
xmlChar
** mem,
int * size,
int format)
void
#xmlDocDumpFormatMemoryEnc
xmlDocDumpFormatMemoryEnc
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
out_doc,
libxml-xmlstring.html#xmlChar
xmlChar
** doc_txt_ptr,
int * doc_txt_len,
const char * txt_encoding,
int format)
void
#xmlDocDumpMemory
xmlDocDumpMemory
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
cur,
libxml-xmlstring.html#xmlChar
xmlChar
** mem,
int * size)
void
#xmlDocDumpMemoryEnc
xmlDocDumpMemoryEnc
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
out_doc,
libxml-xmlstring.html#xmlChar
xmlChar
** doc_txt_ptr,
int * doc_txt_len,
const char * txt_encoding)
int
#xmlDocFormatDump
xmlDocFormatDump
(FILE * f,
libxml-tree.html#xmlDocPtr
xmlDocPtr
cur,
int format)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlDocGetRootElement
xmlDocGetRootElement
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlDocSetRootElement
xmlDocSetRootElement
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
root)
void
#xmlElemDump
xmlElemDump
(FILE * f,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur)
void
#xmlFreeDoc
xmlFreeDoc
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
cur)
void
#xmlFreeDtd
xmlFreeDtd
(
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
cur)
void
#xmlFreeNode
xmlFreeNode
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur)
void
#xmlFreeNodeList
xmlFreeNodeList
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur)
void
#xmlFreeNs
xmlFreeNs
(
libxml-tree.html#xmlNsPtr
xmlNsPtr
cur)
void
#xmlFreeNsList
xmlFreeNsList
(
libxml-tree.html#xmlNsPtr
xmlNsPtr
cur)
void
#xmlFreeProp
xmlFreeProp
(
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
cur)
void
#xmlFreePropList
xmlFreePropList
(
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
cur)
libxml-tree.html#xmlBufferAllocationScheme
xmlBufferAllocationScheme
#xmlGetBufferAllocationScheme
xmlGetBufferAllocationScheme
(void)
int
#xmlGetCompressMode
xmlGetCompressMode
(void)
int
#xmlGetDocCompressMode
xmlGetDocCompressMode
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc)
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
#xmlGetIntSubset
xmlGetIntSubset
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlGetLastChild
xmlGetLastChild
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
parent)
long
#xmlGetLineNo
xmlGetLineNo
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node)
libxml-xmlstring.html#xmlChar
xmlChar
*
#xmlGetNoNsProp
xmlGetNoNsProp
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
libxml-xmlstring.html#xmlChar
xmlChar
*
#xmlGetNodePath
xmlGetNodePath
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node)
libxml-tree.html#xmlNsPtr
xmlNsPtr
*
#xmlGetNsList
xmlGetNsList
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
node)
libxml-xmlstring.html#xmlChar
xmlChar
*
#xmlGetNsProp
xmlGetNsProp
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* nameSpace)
libxml-xmlstring.html#xmlChar
xmlChar
*
#xmlGetProp
xmlGetProp
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
#xmlHasNsProp
xmlHasNsProp
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* nameSpace)
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
#xmlHasProp
xmlHasProp
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
int
#xmlIsBlankNode
xmlIsBlankNode
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node)
int
#xmlIsXHTML
xmlIsXHTML
(const
libxml-xmlstring.html#xmlChar
xmlChar
* systemID,
const
libxml-xmlstring.html#xmlChar
xmlChar
* publicID)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlNewCDataBlock
xmlNewCDataBlock
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content,
int len)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlNewCharRef
xmlNewCharRef
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlNewChild
xmlNewChild
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
parent,
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlNewComment
xmlNewComment
(const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlNewDoc
xmlNewDoc
(const
libxml-xmlstring.html#xmlChar
xmlChar
* version)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlNewDocComment
xmlNewDocComment
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlNewDocFragment
xmlNewDocFragment
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlNewDocNode
xmlNewDocNode
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlNewDocNodeEatName
xmlNewDocNodeEatName
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns,
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlNewDocPI
xmlNewDocPI
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
#xmlNewDocProp
xmlNewDocProp
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlNewDocRawNode
xmlNewDocRawNode
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlNewDocText
xmlNewDocText
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlNewDocTextLen
xmlNewDocTextLen
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content,
int len)
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
#xmlNewDtd
xmlNewDtd
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ExternalID,
const
libxml-xmlstring.html#xmlChar
xmlChar
* SystemID)
libxml-tree.html#xmlNsPtr
xmlNsPtr
#xmlNewGlobalNs
xmlNewGlobalNs
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* href,
const
libxml-xmlstring.html#xmlChar
xmlChar
* prefix)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlNewNode
xmlNewNode
(
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlNewNodeEatName
xmlNewNodeEatName
(
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns,
libxml-xmlstring.html#xmlChar
xmlChar
* name)
libxml-tree.html#xmlNsPtr
xmlNsPtr
#xmlNewNs
xmlNewNs
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const
libxml-xmlstring.html#xmlChar
xmlChar
* href,
const
libxml-xmlstring.html#xmlChar
xmlChar
* prefix)
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
#xmlNewNsProp
xmlNewNsProp
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
#xmlNewNsPropEatName
xmlNewNsPropEatName
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns,
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlNewPI
xmlNewPI
(const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
#xmlNewProp
xmlNewProp
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlNewReference
xmlNewReference
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlNewText
xmlNewText
(const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlNewTextChild
xmlNewTextChild
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
parent,
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlNewTextLen
xmlNewTextLen
(const
libxml-xmlstring.html#xmlChar
xmlChar
* content,
int len)
void
#xmlNodeAddContent
xmlNodeAddContent
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
void
#xmlNodeAddContentLen
xmlNodeAddContentLen
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content,
int len)
int
#xmlNodeBufGetContent
xmlNodeBufGetContent
(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buffer,
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur)
int
#xmlNodeDump
xmlNodeDump
(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
int level,
int format)
void
#xmlNodeDumpOutput
xmlNodeDumpOutput
(
libxml-tree.html#xmlOutputBufferPtr
xmlOutputBufferPtr
buf,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
int level,
int format,
const char * encoding)
libxml-xmlstring.html#xmlChar
xmlChar
*
#xmlNodeGetBase
xmlNodeGetBase
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur)
libxml-xmlstring.html#xmlChar
xmlChar
*
#xmlNodeGetContent
xmlNodeGetContent
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur)
libxml-xmlstring.html#xmlChar
xmlChar
*
#xmlNodeGetLang
xmlNodeGetLang
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur)
int
#xmlNodeGetSpacePreserve
xmlNodeGetSpacePreserve
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur)
int
#xmlNodeIsText
xmlNodeIsText
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node)
libxml-xmlstring.html#xmlChar
xmlChar
*
#xmlNodeListGetRawString
xmlNodeListGetRawString
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
list,
int inLine)
libxml-xmlstring.html#xmlChar
xmlChar
*
#xmlNodeListGetString
xmlNodeListGetString
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
list,
int inLine)
void
#xmlNodeSetBase
xmlNodeSetBase
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
const
libxml-xmlstring.html#xmlChar
xmlChar
* uri)
void
#xmlNodeSetContent
xmlNodeSetContent
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
void
#xmlNodeSetContentLen
xmlNodeSetContentLen
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content,
int len)
void
#xmlNodeSetLang
xmlNodeSetLang
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
const
libxml-xmlstring.html#xmlChar
xmlChar
* lang)
void
#xmlNodeSetName
xmlNodeSetName
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
void
#xmlNodeSetSpacePreserve
xmlNodeSetSpacePreserve
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
int val)
int
#xmlReconciliateNs
xmlReconciliateNs
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
tree)
int
#xmlRemoveProp
xmlRemoveProp
(
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
cur)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlReplaceNode
xmlReplaceNode
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
old,
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur)
int
#xmlSaveFile
xmlSaveFile
(const char * filename,
libxml-tree.html#xmlDocPtr
xmlDocPtr
cur)
int
#xmlSaveFileEnc
xmlSaveFileEnc
(const char * filename,
libxml-tree.html#xmlDocPtr
xmlDocPtr
cur,
const char * encoding)
int
#xmlSaveFileTo
xmlSaveFileTo
(
libxml-tree.html#xmlOutputBufferPtr
xmlOutputBufferPtr
buf,
libxml-tree.html#xmlDocPtr
xmlDocPtr
cur,
const char * encoding)
int
#xmlSaveFormatFile
xmlSaveFormatFile
(const char * filename,
libxml-tree.html#xmlDocPtr
xmlDocPtr
cur,
int format)
int
#xmlSaveFormatFileEnc
xmlSaveFormatFileEnc
(const char * filename,
libxml-tree.html#xmlDocPtr
xmlDocPtr
cur,
const char * encoding,
int format)
int
#xmlSaveFormatFileTo
xmlSaveFormatFileTo
(
libxml-tree.html#xmlOutputBufferPtr
xmlOutputBufferPtr
buf,
libxml-tree.html#xmlDocPtr
xmlDocPtr
cur,
const char * encoding,
int format)
libxml-tree.html#xmlNsPtr
xmlNsPtr
#xmlSearchNs
xmlSearchNs
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const
libxml-xmlstring.html#xmlChar
xmlChar
* nameSpace)
libxml-tree.html#xmlNsPtr
xmlNsPtr
#xmlSearchNsByHref
xmlSearchNsByHref
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const
libxml-xmlstring.html#xmlChar
xmlChar
* href)
void
#xmlSetBufferAllocationScheme
xmlSetBufferAllocationScheme
(
libxml-tree.html#xmlBufferAllocationScheme
xmlBufferAllocationScheme
scheme)
void
#xmlSetCompressMode
xmlSetCompressMode
(int mode)
void
#xmlSetDocCompressMode
xmlSetDocCompressMode
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
int mode)
void
#xmlSetListDoc
xmlSetListDoc
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
list,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc)
void
#xmlSetNs
xmlSetNs
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns)
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
#xmlSetNsProp
xmlSetNsProp
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
#xmlSetProp
xmlSetProp
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
void
#xmlSetTreeDoc
xmlSetTreeDoc
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
tree,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc)
libxml-xmlstring.html#xmlChar
xmlChar
*
#xmlSplitQName2
xmlSplitQName2
(const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
libxml-xmlstring.html#xmlChar
xmlChar
** prefix)
const
libxml-xmlstring.html#xmlChar
xmlChar
*
#xmlSplitQName3
xmlSplitQName3
(const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
int * len)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlStringGetNodeList
xmlStringGetNodeList
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlStringLenGetNodeList
xmlStringLenGetNodeList
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
int len)
int
#xmlTextConcat
xmlTextConcat
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content,
int len)
libxml-tree.html#xmlNodePtr
xmlNodePtr
#xmlTextMerge
xmlTextMerge
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
first,
libxml-tree.html#xmlNodePtr
xmlNodePtr
second)
void
#xmlUnlinkNode
xmlUnlinkNode
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur)
int
#xmlUnsetNsProp
xmlUnsetNsProp
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
int
#xmlUnsetProp
xmlUnsetProp
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
int
#xmlValidateNCName
xmlValidateNCName
(const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
int space)
int
#xmlValidateNMToken
xmlValidateNMToken
(const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
int space)
int
#xmlValidateName
xmlValidateName
(const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
int space)
int
#xmlValidateQName
xmlValidateQName
(const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
int space)
Description
Macro: BASE_BUFFER_SIZE
#define BASE_BUFFER_SIZE
default buffer size 4000.
Macro: XML_GET_CONTENT
#define XML_GET_CONTENT
Macro to extract the content pointer of a node.
Macro: XML_GET_LINE
#define XML_GET_LINE
Macro to extract the line number of an element node.
Macro: XML_LOCAL_NAMESPACE
#define XML_LOCAL_NAMESPACE
A namespace declaration node.
Macro: XML_XML_ID
#define XML_XML_ID
This is the name for the special xml:id
libxml-SAX.html#attribute
attribute
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 xmlAttr
Structure xmlAttr
struct _xmlAttr {
void *	_private	: application data
libxml-tree.html#xmlElementType
xmlElementType
type	: XML_ATTRIBUTE_NODE, must be second !
const
libxml-xmlstring.html#xmlChar
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
libxml-tree.html#xmlNs
xmlNs
*	ns	: pointer to the associated namespace
libxml-tree.html#xmlAttributeType
xmlAttributeType
atype	: the
libxml-SAX.html#attribute
attribute
type if validating
void *	psvi	: for type/PSVI informations
}
Structure xmlAttribute
Structure xmlAttribute
struct _xmlAttribute {
void *	_private	: application data
libxml-tree.html#xmlElementType
xmlElementType
type	: XML_ATTRIBUTE_DECL, must be second !
const
libxml-xmlstring.html#xmlChar
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
libxml-tree.html#xmlAttributeType
xmlAttributeType
atype	: The
libxml-SAX.html#attribute
attribute
type
libxml-tree.html#xmlAttributeDefault
xmlAttributeDefault
def	: the default
const
libxml-xmlstring.html#xmlChar
xmlChar
*	defaultValue	: or the default value
libxml-tree.html#xmlEnumerationPtr
xmlEnumerationPtr
tree	: or the enumeration tree if any
const
libxml-xmlstring.html#xmlChar
xmlChar
*	prefix	: the namespace prefix if any
const
libxml-xmlstring.html#xmlChar
xmlChar
*	elem	: Element holding the
libxml-SAX.html#attribute
attribute
}
Enum
xmlAttributeDefault
Enum xmlAttributeDefault {
XML_ATTRIBUTE_NONE
= 1
XML_ATTRIBUTE_REQUIRED
= 2
XML_ATTRIBUTE_IMPLIED
= 3
XML_ATTRIBUTE_FIXED
= 4
}
Enum
xmlAttributeType
Enum 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 xmlBuffer
Structure xmlBuffer
struct _xmlBuffer {
libxml-xmlstring.html#xmlChar
xmlChar
*	content	: The buffer content UTF8
unsigned int	use	: The buffer size used
unsigned int	size	: The buffer size
libxml-tree.html#xmlBufferAllocationScheme
xmlBufferAllocationScheme
alloc	: The realloc method
}
Enum
xmlBufferAllocationScheme
Enum xmlBufferAllocationScheme {
XML_BUFFER_ALLOC_DOUBLEIT
= 1
XML_BUFFER_ALLOC_EXACT
= 2
XML_BUFFER_ALLOC_IMMUTABLE
= 3
}
Structure xmlDOMWrapCtxt
Structure xmlDOMWrapCtxt
struct _xmlDOMWrapCtxt {
void *	_private
}
Structure xmlDoc
Structure xmlDoc
struct _xmlDoc {
void *	_private	: application data
libxml-tree.html#xmlElementType
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 p
int	compression	: level of zlib compression
int	standalone	: standalone document (no external refs)
struct _xmlDtd *	intSubset	: the document internal subset
struct _xmlDtd *	extSubset	: the document external subset
struct _xmlNs *	oldNs	: Global namespace, the old way
const
libxml-xmlstring.html#xmlChar
xmlChar
*	version	: the XML version string
const
libxml-xmlstring.html#xmlChar
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
libxml-xmlstring.html#xmlChar
xmlChar
*	URL	: The URI for that document
int	charset	: encoding of the in-memory content actua
struct _xmlDict *	dict	: dict used to allocate names or NULL
void *	psvi	: for type/PSVI informations
}
Structure xmlDtd
Structure xmlDtd
struct _xmlDtd {
void *	_private	: application data
libxml-tree.html#xmlElementType
xmlElementType
type	: XML_DTD_NODE, must be second !
const
libxml-xmlstring.html#xmlChar
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 p
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
libxml-xmlstring.html#xmlChar
xmlChar
*	ExternalID	: External identifier for PUBLIC DTD
const
libxml-xmlstring.html#xmlChar
xmlChar
*	SystemID	: URI for a SYSTEM or PUBLIC DTD
void *	pentities	: Hash table for param entities if any
}
Structure xmlElement
Structure xmlElement
struct _xmlElement {
void *	_private	: application data
libxml-tree.html#xmlElementType
xmlElementType
type	: XML_ELEMENT_DECL, must be second !
const
libxml-xmlstring.html#xmlChar
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
libxml-tree.html#xmlElementTypeVal
xmlElementTypeVal
etype	: The type
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
content	: the allowed element content
libxml-tree.html#xmlAttributePtr
xmlAttributePtr
attributes	: List of the declared attributes
const
libxml-xmlstring.html#xmlChar
xmlChar
*	prefix	: the namespace prefix if any
libxml-xmlregexp.html#xmlRegexpPtr
xmlRegexpPtr
contModel	: the validating regexp
void *	contModel
}
Structure xmlElementContent
Structure xmlElementContent
struct _xmlElementContent {
libxml-tree.html#xmlElementContentType
xmlElementContentType
type	: PCDATA, ELEMENT, SEQ or OR
libxml-tree.html#xmlElementContentOccur
xmlElementContentOccur
ocur	: ONCE, OPT, MULT or PLUS
const
libxml-xmlstring.html#xmlChar
xmlChar
*	name	: Element name
struct _xmlElementContent *	c1	: first child
struct _xmlElementContent *	c2	: second child
struct _xmlElementContent *	parent	: parent
const
libxml-xmlstring.html#xmlChar
xmlChar
*	prefix	: Namespace prefix
}
Enum
xmlElementContentOccur
Enum xmlElementContentOccur {
XML_ELEMENT_CONTENT_ONCE
= 1
XML_ELEMENT_CONTENT_OPT
= 2
XML_ELEMENT_CONTENT_MULT
= 3
XML_ELEMENT_CONTENT_PLUS
= 4
}
Enum
xmlElementContentType
Enum xmlElementContentType {
XML_ELEMENT_CONTENT_PCDATA
= 1
XML_ELEMENT_CONTENT_ELEMENT
= 2
XML_ELEMENT_CONTENT_SEQ
= 3
XML_ELEMENT_CONTENT_OR
= 4
}
Enum
xmlElementType
Enum 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
}
Enum
xmlElementTypeVal
Enum 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 xmlEntity
Structure xmlEntity
struct _xmlEntity {
void *	_private	: application data
libxml-tree.html#xmlElementType
xmlElementType
type	: XML_ENTITY_DECL, must be second !
const
libxml-xmlstring.html#xmlChar
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
libxml-xmlstring.html#xmlChar
xmlChar
*	orig	: content without ref substitution
libxml-xmlstring.html#xmlChar
xmlChar
*	content	: content or ndata if unparsed
int	length	: the content length
libxml-entities.html#xmlEntityType
xmlEntityType
etype	: The entity type
const
libxml-xmlstring.html#xmlChar
xmlChar
*	ExternalID	: External identifier for PUBLIC
const
libxml-xmlstring.html#xmlChar
xmlChar
*	SystemID	: URI for a SYSTEM or PUBLIC Entity
struct _xmlEntity *	nexte	: unused
const
libxml-xmlstring.html#xmlChar
xmlChar
*	URI	: the full URI as computed
int	owner	: does the entity own the childrens
}
Structure xmlEnumeration
Structure xmlEnumeration
struct _xmlEnumeration {
struct _xmlEnumeration *	next	: next one
const
libxml-xmlstring.html#xmlChar
xmlChar
*	name	: Enumeration name
}
Structure xmlID
Structure xmlID
struct _xmlID {
struct _xmlID *	next	: next ID
const
libxml-xmlstring.html#xmlChar
xmlChar
*	value	: The ID name
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
attr	: The
libxml-SAX.html#attribute
attribute
holding it
const
libxml-xmlstring.html#xmlChar
xmlChar
*	name	: The
libxml-SAX.html#attribute
attribute
if attr is not available
int	lineno	: The line number if attr is not availabl
struct _xmlDoc *	doc	: The document holding the ID
}
Structure xmlNode
Structure xmlNode
struct _xmlNode {
void *	_private	: application data
libxml-tree.html#xmlElementType
xmlElementType
type	: type number, must be second !
const
libxml-xmlstring.html#xmlChar
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 p
libxml-tree.html#xmlNs
xmlNs
*	ns	: pointer to the associated namespace
libxml-xmlstring.html#xmlChar
xmlChar
*	content	: the content
struct _xmlAttr *	properties	: properties list
libxml-tree.html#xmlNs
xmlNs
*	nsDef	: namespace definitions on this node
void *	psvi	: for type/PSVI informations
unsigned short	line	: line number
unsigned short	extra	: extra data for XPath/XSLT
}
Structure xmlNotation
Structure xmlNotation
struct _xmlNotation {
const
libxml-xmlstring.html#xmlChar
xmlChar
*	name	: Notation name
const
libxml-xmlstring.html#xmlChar
xmlChar
*	PublicID	: Public identifier, if any
const
libxml-xmlstring.html#xmlChar
xmlChar
*	SystemID	: System identifier, if any
}
Structure xmlNs
Structure xmlNs
struct _xmlNs {
struct _xmlNs *	next	: next Ns link for this node
libxml-tree.html#xmlNsType
xmlNsType
type	: global or local
const
libxml-xmlstring.html#xmlChar
xmlChar
*	href	: URL for the namespace
const
libxml-xmlstring.html#xmlChar
xmlChar
*	prefix	: prefix for the namespace
void *	_private	: application data
}
Structure xmlOutputBuffer
Structure xmlOutputBuffer
struct _xmlOutputBuffer {
void *	context
libxml-xmlIO.html#xmlOutputWriteCallback
xmlOutputWriteCallback
writecallback
libxml-xmlIO.html#xmlOutputCloseCallback
xmlOutputCloseCallback
closecallback
libxml-encoding.html#xmlCharEncodingHandlerPtr
xmlCharEncodingHandlerPtr
encoder	: I18N conversions to UTF-8
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buffer	: Local buffer encoded in UTF-8 or ISOLat
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
conv	: if encoder != NULL buffer for output
int	written	: total number of byte written
int	error
}
Structure xmlParserCtxt
Structure xmlParserCtxt
struct _xmlParserCtxt {
struct _xmlSAXHandler *	sax	: The SAX handler
void *	userData	: For SAX interface only, used by DOM bui
libxml-tree.html#xmlDocPtr
xmlDocPtr
myDoc	: the document being built
int	wellFormed	: is the document well formed
int	replaceEntities	: shall we replace entities ?
const
libxml-xmlstring.html#xmlChar
xmlChar
*	version	: the XML version string
const
libxml-xmlstring.html#xmlChar
xmlChar
*	encoding	: the declared encoding, if any
int	standalone	: standalone document
int	html	: an HTML(1)/Docbook(2) document Input st
libxml-tree.html#xmlParserInputPtr
xmlParserInputPtr
input	: Current input stream
int	inputNr	: Number of current input streams
int	inputMax	: Max number of input streams
libxml-tree.html#xmlParserInputPtr
xmlParserInputPtr
*	inputTab	: stack of inputs Node analysis stack onl
libxml-tree.html#xmlNodePtr
xmlNodePtr
node	: Current parsed Node
int	nodeNr	: Depth of the parsing stack
int	nodeMax	: Max depth of the parsing stack
libxml-tree.html#xmlNodePtr
xmlNodePtr
*	nodeTab	: array of nodes
int	record_info	: Whether node info should be kept
libxml-parser.html#xmlParserNodeInfoSeq
xmlParserNodeInfoSeq
node_seq	: info about each node parsed
int	errNo	: error code
int	hasExternalSubset	:
libxml-SAX.html#reference
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 ?
libxml-valid.html#xmlValidCtxt
xmlValidCtxt
vctxt	: The validity context
libxml-parser.html#xmlParserInputState
xmlParserInputState
instate	: current type of input
int	token	: next char look-ahead
char *	directory	: the data directory Node name stack
const
libxml-xmlstring.html#xmlChar
xmlChar
*	name	: Current parsed Node
int	nameNr	: Depth of the parsing stack
int	nameMax	: Max depth of the parsing stack
const
libxml-xmlstring.html#xmlChar
xmlChar
* *	nameTab	: array of nodes
long	nbChars	: number of
libxml-xmlstring.html#xmlChar
xmlChar
processed
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
libxml-xmlstring.html#xmlChar
xmlChar
*	intSubName	: name of subset
libxml-xmlstring.html#xmlChar
xmlChar
*	extSubURI	: URI of external subset
libxml-xmlstring.html#xmlChar
xmlChar
*	extSubSystem	: SYSTEM ID of external subset xml:space
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
libxml-tree.html#xmlParserInputPtr
xmlParserInputPtr
entity	: used to check entities boundaries
int	charset	: encoding of the in-memory content actua
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
libxml-dict.html#xmlDictPtr
xmlDictPtr
dict	: dictionnary for the parser
const
libxml-xmlstring.html#xmlChar
xmlChar
* *	atts	: array for the attributes callbacks
int	maxatts	: the size of the array
int	docdict	: * pre-interned strings *
const
libxml-xmlstring.html#xmlChar
xmlChar
*	str_xml
const
libxml-xmlstring.html#xmlChar
xmlChar
*	str_xmlns
const
libxml-xmlstring.html#xmlChar
xmlChar
*	str_xml_ns	: * Everything below is used only by the n
int	sax2	: operating in the new SAX mode
int	nsNr	: the number of inherited namespaces
int	nsMax	: the size of the arrays
const
libxml-xmlstring.html#xmlChar
xmlChar
* *	nsTab	: the array of prefix/namespace name
int *	attallocs	: which
libxml-SAX.html#attribute
attribute
were allocated
void * *	pushTab	: array of data for push
libxml-hash.html#xmlHashTablePtr
xmlHashTablePtr
attsDefault	: defaulted attributes if any
libxml-hash.html#xmlHashTablePtr
xmlHashTablePtr
attsSpecial	: non-CDATA attributes if any
int	nsWellFormed	: is the document XML Nanespace okay
int	options	: * Those fields are needed only for tream
int	dictNames	: Use dictionary names for the tree
int	freeElemsNr	: number of freed element nodes
libxml-tree.html#xmlNodePtr
xmlNodePtr
freeElems	: List of freed element nodes
int	freeAttrsNr	: number of freed attributes nodes
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
freeAttrs	: * the complete error informations for th
libxml-xmlerror.html#xmlError
xmlError
lastError
libxml-parser.html#xmlParserMode
xmlParserMode
parseMode	: the parser mode
}
Structure xmlParserInput
Structure xmlParserInput
struct _xmlParserInput {
libxml-tree.html#xmlParserInputBufferPtr
xmlParserInputBufferPtr
buf	: UTF-8 encoded buffer
const char *	filename	: The file analyzed, if any
const char *	directory	: the directory/base of the file
const
libxml-xmlstring.html#xmlChar
xmlChar
*	base	: Base of the array to parse
const
libxml-xmlstring.html#xmlChar
xmlChar
*	cur	: Current char being parsed
const
libxml-xmlstring.html#xmlChar
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 equa
unsigned long	consumed	: How many xmlChars already consumed
libxml-parser.html#xmlParserInputDeallocate
xmlParserInputDeallocate
free	: function to deallocate the base
const
libxml-xmlstring.html#xmlChar
xmlChar
*	encoding	: the encoding string for entity
const
libxml-xmlstring.html#xmlChar
xmlChar
*	version	: the version string for entity
int	standalone	: Was that entity marked standalone
int	id	: an unique identifier for the entity
}
Structure xmlParserInputBuffer
Structure xmlParserInputBuffer
struct _xmlParserInputBuffer {
void *	context
libxml-xmlIO.html#xmlInputReadCallback
xmlInputReadCallback
readcallback
libxml-xmlIO.html#xmlInputCloseCallback
xmlInputCloseCallback
closecallback
libxml-encoding.html#xmlCharEncodingHandlerPtr
xmlCharEncodingHandlerPtr
encoder	: I18N conversions to UTF-8
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buffer	: Local buffer encoded in UTF-8
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
raw	: if encoder != NULL buffer for raw input
int	compressed	: -1=unknown, 0=not compressed, 1=compres
int	error
unsigned long	rawconsumed	: amount consumed from raw
}
Structure xmlRef
Structure xmlRef
struct _xmlRef {
struct _xmlRef *	next	: next Ref
const
libxml-xmlstring.html#xmlChar
xmlChar
*	value	: The Ref name
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
attr	: The
libxml-SAX.html#attribute
attribute
holding it
const
libxml-xmlstring.html#xmlChar
xmlChar
*	name	: The
libxml-SAX.html#attribute
attribute
if attr is not available
int	lineno	: The line number if attr is not availabl
}
Structure xmlSAXHandler
Structure xmlSAXHandler
struct _xmlSAXHandler {
libxml-parser.html#internalSubsetSAXFunc
internalSubsetSAXFunc
internalSubset
libxml-parser.html#isStandaloneSAXFunc
isStandaloneSAXFunc
isStandalone
libxml-parser.html#hasInternalSubsetSAXFunc
hasInternalSubsetSAXFunc
hasInternalSubset
libxml-parser.html#hasExternalSubsetSAXFunc
hasExternalSubsetSAXFunc
hasExternalSubset
libxml-parser.html#resolveEntitySAXFunc
resolveEntitySAXFunc
resolveEntity
libxml-parser.html#getEntitySAXFunc
getEntitySAXFunc
getEntity
libxml-parser.html#entityDeclSAXFunc
entityDeclSAXFunc
entityDecl
libxml-parser.html#notationDeclSAXFunc
notationDeclSAXFunc
notationDecl
libxml-parser.html#attributeDeclSAXFunc
attributeDeclSAXFunc
attributeDecl
libxml-parser.html#elementDeclSAXFunc
elementDeclSAXFunc
elementDecl
libxml-parser.html#unparsedEntityDeclSAXFunc
unparsedEntityDeclSAXFunc
unparsedEntityDecl
libxml-parser.html#setDocumentLocatorSAXFunc
setDocumentLocatorSAXFunc
setDocumentLocator
libxml-parser.html#startDocumentSAXFunc
startDocumentSAXFunc
startDocument
libxml-parser.html#endDocumentSAXFunc
endDocumentSAXFunc
endDocument
libxml-parser.html#startElementSAXFunc
startElementSAXFunc
startElement
libxml-parser.html#endElementSAXFunc
endElementSAXFunc
endElement
libxml-parser.html#referenceSAXFunc
referenceSAXFunc
reference
libxml-parser.html#charactersSAXFunc
charactersSAXFunc
characters
libxml-parser.html#ignorableWhitespaceSAXFunc
ignorableWhitespaceSAXFunc
ignorableWhitespace
libxml-parser.html#processingInstructionSAXFunc
processingInstructionSAXFunc
processingInstruction
libxml-parser.html#commentSAXFunc
commentSAXFunc
comment
libxml-parser.html#warningSAXFunc
warningSAXFunc
warning
libxml-parser.html#errorSAXFunc
errorSAXFunc
error
libxml-parser.html#fatalErrorSAXFunc
fatalErrorSAXFunc
fatalError	: unused error() get all the errors
libxml-parser.html#getParameterEntitySAXFunc
getParameterEntitySAXFunc
getParameterEntity
libxml-parser.html#cdataBlockSAXFunc
cdataBlockSAXFunc
cdataBlock
libxml-parser.html#externalSubsetSAXFunc
externalSubsetSAXFunc
externalSubset
unsigned int	initialized	: The following fields are extensions ava
void *	_private
libxml-parser.html#startElementNsSAX2Func
startElementNsSAX2Func
startElementNs
libxml-parser.html#endElementNsSAX2Func
endElementNsSAX2Func
endElementNs
libxml-xmlerror.html#xmlStructuredErrorFunc
xmlStructuredErrorFunc
serror
}
Structure xmlSAXLocator
Structure xmlSAXLocator
struct _xmlSAXLocator {
const
libxml-xmlstring.html#xmlChar
xmlChar
*(*getPublicId)	getPublicId
const
libxml-xmlstring.html#xmlChar
xmlChar
*(*getSystemId)	getSystemId
int(*getLineNumber)	getLineNumber
int(*getColumnNumber)	getColumnNumber
}
Function: xmlAddChild
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlAddChild		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
parent,
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur)
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
libxml-SAX.html#attribute
attribute
with equal name, it is first destroyed.
parent
:
the parent node
cur
:
the child node
Returns
:
the child or NULL in case of error.
Function: xmlAddChildList
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlAddChildList		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
parent,
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur)
Add a list of node at the end of the child list of the parent merging adjacent TEXT nodes (@cur may be freed)
parent
:
the parent node
cur
:
the first node in the list
Returns
:
the last child or NULL in case of error.
Function: xmlAddNextSibling
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlAddNextSibling	(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem)
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
libxml-SAX.html#attribute
attribute
with equal name, it is first destroyed.
cur
:
the child node
elem
:
the new node
Returns
:
the new node or NULL in case of error.
Function: xmlAddPrevSibling
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlAddPrevSibling	(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem)
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
libxml-SAX.html#attribute
attribute
with equal name, it is first destroyed.
cur
:
the child node
elem
:
the new node
Returns
:
the new node or NULL in case of error.
Function: xmlAddSibling
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlAddSibling		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem)
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.
cur
:
the child node
elem
:
the new node
Returns
:
the new element or NULL in case of error.
Function: xmlAttrSerializeTxtContent
void	xmlAttrSerializeTxtContent	(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
attr,
const
libxml-xmlstring.html#xmlChar
xmlChar
* string)
Serialize text
libxml-SAX.html#attribute
attribute
values to an xml simple buffer
buf
:
the XML buffer output
doc
:
the document
attr
:
the
libxml-SAX.html#attribute
attribute
node
string
:
the text content
Function: xmlBufferAdd
int	xmlBufferAdd			(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
const
libxml-xmlstring.html#xmlChar
xmlChar
* str,
int len)
Add a string range to an XML buffer. if len == -1, the length of str is recomputed.
buf
:
the buffer to dump
str
:
the #xmlChar string
len
:
the number of #xmlChar to add
Returns
:
0 successful, a positive error code number otherwise and -1 in case of internal or API error.
Function: xmlBufferAddHead
int	xmlBufferAddHead		(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
const
libxml-xmlstring.html#xmlChar
xmlChar
* str,
int len)
Add a string range to the beginning of an XML buffer. if len == -1, the length of @str is recomputed.
buf
:
the buffer
str
:
the #xmlChar string
len
:
the number of #xmlChar to add
Returns
:
0 successful, a positive error code number otherwise and -1 in case of internal or API error.
Function: xmlBufferCCat
int	xmlBufferCCat			(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
const char * str)
Append a zero terminated C string to an XML buffer.
buf
:
the buffer to dump
str
:
the C char string
Returns
:
0 successful, a positive error code number otherwise and -1 in case of internal or API error.
Function: xmlBufferCat
int	xmlBufferCat			(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
const
libxml-xmlstring.html#xmlChar
xmlChar
* str)
Append a zero terminated string to an XML buffer.
buf
:
the buffer to add to
str
:
the #xmlChar string
Returns
:
0 successful, a positive error code number otherwise and -1 in case of internal or API error.
Function: xmlBufferContent
const
libxml-xmlstring.html#xmlChar
xmlChar
*	xmlBufferContent	(const
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf)
Function to extract the content of a buffer
buf
:
the buffer
Returns
:
the internal content
Function: xmlBufferCreate
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
xmlBufferCreate		(void)
routine to create an XML buffer.
Returns
:
the new structure.
Function: xmlBufferCreateSize
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
xmlBufferCreateSize	(size_t size)
routine to create an XML buffer.
size
:
initial size of buffer
Returns
:
the new structure.
Function: xmlBufferCreateStatic
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
xmlBufferCreateStatic	(void * mem,
size_t size)
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.
mem
:
the memory area
size
:
the size in byte
Returns
:
the new structure.
Function: xmlBufferDump
int	xmlBufferDump			(FILE * file,
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf)
Dumps an XML buffer to a FILE *.
file
:
the file output
buf
:
the buffer to dump
Returns
:
the number of #xmlChar written
Function: xmlBufferEmpty
void	xmlBufferEmpty			(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf)
empty a buffer.
buf
:
the buffer
Function: xmlBufferFree
void	xmlBufferFree			(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf)
Frees an XML buffer. It frees both the content and the structure which encapsulate it.
buf
:
the buffer to free
Function: xmlBufferGrow
int	xmlBufferGrow			(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
unsigned int len)
Grow the available space of an XML buffer.
buf
:
the buffer
len
:
the minimum free size to allocate
Returns
:
the new available space or -1 in case of error
Function: xmlBufferLength
int	xmlBufferLength			(const
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf)
Function to get the length of a buffer
buf
:
the buffer
Returns
:
the length of data in the internal content
Function: xmlBufferResize
int	xmlBufferResize			(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
unsigned int size)
Resize a buffer to accommodate minimum size of @size.
buf
:
the buffer to resize
size
:
the desired size
Returns
:
0 in case of problems, 1 otherwise
Function: xmlBufferSetAllocationScheme
void	xmlBufferSetAllocationScheme	(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
libxml-tree.html#xmlBufferAllocationScheme
xmlBufferAllocationScheme
scheme)
Sets the allocation scheme for this buffer
buf
:
the buffer to tune
scheme
:
allocation scheme to use
Function: xmlBufferShrink
int	xmlBufferShrink			(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
unsigned int len)
Remove the beginning of an XML buffer.
buf
:
the buffer to dump
len
:
the number of
libxml-xmlstring.html#xmlChar
xmlChar
to remove
Returns
:
the number of #xmlChar removed, or -1 in case of failure.
Function: xmlBufferWriteCHAR
void	xmlBufferWriteCHAR		(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
const
libxml-xmlstring.html#xmlChar
xmlChar
* string)
routine which manages and grows an output buffer. This one adds xmlChars at the end of the buffer.
buf
:
the XML buffer
string
:
the string to add
Function: xmlBufferWriteChar
void	xmlBufferWriteChar		(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
const char * string)
routine which manage and grows an output buffer. This one add C chars at the end of the array.
buf
:
the XML buffer output
string
:
the string to add
Function: xmlBufferWriteQuotedString
void	xmlBufferWriteQuotedString	(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
const
libxml-xmlstring.html#xmlChar
xmlChar
* string)
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
buf
:
the XML buffer output
string
:
the string to add
Function: xmlBuildQName
libxml-xmlstring.html#xmlChar
xmlChar
*	xmlBuildQName		(const
libxml-xmlstring.html#xmlChar
xmlChar
* ncname,
const
libxml-xmlstring.html#xmlChar
xmlChar
* prefix,
libxml-xmlstring.html#xmlChar
xmlChar
* memory,
int len)
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.
ncname
:
the Name
prefix
:
the prefix
memory
:
preallocated memory
len
:
preallocated memory length
Returns
:
the new string which must be freed by the caller if different from @memory and @ncname or NULL in case of error
Function: xmlCopyDoc
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlCopyDoc		(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
int recursive)
Do a copy of the document info. If recursive, the content tree will be copied too as well as DTD, namespaces and entities.
doc
:
the document
recursive
:
if not zero do a recursive copy.
Returns
:
a new #xmlDocPtr, or NULL in case of error.
Function: xmlCopyDtd
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
xmlCopyDtd		(
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
dtd)
Do a copy of the dtd.
dtd
:
the dtd
Returns
:
a new #xmlDtdPtr, or NULL in case of error.
Function: xmlCopyNamespace
libxml-tree.html#xmlNsPtr
xmlNsPtr
xmlCopyNamespace	(
libxml-tree.html#xmlNsPtr
xmlNsPtr
cur)
Do a copy of the namespace.
cur
:
the namespace
Returns
:
a new #xmlNsPtr, or NULL in case of error.
Function: xmlCopyNamespaceList
libxml-tree.html#xmlNsPtr
xmlNsPtr
xmlCopyNamespaceList	(
libxml-tree.html#xmlNsPtr
xmlNsPtr
cur)
Do a copy of an namespace list.
cur
:
the first namespace
Returns
:
a new #xmlNsPtr, or NULL in case of error.
Function: xmlCopyNode
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlCopyNode		(const
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
int extended)
Do a copy of the node.
node
:
the node
extended
:
if 1 do a recursive copy (properties, namespaces and children when applicable) if 2 copy properties and namespaces (when applicable)
Returns
:
a new #xmlNodePtr, or NULL in case of error.
Function: xmlCopyNodeList
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlCopyNodeList		(const
libxml-tree.html#xmlNodePtr
xmlNodePtr
node)
Do a recursive copy of the node list. Use xmlDocCopyNodeList() if possible to ensure string interning.
node
:
the first node in the list.
Returns
:
a new #xmlNodePtr, or NULL in case of error.
Function: xmlCopyProp
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
xmlCopyProp		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
target,
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
cur)
Do a copy of the attribute.
target
:
the element where the
libxml-SAX.html#attribute
attribute
will be grafted
cur
:
the
libxml-SAX.html#attribute
attribute
Returns
:
a new #xmlAttrPtr, or NULL in case of error.
Function: xmlCopyPropList
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
xmlCopyPropList		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
target,
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
cur)
Do a copy of an
libxml-SAX.html#attribute
attribute
list.
target
:
the element where the attributes will be grafted
cur
:
the first
libxml-SAX.html#attribute
attribute
Returns
:
a new #xmlAttrPtr, or NULL in case of error.
Function: xmlCreateIntSubset
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
xmlCreateIntSubset	(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ExternalID,
const
libxml-xmlstring.html#xmlChar
xmlChar
* SystemID)
Create the internal subset of a document
doc
:
the document pointer
name
:
the DTD name
ExternalID
:
the external (PUBLIC) ID
SystemID
:
the system ID
Returns
:
a pointer to the new DTD structure
Function: xmlDOMWrapAdoptNode
int	xmlDOMWrapAdoptNode		(
libxml-tree.html#xmlDOMWrapCtxtPtr
xmlDOMWrapCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
sourceDoc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
libxml-tree.html#xmlDocPtr
xmlDocPtr
destDoc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
destParent,
int options)
Ensures that ns-references point to @destDoc: either to elements->nsDef entries if @destParent is given, or to @destDoc->oldNs otherwise. 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
libxml-SAX.html#attribute
attribute
values or element content. WARNING: This function is in a experimental state.
ctxt
:
the optional context for custom processing
sourceDoc
:
the optional sourceDoc
node
:
the node to start with
destDoc
:
the destination doc
destParent
:
the optional new parent of @node in @destDoc
options
:
option flags
Returns
:
0 if succeeded, -1 otherwise and on API/internal errors.
Function: xmlDOMWrapFreeCtxt
void	xmlDOMWrapFreeCtxt		(
libxml-tree.html#xmlDOMWrapCtxtPtr
xmlDOMWrapCtxtPtr
ctxt)
Frees the DOM-wrapper context.
ctxt
:
the DOM-wrapper context
Function: xmlDOMWrapNewCtxt
libxml-tree.html#xmlDOMWrapCtxtPtr
xmlDOMWrapCtxtPtr
xmlDOMWrapNewCtxt	(void)
Allocates and initializes a new DOM-wrapper context.
Returns
:
the
libxml-tree.html#xmlDOMWrapCtxtPtr
xmlDOMWrapCtxtPtr
or NULL in case of an internal errror.
Function: xmlDOMWrapReconcileNamespaces
int	xmlDOMWrapReconcileNamespaces	(
libxml-tree.html#xmlDOMWrapCtxtPtr
xmlDOMWrapCtxtPtr
ctxt,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem,
int options)
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
libxml-SAX.html#attribute
attribute
values or element content. WARNING: This function is in a experimental state.
ctxt
:
DOM wrapper context, unused at the moment
elem
:
the element-node
options
:
option flags
Returns
:
0 if succeeded, -1 otherwise and on API/internal errors.
Function: xmlDOMWrapRemoveNode
int	xmlDOMWrapRemoveNode		(
libxml-tree.html#xmlDOMWrapCtxtPtr
xmlDOMWrapCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
int options)
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. WARNING: This function is in a experimental state.
ctxt
:
a DOM wrapper context
doc
:
the doc
node
:
the node to be removed.
options
:
set of options, unused at the moment
Returns
:
0 on success, 1 if the node is not supported, -1 on API and internal errors.
Function: xmlDocCopyNode
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlDocCopyNode		(const
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
int extended)
Do a copy of the node to a given document.
node
:
the node
doc
:
the document
extended
:
if 1 do a recursive copy (properties, namespaces and children when applicable) if 2 copy properties and namespaces (when applicable)
Returns
:
a new #xmlNodePtr, or NULL in case of error.
Function: xmlDocCopyNodeList
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlDocCopyNodeList	(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-tree.html#xmlNodePtr
xmlNodePtr
node)
Do a recursive copy of the node list.
doc
:
the target document
node
:
the first node in the list.
Returns
:
a new #xmlNodePtr, or NULL in case of error.
Function: xmlDocDump
int	xmlDocDump			(FILE * f,
libxml-tree.html#xmlDocPtr
xmlDocPtr
cur)
Dump an XML document to an open FILE.
f
:
the FILE*
cur
:
the document
Returns
:
the number of bytes written or -1 in case of failure.
Function: xmlDocDumpFormatMemory
void	xmlDocDumpFormatMemory		(
libxml-tree.html#xmlDocPtr
xmlDocPtr
cur,
libxml-xmlstring.html#xmlChar
xmlChar
** mem,
int * size,
int format)
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
libxml-globals.html#xmlIndentTreeOutput
xmlIndentTreeOutput
= 1 or xmlKeepBlanksDefault(0) was called
cur
:
the document
mem
:
OUT: the memory pointer
size
:
OUT: the memory length
format
:
should formatting spaces been added
Function: xmlDocDumpFormatMemoryEnc
void	xmlDocDumpFormatMemoryEnc	(
libxml-tree.html#xmlDocPtr
xmlDocPtr
out_doc,
libxml-xmlstring.html#xmlChar
xmlChar
** doc_txt_ptr,
int * doc_txt_len,
const char * txt_encoding,
int format)
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
libxml-globals.html#xmlIndentTreeOutput
xmlIndentTreeOutput
= 1 or xmlKeepBlanksDefault(0) was called
out_doc
:
Document to generate XML text from
doc_txt_ptr
:
Memory pointer for allocated XML text
doc_txt_len
:
Length of the generated XML text
txt_encoding
:
Character encoding to use when generating XML text
format
:
should formatting spaces been added
Function: xmlDocDumpMemory
void	xmlDocDumpMemory		(
libxml-tree.html#xmlDocPtr
xmlDocPtr
cur,
libxml-xmlstring.html#xmlChar
xmlChar
** mem,
int * size)
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.
cur
:
the document
mem
:
OUT: the memory pointer
size
:
OUT: the memory length
Function: xmlDocDumpMemoryEnc
void	xmlDocDumpMemoryEnc		(
libxml-tree.html#xmlDocPtr
xmlDocPtr
out_doc,
libxml-xmlstring.html#xmlChar
xmlChar
** doc_txt_ptr,
int * doc_txt_len,
const char * txt_encoding)
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().
out_doc
:
Document to generate XML text from
doc_txt_ptr
:
Memory pointer for allocated XML text
doc_txt_len
:
Length of the generated XML text
txt_encoding
:
Character encoding to use when generating XML text
Function: xmlDocFormatDump
int	xmlDocFormatDump		(FILE * f,
libxml-tree.html#xmlDocPtr
xmlDocPtr
cur,
int format)
Dump an XML document to an open FILE.
f
:
the FILE*
cur
:
the document
format
:
should formatting spaces been added
Returns
:
the number of bytes written or -1 in case of failure. Note that @format = 1 provide node indenting only if
libxml-globals.html#xmlIndentTreeOutput
xmlIndentTreeOutput
= 1 or xmlKeepBlanksDefault(0) was called
Function: xmlDocGetRootElement
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlDocGetRootElement	(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc)
Get the root element of the document (doc->children is a list containing possibly comments, PIs, etc ...).
doc
:
the document
Returns
:
the #xmlNodePtr for the root or NULL
Function: xmlDocSetRootElement
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlDocSetRootElement	(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
root)
Set the root element of the document (doc->children is a list containing possibly comments, PIs, etc ...).
doc
:
the document
root
:
the new document root element
Returns
:
the old root element if any was found
Function: xmlElemDump
void	xmlElemDump			(FILE * f,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur)
Dump an XML/HTML node, recursive behaviour, children are printed too.
f
:
the FILE * for the output
doc
:
the document
cur
:
the current node
Function: xmlFreeDoc
void	xmlFreeDoc			(
libxml-tree.html#xmlDocPtr
xmlDocPtr
cur)
Free up all the structures used by a document, tree included.
cur
:
pointer to the document
Function: xmlFreeDtd
void	xmlFreeDtd			(
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
cur)
Free a DTD structure.
cur
:
the DTD structure to free up
Function: xmlFreeNode
void	xmlFreeNode			(
libxml-tree.html#xmlNodePtr
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.
cur
:
the node
Function: xmlFreeNodeList
void	xmlFreeNodeList			(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur)
Free a node and all its siblings, this is a recursive behaviour, all the children are freed too.
cur
:
the first node in the list
Function: xmlFreeNs
void	xmlFreeNs			(
libxml-tree.html#xmlNsPtr
xmlNsPtr
cur)
Free up the structures associated to a namespace
cur
:
the namespace pointer
Function: xmlFreeNsList
void	xmlFreeNsList			(
libxml-tree.html#xmlNsPtr
xmlNsPtr
cur)
Free up all the structures associated to the chained namespaces.
cur
:
the first namespace pointer
Function: xmlFreeProp
void	xmlFreeProp			(
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
cur)
Free one attribute, all the content is freed too
cur
:
an
libxml-SAX.html#attribute
attribute
Function: xmlFreePropList
void	xmlFreePropList			(
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
cur)
Free a property and all its siblings, all the children are freed too.
cur
:
the first property in the list
Function: xmlGetBufferAllocationScheme
libxml-tree.html#xmlBufferAllocationScheme
xmlBufferAllocationScheme
xmlGetBufferAllocationScheme	(void)
Types are
libxml-tree.html#XML_BUFFER_ALLOC_EXACT
XML_BUFFER_ALLOC_EXACT
- use exact sizes, keeps memory usage down
libxml-tree.html#XML_BUFFER_ALLOC_DOUBLEIT
XML_BUFFER_ALLOC_DOUBLEIT
- double buffer when extra needed, improves performance
Returns
:
the current allocation scheme
Function: xmlGetCompressMode
int	xmlGetCompressMode		(void)
get the default compression mode used, ZLIB based.
Returns
:
0 (uncompressed) to 9 (max compression)
Function: xmlGetDocCompressMode
int	xmlGetDocCompressMode		(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc)
get the compression ratio for a document, ZLIB based
doc
:
the document
Returns
:
0 (uncompressed) to 9 (max compression)
Function: xmlGetIntSubset
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
xmlGetIntSubset		(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc)
Get the internal subset of a document
doc
:
the document pointer
Returns
:
a pointer to the DTD structure or NULL if not found
Function: xmlGetLastChild
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlGetLastChild		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
parent)
Search the last child of a node.
parent
:
the parent node
Returns
:
the last child or NULL if none.
Function: xmlGetLineNo
long	xmlGetLineNo			(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node)
Get line number of @node. This requires activation of this option before invoking the parser by calling xmlLineNumbersDefault(1)
node
:
valid node
Returns
:
the line number if successful, -1 otherwise
Function: xmlGetNoNsProp
libxml-xmlstring.html#xmlChar
xmlChar
*	xmlGetNoNsProp		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
Search and get the value of an
libxml-SAX.html#attribute
attribute
associated to a node This does the entity substitution. This function looks in DTD
libxml-SAX.html#attribute
attribute
declaration for #FIXED or default declaration values unless DTD use has been turned off. This function is similar to
libxml-tree.html#xmlGetProp
xmlGetProp
except it will accept only an
libxml-SAX.html#attribute
attribute
in no namespace.
node
:
the node
name
:
the
libxml-SAX.html#attribute
attribute
name
Returns
:
the
libxml-SAX.html#attribute
attribute
value or NULL if not found. It's up to the caller to free the memory with xmlFree().
Function: xmlGetNodePath
libxml-xmlstring.html#xmlChar
xmlChar
*	xmlGetNodePath		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node)
Build a structure based Path for the given node
node
:
a node
Returns
:
the new path or NULL in case of error. The caller must free the returned string
Function: xmlGetNsList
libxml-tree.html#xmlNsPtr
xmlNsPtr
*	xmlGetNsList		(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
node)
Search all the namespace applying to a given element.
doc
:
the document
node
:
the current node
Returns
:
an NULL terminated array of all the #xmlNsPtr found that need to be freed by the caller or NULL if no namespace if defined
Function: xmlGetNsProp
libxml-xmlstring.html#xmlChar
xmlChar
*	xmlGetNsProp		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* nameSpace)
Search and get the value of an
libxml-SAX.html#attribute
attribute
associated to a node This
libxml-SAX.html#attribute
attribute
has to be anchored in the namespace specified. This does the entity substitution. This function looks in DTD
libxml-SAX.html#attribute
attribute
declaration for #FIXED or default declaration values unless DTD use has been turned off.
node
:
the node
name
:
the
libxml-SAX.html#attribute
attribute
name
nameSpace
:
the URI of the namespace
Returns
:
the
libxml-SAX.html#attribute
attribute
value or NULL if not found. It's up to the caller to free the memory with xmlFree().
Function: xmlGetProp
libxml-xmlstring.html#xmlChar
xmlChar
*	xmlGetProp		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
Search and get the value of an
libxml-SAX.html#attribute
attribute
associated to a node This does the entity substitution. This function looks in DTD
libxml-SAX.html#attribute
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.
node
:
the node
name
:
the
libxml-SAX.html#attribute
attribute
name
Returns
:
the
libxml-SAX.html#attribute
attribute
value or NULL if not found. It's up to the caller to free the memory with xmlFree().
Function: xmlHasNsProp
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
xmlHasNsProp		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* nameSpace)
Search for an
libxml-SAX.html#attribute
attribute
associated to a node This
libxml-SAX.html#attribute
attribute
has to be anchored in the namespace specified. This does the entity substitution. This function looks in DTD
libxml-SAX.html#attribute
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.
node
:
the node
name
:
the
libxml-SAX.html#attribute
attribute
name
nameSpace
:
the URI of the namespace
Returns
:
the
libxml-SAX.html#attribute
attribute
or the
libxml-SAX.html#attribute
attribute
declaration or NULL if neither was found.
Function: xmlHasProp
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
xmlHasProp		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
Search an
libxml-SAX.html#attribute
attribute
associated to a node This function also looks in DTD
libxml-SAX.html#attribute
attribute
declaration for #FIXED or default declaration values unless DTD use has been turned off.
node
:
the node
name
:
the
libxml-SAX.html#attribute
attribute
name
Returns
:
the
libxml-SAX.html#attribute
attribute
or the
libxml-SAX.html#attribute
attribute
declaration or NULL if neither was found.
Function: xmlIsBlankNode
int	xmlIsBlankNode			(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node)
Checks whether this node is an empty or whitespace only (and possibly ignorable) text-node.
node
:
the node
Returns
:
1 yes, 0 no
Function: xmlIsXHTML
int	xmlIsXHTML			(const
libxml-xmlstring.html#xmlChar
xmlChar
* systemID,
const
libxml-xmlstring.html#xmlChar
xmlChar
* publicID)
Try to find if the document correspond to an XHTML DTD
systemID
:
the system identifier
publicID
:
the public identifier
Returns
:
1 if true, 0 if not and -1 in case of error
Function: xmlNewCDataBlock
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlNewCDataBlock	(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content,
int len)
Creation of a new node containing a CDATA block.
doc
:
the document
content
:
the CDATA block content content
len
:
the length of the block
Returns
:
a pointer to the new node object.
Function: xmlNewCharRef
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlNewCharRef		(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
Creation of a new character
libxml-SAX.html#reference
reference
node.
doc
:
the document
name
:
the char ref string, starting with # or "&# ... ;"
Returns
:
a pointer to the new node object.
Function: xmlNewChild
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlNewChild		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
parent,
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
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.
parent
:
the parent node
ns
:
a namespace if any
name
:
the name of the child
content
:
the XML content of the child if any.
Returns
:
a pointer to the new node object.
Function: xmlNewComment
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlNewComment		(const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
Creation of a new node containing a comment.
content
:
the
libxml-SAX.html#comment
comment
content
Returns
:
a pointer to the new node object.
Function: xmlNewDoc
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlNewDoc		(const
libxml-xmlstring.html#xmlChar
xmlChar
* version)
Creates a new XML document
version
:
libxml-xmlstring.html#xmlChar
xmlChar
string giving the version of XML "1.0"
Returns
:
a new document
Function: xmlNewDocComment
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlNewDocComment	(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
Creation of a new node containing a
libxml-SAX.html#comment
comment
within a document.
doc
:
the document
content
:
the
libxml-SAX.html#comment
comment
content
Returns
:
a pointer to the new node object.
Function: xmlNewDocFragment
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlNewDocFragment	(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc)
Creation of a new Fragment node.
doc
:
the document owning the fragment
Returns
:
a pointer to the new node object.
Function: xmlNewDocNode
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlNewDocNode		(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
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.
doc
:
the document
ns
:
namespace if any
name
:
the node name
content
:
the XML text content if any
Returns
:
a pointer to the new node object.
Function: xmlNewDocNodeEatName
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlNewDocNodeEatName	(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns,
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
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.
doc
:
the document
ns
:
namespace if any
name
:
the node name
content
:
the XML text content if any
Returns
:
a pointer to the new node object.
Function: xmlNewDocPI
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlNewDocPI		(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
Creation of a processing instruction element.
doc
:
the target document
name
:
the processing instruction name
content
:
the PI content
Returns
:
a pointer to the new node object.
Function: xmlNewDocProp
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
xmlNewDocProp		(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
Create a new property carried by a document.
doc
:
the document
name
:
the name of the
libxml-SAX.html#attribute
attribute
value
:
the value of the
libxml-SAX.html#attribute
attribute
Returns
:
a pointer to the
libxml-SAX.html#attribute
attribute
Function: xmlNewDocRawNode
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlNewDocRawNode	(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
Creation of a new node element within a document. @ns and @content are optional (NULL).
doc
:
the document
ns
:
namespace if any
name
:
the node name
content
:
the text content if any
Returns
:
a pointer to the new node object.
Function: xmlNewDocText
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlNewDocText		(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
Creation of a new text node within a document.
doc
:
the document
content
:
the text content
Returns
:
a pointer to the new node object.
Function: xmlNewDocTextLen
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlNewDocTextLen	(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content,
int len)
Creation of a new text node with an extra content length parameter. The text node pertain to a given document.
doc
:
the document
content
:
the text content
len
:
the text len.
Returns
:
a pointer to the new node object.
Function: xmlNewDtd
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
xmlNewDtd		(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ExternalID,
const
libxml-xmlstring.html#xmlChar
xmlChar
* SystemID)
Creation of a new DTD for the external subset. To create an internal subset, use xmlCreateIntSubset().
doc
:
the document pointer
name
:
the DTD name
ExternalID
:
the external ID
SystemID
:
the system ID
Returns
:
a pointer to the new DTD structure
Function: xmlNewGlobalNs
libxml-tree.html#xmlNsPtr
xmlNsPtr
xmlNewGlobalNs		(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* href,
const
libxml-xmlstring.html#xmlChar
xmlChar
* prefix)
Creation of a Namespace, the old way using PI and without scoping DEPRECATED !!! It now create a namespace on the root element of the document if found.
doc
:
the document carrying the namespace
href
:
the URI associated
prefix
:
the prefix for the namespace
Returns
:
NULL this functionality had been removed
Function: xmlNewNode
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlNewNode		(
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
Creation of a new node element. @ns is optional (NULL).
ns
:
namespace if any
name
:
the node name
Returns
:
a pointer to the new node object. Uses xmlStrdup() to make copy of @name.
Function: xmlNewNodeEatName
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlNewNodeEatName	(
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns,
libxml-xmlstring.html#xmlChar
xmlChar
* name)
Creation of a new node element. @ns is optional (NULL).
ns
:
namespace if any
name
:
the node name
Returns
:
a pointer to the new node object, with pointer @name as new node's name. Use xmlNewNode() if a copy of @name string is is needed as new node's name.
Function: xmlNewNs
libxml-tree.html#xmlNsPtr
xmlNsPtr
xmlNewNs		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const
libxml-xmlstring.html#xmlChar
xmlChar
* href,
const
libxml-xmlstring.html#xmlChar
xmlChar
* prefix)
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. We use href==NULL in the case of an element creation where the namespace was not defined.
node
:
the element carrying the namespace
href
:
the URI associated
prefix
:
the prefix for the namespace
Returns
:
a new namespace pointer or NULL
Function: xmlNewNsProp
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
xmlNewNsProp		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
Create a new property tagged with a namespace and carried by a node.
node
:
the holding node
ns
:
the namespace
name
:
the name of the
libxml-SAX.html#attribute
attribute
value
:
the value of the
libxml-SAX.html#attribute
attribute
Returns
:
a pointer to the
libxml-SAX.html#attribute
attribute
Function: xmlNewNsPropEatName
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
xmlNewNsPropEatName	(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns,
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
Create a new property tagged with a namespace and carried by a node.
node
:
the holding node
ns
:
the namespace
name
:
the name of the
libxml-SAX.html#attribute
attribute
value
:
the value of the
libxml-SAX.html#attribute
attribute
Returns
:
a pointer to the
libxml-SAX.html#attribute
attribute
Function: xmlNewPI
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlNewPI		(const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
Creation of a processing instruction element. Use xmlDocNewPI preferably to get string interning
name
:
the processing instruction name
content
:
the PI content
Returns
:
a pointer to the new node object.
Function: xmlNewProp
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
xmlNewProp		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
Create a new property carried by a node.
node
:
the holding node
name
:
the name of the
libxml-SAX.html#attribute
attribute
value
:
the value of the
libxml-SAX.html#attribute
attribute
Returns
:
a pointer to the
libxml-SAX.html#attribute
attribute
Function: xmlNewReference
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlNewReference		(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
Creation of a new
libxml-SAX.html#reference
reference
node.
doc
:
the document
name
:
the
libxml-SAX.html#reference
reference
name, or the
libxml-SAX.html#reference
reference
string with & and ;
Returns
:
a pointer to the new node object.
Function: xmlNewText
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlNewText		(const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
Creation of a new text node.
content
:
the text content
Returns
:
a pointer to the new node object.
Function: xmlNewTextChild
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlNewTextChild		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
parent,
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
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.
parent
:
the parent node
ns
:
a namespace if any
name
:
the name of the child
content
:
the text content of the child if any.
Returns
:
a pointer to the new node object.
Function: xmlNewTextLen
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlNewTextLen		(const
libxml-xmlstring.html#xmlChar
xmlChar
* content,
int len)
Creation of a new text node with an extra parameter for the content's length
content
:
the text content
len
:
the text len.
Returns
:
a pointer to the new node object.
Function: xmlNodeAddContent
void	xmlNodeAddContent		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
Append the extra substring to the node content.
cur
:
the node being modified
content
:
extra content
Function: xmlNodeAddContentLen
void	xmlNodeAddContentLen		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content,
int len)
Append the extra substring to the node content.
cur
:
the node being modified
content
:
extra content
len
:
the size of @content
Function: xmlNodeBufGetContent
int	xmlNodeBufGetContent		(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buffer,
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur)
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
buffer
:
a buffer
cur
:
the node being read
Returns
:
0 in case of success and -1 in case of error.
Function: xmlNodeDump
int	xmlNodeDump			(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
int level,
int format)
Dump an XML node, recursive behaviour,children are printed too. Note that @format = 1 provide node indenting only if
libxml-globals.html#xmlIndentTreeOutput
xmlIndentTreeOutput
= 1 or xmlKeepBlanksDefault(0) was called
buf
:
the XML buffer output
doc
:
the document
cur
:
the current node
level
:
the imbrication level for indenting
format
:
is formatting allowed
Returns
:
the number of bytes written to the buffer or -1 in case of error
Function: xmlNodeDumpOutput
void	xmlNodeDumpOutput		(
libxml-tree.html#xmlOutputBufferPtr
xmlOutputBufferPtr
buf,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
int level,
int format,
const char * encoding)
Dump an XML node, recursive behaviour, children are printed too. Note that @format = 1 provide node indenting only if
libxml-globals.html#xmlIndentTreeOutput
xmlIndentTreeOutput
= 1 or xmlKeepBlanksDefault(0) was called
buf
:
the XML buffer output
doc
:
the document
cur
:
the current node
level
:
the imbrication level for indenting
format
:
is formatting allowed
encoding
:
an optional encoding string
Function: xmlNodeGetBase
libxml-xmlstring.html#xmlChar
xmlChar
*	xmlNodeGetBase		(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur)
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 xmlDocumentGetBase() for this
doc
:
the document the node pertains to
cur
:
the node being checked
Returns
:
a pointer to the base URL, or NULL if not found It's up to the caller to free the memory with xmlFree().
Function: xmlNodeGetContent
libxml-xmlstring.html#xmlChar
xmlChar
*	xmlNodeGetContent	(
libxml-tree.html#xmlNodePtr
xmlNodePtr
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.
cur
:
the node being read
Returns
:
a new #xmlChar * or NULL if no content is available. It's up to the caller to free the memory with xmlFree().
Function: xmlNodeGetLang
libxml-xmlstring.html#xmlChar
xmlChar
*	xmlNodeGetLang		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur)
Searches the language of a node, i.e. the values of the xml:lang
libxml-SAX.html#attribute
attribute
or the one carried by the nearest ancestor.
cur
:
the node being checked
Returns
:
a pointer to the lang value, or NULL if not found It's up to the caller to free the memory with xmlFree().
Function: xmlNodeGetSpacePreserve
int	xmlNodeGetSpacePreserve		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur)
Searches the space preserving behaviour of a node, i.e. the values of the xml:space
libxml-SAX.html#attribute
attribute
or the one carried by the nearest ancestor.
cur
:
the node being checked
Returns
:
-1 if xml:space is not inherited, 0 if "default", 1 if "preserve"
Function: xmlNodeIsText
int	xmlNodeIsText			(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node)
Is this node a Text node ?
node
:
the node
Returns
:
1 yes, 0 no
Function: xmlNodeListGetRawString
libxml-xmlstring.html#xmlChar
xmlChar
*	xmlNodeListGetRawString	(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
list,
int inLine)
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.
doc
:
the document
list
:
a Node list
inLine
:
should we replace entity contents or show their external form
Returns
:
a pointer to the string copy, the caller must free it with xmlFree().
Function: xmlNodeListGetString
libxml-xmlstring.html#xmlChar
xmlChar
*	xmlNodeListGetString	(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
list,
int inLine)
Build the string equivalent to the text contained in the Node list made of TEXTs and ENTITY_REFs
doc
:
the document
list
:
a Node list
inLine
:
should we replace entity contents or show their external form
Returns
:
a pointer to the string copy, the caller must free it with xmlFree().
Function: xmlNodeSetBase
void	xmlNodeSetBase			(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
const
libxml-xmlstring.html#xmlChar
xmlChar
* uri)
Set (or reset) the base URI of a node, i.e. the value of the xml:base attribute.
cur
:
the node being changed
uri
:
the new base URI
Function: xmlNodeSetContent
void	xmlNodeSetContent		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content)
Replace the content of a node.
cur
:
the node being modified
content
:
the new value of the content
Function: xmlNodeSetContentLen
void	xmlNodeSetContentLen		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content,
int len)
Replace the content of a node.
cur
:
the node being modified
content
:
the new value of the content
len
:
the size of @content
Function: xmlNodeSetLang
void	xmlNodeSetLang			(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
const
libxml-xmlstring.html#xmlChar
xmlChar
* lang)
Set the language of a node, i.e. the values of the xml:lang attribute.
cur
:
the node being changed
lang
:
the language description
Function: xmlNodeSetName
void	xmlNodeSetName			(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
Set (or reset) the name of a node.
cur
:
the node being changed
name
:
the new tag name
Function: xmlNodeSetSpacePreserve
void	xmlNodeSetSpacePreserve		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur,
int val)
Set (or reset) the space preserving behaviour of a node, i.e. the value of the xml:space attribute.
cur
:
the node being changed
val
:
the xml:space value ("0": default, 1: "preserve")
Function: xmlReconciliateNs
int	xmlReconciliateNs		(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
tree)
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.
doc
:
the document
tree
:
a node defining the subtree to reconciliate
Returns
:
the number of namespace declarations created or -1 in case of error.
Function: xmlRemoveProp
int	xmlRemoveProp			(
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
cur)
Unlink and free one attribute, all the content is freed too Note this doesn't work for namespace definition attributes
cur
:
an
libxml-SAX.html#attribute
attribute
Returns
:
0 if success and -1 in case of error.
Function: xmlReplaceNode
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlReplaceNode		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
old,
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur)
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.
old
:
the old node
cur
:
the node
Returns
:
the @old node
Function: xmlSaveFile
int	xmlSaveFile			(const char * filename,
libxml-tree.html#xmlDocPtr
xmlDocPtr
cur)
Dump an XML document to a file. Will use compression if compiled in and enabled. If @filename is "-" the stdout file is used.
filename
:
the filename (or URL)
cur
:
the document
Returns
:
the number of bytes written or -1 in case of failure.
Function: xmlSaveFileEnc
int	xmlSaveFileEnc			(const char * filename,
libxml-tree.html#xmlDocPtr
xmlDocPtr
cur,
const char * encoding)
Dump an XML document, converting it to the given encoding
filename
:
the filename (or URL)
cur
:
the document
encoding
:
the name of an encoding (or NULL)
Returns
:
the number of bytes written or -1 in case of failure.
Function: xmlSaveFileTo
int	xmlSaveFileTo			(
libxml-tree.html#xmlOutputBufferPtr
xmlOutputBufferPtr
buf,
libxml-tree.html#xmlDocPtr
xmlDocPtr
cur,
const char * encoding)
Dump an XML document to an I/O buffer. Warning ! This call xmlOutputBufferClose() on buf which is not available after this call.
buf
:
an output I/O buffer
cur
:
the document
encoding
:
the encoding if any assuming the I/O layer handles the trancoding
Returns
:
the number of bytes written or -1 in case of failure.
Function: xmlSaveFormatFile
int	xmlSaveFormatFile		(const char * filename,
libxml-tree.html#xmlDocPtr
xmlDocPtr
cur,
int format)
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
libxml-globals.html#xmlIndentTreeOutput
xmlIndentTreeOutput
= 1 or xmlKeepBlanksDefault(0) was called
filename
:
the filename (or URL)
cur
:
the document
format
:
should formatting spaces been added
Returns
:
the number of bytes written or -1 in case of failure.
Function: xmlSaveFormatFileEnc
int	xmlSaveFormatFileEnc		(const char * filename,
libxml-tree.html#xmlDocPtr
xmlDocPtr
cur,
const char * encoding,
int format)
Dump an XML document to a file or an URL.
filename
:
the filename or URL to output
cur
:
the document being saved
encoding
:
the name of the encoding to use or NULL.
format
:
should formatting spaces be added.
Returns
:
the number of bytes written or -1 in case of error. Note that @format = 1 provide node indenting only if
libxml-globals.html#xmlIndentTreeOutput
xmlIndentTreeOutput
= 1 or xmlKeepBlanksDefault(0) was called
Function: xmlSaveFormatFileTo
int	xmlSaveFormatFileTo		(
libxml-tree.html#xmlOutputBufferPtr
xmlOutputBufferPtr
buf,
libxml-tree.html#xmlDocPtr
xmlDocPtr
cur,
const char * encoding,
int format)
Dump an XML document to an I/O buffer. Warning ! This call xmlOutputBufferClose() on buf which is not available after this call.
buf
:
an output I/O buffer
cur
:
the document
encoding
:
the encoding if any assuming the I/O layer handles the trancoding
format
:
should formatting spaces been added
Returns
:
the number of bytes written or -1 in case of failure.
Function: xmlSearchNs
libxml-tree.html#xmlNsPtr
xmlNsPtr
xmlSearchNs		(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const
libxml-xmlstring.html#xmlChar
xmlChar
* nameSpace)
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.
doc
:
the document
node
:
the current node
nameSpace
:
the namespace prefix
Returns
:
the namespace pointer or NULL.
Function: xmlSearchNsByHref
libxml-tree.html#xmlNsPtr
xmlNsPtr
xmlSearchNsByHref	(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const
libxml-xmlstring.html#xmlChar
xmlChar
* href)
Search a Ns aliasing a given URI. Recurse on the parents until it finds the defined namespace or return NULL otherwise.
doc
:
the document
node
:
the current node
href
:
the namespace value
Returns
:
the namespace pointer or NULL.
Function: xmlSetBufferAllocationScheme
void	xmlSetBufferAllocationScheme	(
libxml-tree.html#xmlBufferAllocationScheme
xmlBufferAllocationScheme
scheme)
Set the buffer allocation method. Types are
libxml-tree.html#XML_BUFFER_ALLOC_EXACT
XML_BUFFER_ALLOC_EXACT
- use exact sizes, keeps memory usage down
libxml-tree.html#XML_BUFFER_ALLOC_DOUBLEIT
XML_BUFFER_ALLOC_DOUBLEIT
- double buffer when extra needed, improves performance
scheme
:
allocation method to use
Function: xmlSetCompressMode
void	xmlSetCompressMode		(int mode)
set the default compression mode used, ZLIB based Correct values: 0 (uncompressed) to 9 (max compression)
mode
:
the compression ratio
Function: xmlSetDocCompressMode
void	xmlSetDocCompressMode		(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
int mode)
set the compression ratio for a document, ZLIB based Correct values: 0 (uncompressed) to 9 (max compression)
doc
:
the document
mode
:
the compression ratio
Function: xmlSetListDoc
void	xmlSetListDoc			(
libxml-tree.html#xmlNodePtr
xmlNodePtr
list,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc)
update all nodes in the list to point to the right document
list
:
the first element
doc
:
the document
Function: xmlSetNs
void	xmlSetNs			(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns)
Associate a namespace to a node, a posteriori.
node
:
a node in the document
ns
:
a namespace pointer
Function: xmlSetNsProp
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
xmlSetNsProp		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
Set (or reset) an
libxml-SAX.html#attribute
attribute
carried by a node. The ns structure must be in scope, this is not checked.
node
:
the node
ns
:
the namespace definition
name
:
the
libxml-SAX.html#attribute
attribute
name
value
:
the
libxml-SAX.html#attribute
attribute
value
Returns
:
the
libxml-SAX.html#attribute
attribute
pointer.
Function: xmlSetProp
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
xmlSetProp		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
Set (or reset) an
libxml-SAX.html#attribute
attribute
carried by a node.
node
:
the node
name
:
the
libxml-SAX.html#attribute
attribute
name
value
:
the
libxml-SAX.html#attribute
attribute
value
Returns
:
the
libxml-SAX.html#attribute
attribute
pointer.
Function: xmlSetTreeDoc
void	xmlSetTreeDoc			(
libxml-tree.html#xmlNodePtr
xmlNodePtr
tree,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc)
update all nodes under the tree to point to the right document
tree
:
the top element
doc
:
the document
Function: xmlSplitQName2
libxml-xmlstring.html#xmlChar
xmlChar
*	xmlSplitQName2		(const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
libxml-xmlstring.html#xmlChar
xmlChar
** prefix)
parse an XML qualified name string [NS 5] QName ::= (Prefix ':')? LocalPart [NS 6] Prefix ::= NCName [NS 7] LocalPart ::= NCName
name
:
the full QName
prefix
:
a
libxml-xmlstring.html#xmlChar
xmlChar
**
Returns
:
NULL if not a QName, otherwise the local part, and prefix is updated to get the Prefix if any.
Function: xmlSplitQName3
const
libxml-xmlstring.html#xmlChar
xmlChar
*	xmlSplitQName3		(const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
int * len)
parse an XML qualified name string,i
name
:
the full QName
len
:
an int *
Returns
:
NULL if it is not a Qualified Name, otherwise, update len with the lenght in byte of the prefix and return a pointer
Function: xmlStringGetNodeList
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlStringGetNodeList	(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
Parse the value string and build the node list associated. Should produce a flat tree with only TEXTs and ENTITY_REFs.
doc
:
the document
value
:
the value of the
libxml-SAX.html#attribute
attribute
Returns
:
a pointer to the first child
Function: xmlStringLenGetNodeList
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlStringLenGetNodeList	(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
int len)
Parse the value string and build the node list associated. Should produce a flat tree with only TEXTs and ENTITY_REFs.
doc
:
the document
value
:
the value of the text
len
:
the length of the string value
Returns
:
a pointer to the first child
Function: xmlTextConcat
int	xmlTextConcat			(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const
libxml-xmlstring.html#xmlChar
xmlChar
* content,
int len)
Concat the given string at the end of the existing node content
node
:
the node
content
:
the content
len
:
@content length
Returns
:
-1 in case of error, 0 otherwise
Function: xmlTextMerge
libxml-tree.html#xmlNodePtr
xmlNodePtr
xmlTextMerge		(
libxml-tree.html#xmlNodePtr
xmlNodePtr
first,
libxml-tree.html#xmlNodePtr
xmlNodePtr
second)
Merge two text nodes into one
first
:
the first text node
second
:
the second text node being merged
Returns
:
the first text node augmented
Function: xmlUnlinkNode
void	xmlUnlinkNode			(
libxml-tree.html#xmlNodePtr
xmlNodePtr
cur)
Unlink a node from it's current context, the node is not freed
cur
:
the node
Function: xmlUnsetNsProp
int	xmlUnsetNsProp			(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
Remove an
libxml-SAX.html#attribute
attribute
carried by a node.
node
:
the node
ns
:
the namespace definition
name
:
the
libxml-SAX.html#attribute
attribute
name
Returns
:
0 if successful, -1 if not found
Function: xmlUnsetProp
int	xmlUnsetProp			(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
Remove an
libxml-SAX.html#attribute
attribute
carried by a node.
node
:
the node
name
:
the
libxml-SAX.html#attribute
attribute
name
Returns
:
0 if successful, -1 if not found
Function: xmlValidateNCName
int	xmlValidateNCName		(const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
int space)
Check that a value conforms to the lexical space of NCName
value
:
the value to check
space
:
allow spaces in front and end of the string
Returns
:
0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.
Function: xmlValidateNMToken
int	xmlValidateNMToken		(const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
int space)
Check that a value conforms to the lexical space of NMToken
value
:
the value to check
space
:
allow spaces in front and end of the string
Returns
:
0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.
Function: xmlValidateName
int	xmlValidateName			(const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
int space)
Check that a value conforms to the lexical space of Name
value
:
the value to check
space
:
allow spaces in front and end of the string
Returns
:
0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.
Function: xmlValidateQName
int	xmlValidateQName		(const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
int space)
Check that a value conforms to the lexical space of QName
value
:
the value to check
space
:
allow spaces in front and end of the string
Returns
:
0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.
../bugs.html
Daniel Veillard
