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 parser 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-nanohttp.html
Prev
libxml-nanohttp.html
nanohttp
index.html
Up
index.html
API documentation
../index.html
Home
../index.html
The XML C parser and toolkit of Gnome
libxml-parserInternals.html
parserInternals
libxml-parserInternals.html
Next
Interfaces, constants and types related to the XML parser
Table of Contents
#define
#XML_COMPLETE_ATTRS
XML_COMPLETE_ATTRS
#define
#XML_DEFAULT_VERSION
XML_DEFAULT_VERSION
#define
#XML_DETECT_IDS
XML_DETECT_IDS
#define
#XML_SAX2_MAGIC
XML_SAX2_MAGIC
#define
#XML_SKIP_IDS
XML_SKIP_IDS
Enum
#xmlParserInputState
xmlParserInputState
Enum
#xmlParserMode
xmlParserMode
Structure
#xmlParserNodeInfo
xmlParserNodeInfo
struct _xmlParserNodeInfo
Typedef
libxml-parser.html#xmlParserNodeInfo
xmlParserNodeInfo
*
xmlParserNodeInfoPtr
Structure
#xmlParserNodeInfoSeq
xmlParserNodeInfoSeq
struct _xmlParserNodeInfoSeq
Typedef
libxml-parser.html#xmlParserNodeInfoSeq
xmlParserNodeInfoSeq
*
xmlParserNodeInfoSeqPtr
Enum
#xmlParserOption
xmlParserOption
Structure
#xmlSAXHandlerV1
xmlSAXHandlerV1
struct _xmlSAXHandlerV1
Typedef
libxml-parser.html#xmlSAXHandlerV1
xmlSAXHandlerV1
*
xmlSAXHandlerV1Ptr
Function type:
#attributeDeclSAXFunc
attributeDeclSAXFunc
void
#attributeDeclSAXFunc
attributeDeclSAXFunc
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* elem,
const
libxml-xmlstring.html#xmlChar
xmlChar
* fullname,
int type,
int def,
const
libxml-xmlstring.html#xmlChar
xmlChar
* defaultValue,
libxml-tree.html#xmlEnumerationPtr
xmlEnumerationPtr
tree)
Function type:
#attributeSAXFunc
attributeSAXFunc
void
#attributeSAXFunc
attributeSAXFunc
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
Function type:
#cdataBlockSAXFunc
cdataBlockSAXFunc
void
#cdataBlockSAXFunc
cdataBlockSAXFunc
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
int len)
Function type:
#charactersSAXFunc
charactersSAXFunc
void
#charactersSAXFunc
charactersSAXFunc
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ch,
int len)
Function type:
#commentSAXFunc
commentSAXFunc
void
#commentSAXFunc
commentSAXFunc
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
Function type:
#elementDeclSAXFunc
elementDeclSAXFunc
void
#elementDeclSAXFunc
elementDeclSAXFunc
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
int type,
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
content)
Function type:
#endDocumentSAXFunc
endDocumentSAXFunc
void
#endDocumentSAXFunc
endDocumentSAXFunc
(void * ctx)
Function type:
#endElementNsSAX2Func
endElementNsSAX2Func
void
#endElementNsSAX2Func
endElementNsSAX2Func
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* localname,
const
libxml-xmlstring.html#xmlChar
xmlChar
* prefix,
const
libxml-xmlstring.html#xmlChar
xmlChar
* URI)
Function type:
#endElementSAXFunc
endElementSAXFunc
void
#endElementSAXFunc
endElementSAXFunc
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
Function type:
#entityDeclSAXFunc
entityDeclSAXFunc
void
#entityDeclSAXFunc
entityDeclSAXFunc
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
int type,
const
libxml-xmlstring.html#xmlChar
xmlChar
* publicId,
const
libxml-xmlstring.html#xmlChar
xmlChar
* systemId,
libxml-xmlstring.html#xmlChar
xmlChar
* content)
Function type:
#errorSAXFunc
errorSAXFunc
void
#errorSAXFunc
errorSAXFunc
(void * ctx,
const char * msg,
... ...)
Function type:
#externalSubsetSAXFunc
externalSubsetSAXFunc
void
#externalSubsetSAXFunc
externalSubsetSAXFunc
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ExternalID,
const
libxml-xmlstring.html#xmlChar
xmlChar
* SystemID)
Function type:
#fatalErrorSAXFunc
fatalErrorSAXFunc
void
#fatalErrorSAXFunc
fatalErrorSAXFunc
(void * ctx,
const char * msg,
... ...)
Function type:
#getEntitySAXFunc
getEntitySAXFunc
libxml-tree.html#xmlEntityPtr
xmlEntityPtr
#getEntitySAXFunc
getEntitySAXFunc
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
Function type:
#getParameterEntitySAXFunc
getParameterEntitySAXFunc
libxml-tree.html#xmlEntityPtr
xmlEntityPtr
#getParameterEntitySAXFunc
getParameterEntitySAXFunc
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
Function type:
#hasExternalSubsetSAXFunc
hasExternalSubsetSAXFunc
int
#hasExternalSubsetSAXFunc
hasExternalSubsetSAXFunc
(void * ctx)
Function type:
#hasInternalSubsetSAXFunc
hasInternalSubsetSAXFunc
int
#hasInternalSubsetSAXFunc
hasInternalSubsetSAXFunc
(void * ctx)
Function type:
#ignorableWhitespaceSAXFunc
ignorableWhitespaceSAXFunc
void
#ignorableWhitespaceSAXFunc
ignorableWhitespaceSAXFunc
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ch,
int len)
Function type:
#internalSubsetSAXFunc
internalSubsetSAXFunc
void
#internalSubsetSAXFunc
internalSubsetSAXFunc
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ExternalID,
const
libxml-xmlstring.html#xmlChar
xmlChar
* SystemID)
Function type:
#isStandaloneSAXFunc
isStandaloneSAXFunc
int
#isStandaloneSAXFunc
isStandaloneSAXFunc
(void * ctx)
Function type:
#notationDeclSAXFunc
notationDeclSAXFunc
void
#notationDeclSAXFunc
notationDeclSAXFunc
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* publicId,
const
libxml-xmlstring.html#xmlChar
xmlChar
* systemId)
Function type:
#processingInstructionSAXFunc
processingInstructionSAXFunc
void
#processingInstructionSAXFunc
processingInstructionSAXFunc
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* target,
const
libxml-xmlstring.html#xmlChar
xmlChar
* data)
Function type:
#referenceSAXFunc
referenceSAXFunc
void
#referenceSAXFunc
referenceSAXFunc
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
Function type:
#resolveEntitySAXFunc
resolveEntitySAXFunc
libxml-tree.html#xmlParserInputPtr
xmlParserInputPtr
#resolveEntitySAXFunc
resolveEntitySAXFunc
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* publicId,
const
libxml-xmlstring.html#xmlChar
xmlChar
* systemId)
Function type:
#setDocumentLocatorSAXFunc
setDocumentLocatorSAXFunc
void
#setDocumentLocatorSAXFunc
setDocumentLocatorSAXFunc
(void * ctx,
libxml-tree.html#xmlSAXLocatorPtr
xmlSAXLocatorPtr
loc)
Function type:
#startDocumentSAXFunc
startDocumentSAXFunc
void
#startDocumentSAXFunc
startDocumentSAXFunc
(void * ctx)
Function type:
#startElementNsSAX2Func
startElementNsSAX2Func
void
#startElementNsSAX2Func
startElementNsSAX2Func
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* localname,
const
libxml-xmlstring.html#xmlChar
xmlChar
* prefix,
const
libxml-xmlstring.html#xmlChar
xmlChar
* URI,
int nb_namespaces,
const
libxml-xmlstring.html#xmlChar
xmlChar
** namespaces,
int nb_attributes,
int nb_defaulted,
const
libxml-xmlstring.html#xmlChar
xmlChar
** attributes)
Function type:
#startElementSAXFunc
startElementSAXFunc
void
#startElementSAXFunc
startElementSAXFunc
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
** atts)
Function type:
#unparsedEntityDeclSAXFunc
unparsedEntityDeclSAXFunc
void
#unparsedEntityDeclSAXFunc
unparsedEntityDeclSAXFunc
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* publicId,
const
libxml-xmlstring.html#xmlChar
xmlChar
* systemId,
const
libxml-xmlstring.html#xmlChar
xmlChar
* notationName)
Function type:
#warningSAXFunc
warningSAXFunc
void
#warningSAXFunc
warningSAXFunc
(void * ctx,
const char * msg,
... ...)
long
#xmlByteConsumed
xmlByteConsumed
(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt)
void
#xmlCleanupParser
xmlCleanupParser
(void)
void
#xmlClearNodeInfoSeq
xmlClearNodeInfoSeq
(
libxml-parser.html#xmlParserNodeInfoSeqPtr
xmlParserNodeInfoSeqPtr
seq)
void
#xmlClearParserCtxt
xmlClearParserCtxt
(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt)
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
#xmlCreateDocParserCtxt
xmlCreateDocParserCtxt
(const
libxml-xmlstring.html#xmlChar
xmlChar
* cur)
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
#xmlCreateIOParserCtxt
xmlCreateIOParserCtxt
(
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
void * user_data,
libxml-xmlIO.html#xmlInputReadCallback
xmlInputReadCallback
ioread,
libxml-xmlIO.html#xmlInputCloseCallback
xmlInputCloseCallback
ioclose,
void * ioctx,
libxml-encoding.html#xmlCharEncoding
xmlCharEncoding
enc)
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
#xmlCreatePushParserCtxt
xmlCreatePushParserCtxt
(
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
void * user_data,
const char * chunk,
int size,
const char * filename)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlCtxtReadDoc
xmlCtxtReadDoc
(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
const
libxml-xmlstring.html#xmlChar
xmlChar
* cur,
const char * URL,
const char * encoding,
int options)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlCtxtReadFd
xmlCtxtReadFd
(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
int fd,
const char * URL,
const char * encoding,
int options)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlCtxtReadFile
xmlCtxtReadFile
(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
const char * filename,
const char * encoding,
int options)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlCtxtReadIO
xmlCtxtReadIO
(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
libxml-xmlIO.html#xmlInputReadCallback
xmlInputReadCallback
ioread,
libxml-xmlIO.html#xmlInputCloseCallback
xmlInputCloseCallback
ioclose,
void * ioctx,
const char * URL,
const char * encoding,
int options)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlCtxtReadMemory
xmlCtxtReadMemory
(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
const char * buffer,
int size,
const char * URL,
const char * encoding,
int options)
void
#xmlCtxtReset
xmlCtxtReset
(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt)
int
#xmlCtxtResetPush
xmlCtxtResetPush
(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
const char * chunk,
int size,
const char * filename,
const char * encoding)
int
#xmlCtxtUseOptions
xmlCtxtUseOptions
(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
int options)
Function type:
#xmlExternalEntityLoader
xmlExternalEntityLoader
libxml-tree.html#xmlParserInputPtr
xmlParserInputPtr
#xmlExternalEntityLoader
xmlExternalEntityLoader
(const char * URL,
const char * ID,
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
context)
void
#xmlFreeParserCtxt
xmlFreeParserCtxt
(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt)
libxml-parser.html#xmlExternalEntityLoader
xmlExternalEntityLoader
#xmlGetExternalEntityLoader
xmlGetExternalEntityLoader
(void)
int
#xmlGetFeature
xmlGetFeature
(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
const char * name,
void * result)
int
#xmlGetFeaturesList
xmlGetFeaturesList
(int * len,
const char ** result)
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
#xmlIOParseDTD
xmlIOParseDTD
(
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
libxml-tree.html#xmlParserInputBufferPtr
xmlParserInputBufferPtr
input,
libxml-encoding.html#xmlCharEncoding
xmlCharEncoding
enc)
void
#xmlInitNodeInfoSeq
xmlInitNodeInfoSeq
(
libxml-parser.html#xmlParserNodeInfoSeqPtr
xmlParserNodeInfoSeqPtr
seq)
void
#xmlInitParser
xmlInitParser
(void)
int
#xmlInitParserCtxt
xmlInitParserCtxt
(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt)
int
#xmlKeepBlanksDefault
xmlKeepBlanksDefault
(int val)
int
#xmlLineNumbersDefault
xmlLineNumbersDefault
(int val)
libxml-tree.html#xmlParserInputPtr
xmlParserInputPtr
#xmlLoadExternalEntity
xmlLoadExternalEntity
(const char * URL,
const char * ID,
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt)
libxml-tree.html#xmlParserInputPtr
xmlParserInputPtr
#xmlNewIOInputStream
xmlNewIOInputStream
(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
libxml-tree.html#xmlParserInputBufferPtr
xmlParserInputBufferPtr
input,
libxml-encoding.html#xmlCharEncoding
xmlCharEncoding
enc)
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
#xmlNewParserCtxt
xmlNewParserCtxt
(void)
int
#xmlParseBalancedChunkMemory
xmlParseBalancedChunkMemory
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
void * user_data,
int depth,
const
libxml-xmlstring.html#xmlChar
xmlChar
* string,
libxml-tree.html#xmlNodePtr
xmlNodePtr
* lst)
int
#xmlParseBalancedChunkMemoryRecover
xmlParseBalancedChunkMemoryRecover
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
void * user_data,
int depth,
const
libxml-xmlstring.html#xmlChar
xmlChar
* string,
libxml-tree.html#xmlNodePtr
xmlNodePtr
* lst,
int recover)
int
#xmlParseChunk
xmlParseChunk
(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
const char * chunk,
int size,
int terminate)
int
#xmlParseCtxtExternalEntity
xmlParseCtxtExternalEntity
(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* URL,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ID,
libxml-tree.html#xmlNodePtr
xmlNodePtr
* lst)
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
#xmlParseDTD
xmlParseDTD
(const
libxml-xmlstring.html#xmlChar
xmlChar
* ExternalID,
const
libxml-xmlstring.html#xmlChar
xmlChar
* SystemID)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlParseDoc
xmlParseDoc
(const
libxml-xmlstring.html#xmlChar
xmlChar
* cur)
int
#xmlParseDocument
xmlParseDocument
(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlParseEntity
xmlParseEntity
(const char * filename)
int
#xmlParseExtParsedEnt
xmlParseExtParsedEnt
(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt)
int
#xmlParseExternalEntity
xmlParseExternalEntity
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
void * user_data,
int depth,
const
libxml-xmlstring.html#xmlChar
xmlChar
* URL,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ID,
libxml-tree.html#xmlNodePtr
xmlNodePtr
* lst)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlParseFile
xmlParseFile
(const char * filename)
libxml-xmlerror.html#xmlParserErrors
xmlParserErrors
#xmlParseInNodeContext
xmlParseInNodeContext
(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const char * data,
int datalen,
int options,
libxml-tree.html#xmlNodePtr
xmlNodePtr
* lst)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlParseMemory
xmlParseMemory
(const char * buffer,
int size)
void
#xmlParserAddNodeInfo
xmlParserAddNodeInfo
(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
const
libxml-parser.html#xmlParserNodeInfoPtr
xmlParserNodeInfoPtr
info)
const
libxml-parser.html#xmlParserNodeInfo
xmlParserNodeInfo
*
#xmlParserFindNodeInfo
xmlParserFindNodeInfo
(const
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctx,
const
libxml-tree.html#xmlNodePtr
xmlNodePtr
node)
unsigned long
#xmlParserFindNodeInfoIndex
xmlParserFindNodeInfoIndex
(const
libxml-parser.html#xmlParserNodeInfoSeqPtr
xmlParserNodeInfoSeqPtr
seq,
const
libxml-tree.html#xmlNodePtr
xmlNodePtr
node)
Function type:
#xmlParserInputDeallocate
xmlParserInputDeallocate
void
#xmlParserInputDeallocate
xmlParserInputDeallocate
(
libxml-xmlstring.html#xmlChar
xmlChar
* str)
int
#xmlParserInputGrow
xmlParserInputGrow
(
libxml-tree.html#xmlParserInputPtr
xmlParserInputPtr
in,
int len)
int
#xmlParserInputRead
xmlParserInputRead
(
libxml-tree.html#xmlParserInputPtr
xmlParserInputPtr
in,
int len)
int
#xmlPedanticParserDefault
xmlPedanticParserDefault
(int val)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlReadDoc
xmlReadDoc
(const
libxml-xmlstring.html#xmlChar
xmlChar
* cur,
const char * URL,
const char * encoding,
int options)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlReadFd
xmlReadFd
(int fd,
const char * URL,
const char * encoding,
int options)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlReadFile
xmlReadFile
(const char * filename,
const char * encoding,
int options)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlReadIO
xmlReadIO
(
libxml-xmlIO.html#xmlInputReadCallback
xmlInputReadCallback
ioread,
libxml-xmlIO.html#xmlInputCloseCallback
xmlInputCloseCallback
ioclose,
void * ioctx,
const char * URL,
const char * encoding,
int options)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlReadMemory
xmlReadMemory
(const char * buffer,
int size,
const char * URL,
const char * encoding,
int options)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlRecoverDoc
xmlRecoverDoc
(
libxml-xmlstring.html#xmlChar
xmlChar
* cur)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlRecoverFile
xmlRecoverFile
(const char * filename)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlRecoverMemory
xmlRecoverMemory
(const char * buffer,
int size)
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
#xmlSAXParseDTD
xmlSAXParseDTD
(
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ExternalID,
const
libxml-xmlstring.html#xmlChar
xmlChar
* SystemID)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlSAXParseDoc
xmlSAXParseDoc
(
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
const
libxml-xmlstring.html#xmlChar
xmlChar
* cur,
int recovery)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlSAXParseEntity
xmlSAXParseEntity
(
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
const char * filename)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlSAXParseFile
xmlSAXParseFile
(
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
const char * filename,
int recovery)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlSAXParseFileWithData
xmlSAXParseFileWithData
(
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
const char * filename,
int recovery,
void * data)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlSAXParseMemory
xmlSAXParseMemory
(
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
const char * buffer,
int size,
int recovery)
libxml-tree.html#xmlDocPtr
xmlDocPtr
#xmlSAXParseMemoryWithData
xmlSAXParseMemoryWithData
(
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
const char * buffer,
int size,
int recovery,
void * data)
int
#xmlSAXUserParseFile
xmlSAXUserParseFile
(
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
void * user_data,
const char * filename)
int
#xmlSAXUserParseMemory
xmlSAXUserParseMemory
(
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
void * user_data,
const char * buffer,
int size)
void
#xmlSetExternalEntityLoader
xmlSetExternalEntityLoader
(
libxml-parser.html#xmlExternalEntityLoader
xmlExternalEntityLoader
f)
int
#xmlSetFeature
xmlSetFeature
(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
const char * name,
void * value)
void
#xmlSetupParserForBuffer
xmlSetupParserForBuffer
(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
const
libxml-xmlstring.html#xmlChar
xmlChar
* buffer,
const char * filename)
void
#xmlStopParser
xmlStopParser
(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt)
int
#xmlSubstituteEntitiesDefault
xmlSubstituteEntitiesDefault
(int val)
Description
Macro: XML_COMPLETE_ATTRS
#define XML_COMPLETE_ATTRS
Bit in the loadsubset context field to tell to do complete the elements attributes lists with the ones defaulted from the DTDs. Use it to initialize xmlLoadExtDtdDefaultValue.
Macro: XML_DEFAULT_VERSION
#define XML_DEFAULT_VERSION
The default version of XML used: 1.0
Macro: XML_DETECT_IDS
#define XML_DETECT_IDS
Bit in the loadsubset context field to tell to do ID/REFs lookups. Use it to initialize xmlLoadExtDtdDefaultValue.
Macro: XML_SAX2_MAGIC
#define XML_SAX2_MAGIC
Special constant found in SAX2 blocks initialized fields
Macro: XML_SKIP_IDS
#define XML_SKIP_IDS
Bit in the loadsubset context field to tell to not do ID/REFs registration. Used to initialize
libxml-globals.html#xmlLoadExtDtdDefaultValue
xmlLoadExtDtdDefaultValue
in some special cases.
Enum
xmlParserInputState
Enum xmlParserInputState {
XML_PARSER_EOF
= -1 : nothing is to be parsed
XML_PARSER_START
= 0 : nothing has been parsed
XML_PARSER_MISC
= 1 : Misc* before int subset
XML_PARSER_PI
= 2 : Within a processing instruction
XML_PARSER_DTD
= 3 : within some DTD content
XML_PARSER_PROLOG
= 4 : Misc* after internal subset
XML_PARSER_COMMENT
= 5 : within a
libxml-SAX.html#comment
comment
XML_PARSER_START_TAG
= 6 : within a start tag
XML_PARSER_CONTENT
= 7 : within the content
XML_PARSER_CDATA_SECTION
= 8 : within a CDATA section
XML_PARSER_END_TAG
= 9 : within a closing tag
XML_PARSER_ENTITY_DECL
= 10 : within an entity declaration
XML_PARSER_ENTITY_VALUE
= 11 : within an entity value in a decl
XML_PARSER_ATTRIBUTE_VALUE
= 12 : within an
libxml-SAX.html#attribute
attribute
value
XML_PARSER_SYSTEM_LITERAL
= 13 : within a SYSTEM value
XML_PARSER_EPILOG
= 14 : the Misc* after the last end tag
XML_PARSER_IGNORE
= 15 : within an IGNORED section
XML_PARSER_PUBLIC_LITERAL
= 16 : within a PUBLIC value
}
Enum
xmlParserMode
Enum xmlParserMode {
XML_PARSE_UNKNOWN
= 0
XML_PARSE_DOM
= 1
XML_PARSE_SAX
= 2
XML_PARSE_PUSH_DOM
= 3
XML_PARSE_PUSH_SAX
= 4
XML_PARSE_READER
= 5
}
Structure xmlParserNodeInfo
Structure xmlParserNodeInfo
struct _xmlParserNodeInfo {
const struct _xmlNode *	node	: Position & line # that text that create
unsigned long	begin_pos
unsigned long	begin_line
unsigned long	end_pos
unsigned long	end_line
}
Structure xmlParserNodeInfoSeq
Structure xmlParserNodeInfoSeq
struct _xmlParserNodeInfoSeq {
unsigned long	maximum
unsigned long	length
libxml-parser.html#xmlParserNodeInfo
xmlParserNodeInfo
*	buffer
}
Enum
xmlParserOption
Enum xmlParserOption {
XML_PARSE_RECOVER
= 1 : recover on errors
XML_PARSE_NOENT
= 2 : substitute entities
XML_PARSE_DTDLOAD
= 4 : load the external subset
XML_PARSE_DTDATTR
= 8 : default DTD attributes
XML_PARSE_DTDVALID
= 16 : validate with the DTD
XML_PARSE_NOERROR
= 32 : suppress error reports
XML_PARSE_NOWARNING
= 64 : suppress warning reports
XML_PARSE_PEDANTIC
= 128 : pedantic error reporting
XML_PARSE_NOBLANKS
= 256 : remove blank nodes
XML_PARSE_SAX1
= 512 : use the SAX1 interface internally
XML_PARSE_XINCLUDE
= 1024 : Implement XInclude substitition
XML_PARSE_NONET
= 2048 : Forbid network access
XML_PARSE_NODICT
= 4096 : Do not reuse the context dictionnary
XML_PARSE_NSCLEAN
= 8192 : remove redundant namespaces declarations
XML_PARSE_NOCDATA
= 16384 : merge CDATA as text nodes
XML_PARSE_NOXINCNODE
= 32768 : do not generate XINCLUDE START/END nodes
}
Structure xmlSAXHandlerV1
Structure xmlSAXHandlerV1
struct _xmlSAXHandlerV1 {
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
}
Function type: attributeDeclSAXFunc
Function type: attributeDeclSAXFunc
void	attributeDeclSAXFunc		(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* elem,
const
libxml-xmlstring.html#xmlChar
xmlChar
* fullname,
int type,
int def,
const
libxml-xmlstring.html#xmlChar
xmlChar
* defaultValue,
libxml-tree.html#xmlEnumerationPtr
xmlEnumerationPtr
tree)
An
libxml-SAX.html#attribute
attribute
definition has been parsed.
ctx
:
the user data (XML parser context)
elem
:
the name of the element
fullname
:
the
libxml-SAX.html#attribute
attribute
name
type
:
the
libxml-SAX.html#attribute
attribute
type
def
:
the type of default value
defaultValue
:
the
libxml-SAX.html#attribute
attribute
default value
tree
:
the tree of enumerated value set
Function type: attributeSAXFunc
Function type: attributeSAXFunc
void	attributeSAXFunc		(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
Handle an
libxml-SAX.html#attribute
attribute
that has been read by the parser. The default handling is to convert the
libxml-SAX.html#attribute
attribute
into an DOM subtree and past it in a new
libxml-tree.html#xmlAttr
xmlAttr
element added to the element.
ctx
:
the user data (XML parser context)
name
:
The
libxml-SAX.html#attribute
attribute
name, including namespace prefix
value
:
The
libxml-SAX.html#attribute
attribute
value
Function type: cdataBlockSAXFunc
Function type: cdataBlockSAXFunc
void	cdataBlockSAXFunc		(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
int len)
Called when a pcdata block has been parsed.
ctx
:
the user data (XML parser context)
value
:
The pcdata content
len
:
the block length
Function type: charactersSAXFunc
Function type: charactersSAXFunc
void	charactersSAXFunc		(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ch,
int len)
Receiving some chars from the parser.
ctx
:
the user data (XML parser context)
ch
:
a
libxml-xmlstring.html#xmlChar
xmlChar
string
len
:
the number of
libxml-xmlstring.html#xmlChar
xmlChar
Function type: commentSAXFunc
Function type: commentSAXFunc
void	commentSAXFunc			(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
A
libxml-SAX.html#comment
comment
has been parsed.
ctx
:
the user data (XML parser context)
value
:
the
libxml-SAX.html#comment
comment
content
Function type: elementDeclSAXFunc
Function type: elementDeclSAXFunc
void	elementDeclSAXFunc		(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
int type,
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
content)
An element definition has been parsed.
ctx
:
the user data (XML parser context)
name
:
the element name
type
:
the element type
content
:
the element value tree
Function type: endDocumentSAXFunc
Function type: endDocumentSAXFunc
void	endDocumentSAXFunc		(void * ctx)
Called when the document end has been detected.
ctx
:
the user data (XML parser context)
Function type: endElementNsSAX2Func
Function type: endElementNsSAX2Func
void	endElementNsSAX2Func		(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* localname,
const
libxml-xmlstring.html#xmlChar
xmlChar
* prefix,
const
libxml-xmlstring.html#xmlChar
xmlChar
* URI)
SAX2 callback when an element end has been detected by the parser. It provides the namespace informations for the element.
ctx
:
the user data (XML parser context)
localname
:
the local name of the element
prefix
:
the element namespace prefix if available
URI
:
the element namespace name if available
Function type: endElementSAXFunc
Function type: endElementSAXFunc
void	endElementSAXFunc		(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
Called when the end of an element has been detected.
ctx
:
the user data (XML parser context)
name
:
The element name
Function type: entityDeclSAXFunc
Function type: entityDeclSAXFunc
void	entityDeclSAXFunc		(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
int type,
const
libxml-xmlstring.html#xmlChar
xmlChar
* publicId,
const
libxml-xmlstring.html#xmlChar
xmlChar
* systemId,
libxml-xmlstring.html#xmlChar
xmlChar
* content)
An entity definition has been parsed.
ctx
:
the user data (XML parser context)
name
:
the entity name
type
:
the entity type
publicId
:
The public ID of the entity
systemId
:
The system ID of the entity
content
:
the entity value (without processing).
Function type: errorSAXFunc
Function type: errorSAXFunc
void	errorSAXFunc			(void * ctx,
const char * msg,
... ...)
Display and format an error messages, callback.
ctx
:
an XML parser context
msg
:
the message to display/transmit
...
:
extra parameters for the message display
Function type: externalSubsetSAXFunc
Function type: externalSubsetSAXFunc
void	externalSubsetSAXFunc		(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ExternalID,
const
libxml-xmlstring.html#xmlChar
xmlChar
* SystemID)
Callback on external subset declaration.
ctx
:
the user data (XML parser context)
name
:
the root element name
ExternalID
:
the external ID
SystemID
:
the SYSTEM ID (e.g. filename or URL)
Function type: fatalErrorSAXFunc
Function type: fatalErrorSAXFunc
void	fatalErrorSAXFunc		(void * ctx,
const char * msg,
... ...)
Display and format fatal error messages, callback. Note: so far fatalError() SAX callbacks are not used, error() get all the callbacks for errors.
ctx
:
an XML parser context
msg
:
the message to display/transmit
...
:
extra parameters for the message display
Function type: getEntitySAXFunc
Function type: getEntitySAXFunc
libxml-tree.html#xmlEntityPtr
xmlEntityPtr
getEntitySAXFunc	(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
Get an entity by name.
ctx
:
the user data (XML parser context)
name
:
The entity name
Returns
:
the
libxml-tree.html#xmlEntityPtr
xmlEntityPtr
if found.
Function type: getParameterEntitySAXFunc
Function type: getParameterEntitySAXFunc
libxml-tree.html#xmlEntityPtr
xmlEntityPtr
getParameterEntitySAXFunc	(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
Get a parameter entity by name.
ctx
:
the user data (XML parser context)
name
:
The entity name
Returns
:
the
libxml-tree.html#xmlEntityPtr
xmlEntityPtr
if found.
Function type: hasExternalSubsetSAXFunc
Function type: hasExternalSubsetSAXFunc
int	hasExternalSubsetSAXFunc	(void * ctx)
Does this document has an external subset?
ctx
:
the user data (XML parser context)
Returns
:
1 if true
Function type: hasInternalSubsetSAXFunc
Function type: hasInternalSubsetSAXFunc
int	hasInternalSubsetSAXFunc	(void * ctx)
Does this document has an internal subset.
ctx
:
the user data (XML parser context)
Returns
:
1 if true
Function type: ignorableWhitespaceSAXFunc
Function type: ignorableWhitespaceSAXFunc
void	ignorableWhitespaceSAXFunc	(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ch,
int len)
Receiving some ignorable whitespaces from the parser. UNUSED: by default the DOM building will use characters.
ctx
:
the user data (XML parser context)
ch
:
a
libxml-xmlstring.html#xmlChar
xmlChar
string
len
:
the number of
libxml-xmlstring.html#xmlChar
xmlChar
Function type: internalSubsetSAXFunc
Function type: internalSubsetSAXFunc
void	internalSubsetSAXFunc		(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ExternalID,
const
libxml-xmlstring.html#xmlChar
xmlChar
* SystemID)
Callback on internal subset declaration.
ctx
:
the user data (XML parser context)
name
:
the root element name
ExternalID
:
the external ID
SystemID
:
the SYSTEM ID (e.g. filename or URL)
Function type: isStandaloneSAXFunc
Function type: isStandaloneSAXFunc
int	isStandaloneSAXFunc		(void * ctx)
Is this document tagged standalone?
ctx
:
the user data (XML parser context)
Returns
:
1 if true
Function type: notationDeclSAXFunc
Function type: notationDeclSAXFunc
void	notationDeclSAXFunc		(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* publicId,
const
libxml-xmlstring.html#xmlChar
xmlChar
* systemId)
What to do when a notation declaration has been parsed.
ctx
:
the user data (XML parser context)
name
:
The name of the notation
publicId
:
The public ID of the entity
systemId
:
The system ID of the entity
Function type: processingInstructionSAXFunc
Function type: processingInstructionSAXFunc
void	processingInstructionSAXFunc	(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* target,
const
libxml-xmlstring.html#xmlChar
xmlChar
* data)
A processing instruction has been parsed.
ctx
:
the user data (XML parser context)
target
:
the target name
data
:
the PI data's
Function type: referenceSAXFunc
Function type: referenceSAXFunc
void	referenceSAXFunc		(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
Called when an entity
libxml-SAX.html#reference
reference
is detected.
ctx
:
the user data (XML parser context)
name
:
The entity name
Function type: resolveEntitySAXFunc
Function type: resolveEntitySAXFunc
libxml-tree.html#xmlParserInputPtr
xmlParserInputPtr
resolveEntitySAXFunc	(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* publicId,
const
libxml-xmlstring.html#xmlChar
xmlChar
* systemId)
Callback: The entity loader, to control the loading of external entities, the application can either: - override this resolveEntity() callback in the SAX block - or better use the xmlSetExternalEntityLoader() function to set up it's own entity resolution routine
ctx
:
the user data (XML parser context)
publicId
:
The public ID of the entity
systemId
:
The system ID of the entity
Returns
:
the
libxml-tree.html#xmlParserInputPtr
xmlParserInputPtr
if inlined or NULL for DOM behaviour.
Function type: setDocumentLocatorSAXFunc
Function type: setDocumentLocatorSAXFunc
void	setDocumentLocatorSAXFunc	(void * ctx,
libxml-tree.html#xmlSAXLocatorPtr
xmlSAXLocatorPtr
loc)
Receive the document locator at startup, actually xmlDefaultSAXLocator. Everything is available on the context, so this is useless in our case.
ctx
:
the user data (XML parser context)
loc
:
A SAX Locator
Function type: startDocumentSAXFunc
Function type: startDocumentSAXFunc
void	startDocumentSAXFunc		(void * ctx)
Called when the document start being processed.
ctx
:
the user data (XML parser context)
Function type: startElementNsSAX2Func
Function type: startElementNsSAX2Func
void	startElementNsSAX2Func		(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* localname,
const
libxml-xmlstring.html#xmlChar
xmlChar
* prefix,
const
libxml-xmlstring.html#xmlChar
xmlChar
* URI,
int nb_namespaces,
const
libxml-xmlstring.html#xmlChar
xmlChar
** namespaces,
int nb_attributes,
int nb_defaulted,
const
libxml-xmlstring.html#xmlChar
xmlChar
** attributes)
SAX2 callback when an element start has been detected by the parser. It provides the namespace informations for the element, as well as the new namespace declarations on the element.
ctx
:
the user data (XML parser context)
localname
:
the local name of the element
prefix
:
the element namespace prefix if available
URI
:
the element namespace name if available
nb_namespaces
:
number of namespace definitions on that node
namespaces
:
pointer to the array of prefix/URI pairs namespace definitions
nb_attributes
:
the number of attributes on that node
nb_defaulted
:
the number of defaulted attributes. The defaulted ones are at the end of the array
attributes
:
pointer to the array of (localname/prefix/URI/value/end)
libxml-SAX.html#attribute
attribute
values.
Function type: startElementSAXFunc
Function type: startElementSAXFunc
void	startElementSAXFunc		(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
** atts)
Called when an opening tag has been processed.
ctx
:
the user data (XML parser context)
name
:
The element name, including namespace prefix
atts
:
An array of name/value attributes pairs, NULL terminated
Function type: unparsedEntityDeclSAXFunc
Function type: unparsedEntityDeclSAXFunc
void	unparsedEntityDeclSAXFunc	(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* publicId,
const
libxml-xmlstring.html#xmlChar
xmlChar
* systemId,
const
libxml-xmlstring.html#xmlChar
xmlChar
* notationName)
What to do when an unparsed entity declaration is parsed.
ctx
:
the user data (XML parser context)
name
:
The name of the entity
publicId
:
The public ID of the entity
systemId
:
The system ID of the entity
notationName
:
the name of the notation
Function type: warningSAXFunc
Function type: warningSAXFunc
void	warningSAXFunc			(void * ctx,
const char * msg,
... ...)
Display and format a warning messages, callback.
ctx
:
an XML parser context
msg
:
the message to display/transmit
...
:
extra parameters for the message display
Function: xmlByteConsumed
long	xmlByteConsumed			(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt)
This function provides the current index of the parser relative to the start of the current entity. This function is computed in bytes from the beginning starting at zero and finishing at the size in byte of the file if parsing a file. The function is of constant cost if the input is UTF-8 but can be costly if run on non-UTF-8 input.
ctxt
:
an XML parser context
Returns
:
the index in bytes from the beginning of the entity or -1 in case the index could not be computed.
Function: xmlCleanupParser
void	xmlCleanupParser		(void)
Cleanup function for the XML library. It tries to reclaim all parsing related global memory allocated for the library processing. It doesn't deallocate any document related memory. Calling this function should not prevent reusing the library but one should call xmlCleanupParser() only when the process has finished using the library or XML document built with it.
Function: xmlClearNodeInfoSeq
void	xmlClearNodeInfoSeq		(
libxml-parser.html#xmlParserNodeInfoSeqPtr
xmlParserNodeInfoSeqPtr
seq)
-- Clear (release memory and reinitialize) node info sequence
seq
:
a node info sequence pointer
Function: xmlClearParserCtxt
void	xmlClearParserCtxt		(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt)
Clear (release owned resources) and reinitialize a parser context
ctxt
:
an XML parser context
Function: xmlCreateDocParserCtxt
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
xmlCreateDocParserCtxt	(const
libxml-xmlstring.html#xmlChar
xmlChar
* cur)
Creates a parser context for an XML in-memory document.
cur
:
a pointer to an array of
libxml-xmlstring.html#xmlChar
xmlChar
Returns
:
the new parser context or NULL
Function: xmlCreateIOParserCtxt
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
xmlCreateIOParserCtxt	(
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
void * user_data,
libxml-xmlIO.html#xmlInputReadCallback
xmlInputReadCallback
ioread,
libxml-xmlIO.html#xmlInputCloseCallback
xmlInputCloseCallback
ioclose,
void * ioctx,
libxml-encoding.html#xmlCharEncoding
xmlCharEncoding
enc)
Create a parser context for using the XML parser with an existing I/O stream
sax
:
a SAX handler
user_data
:
The user data returned on SAX callbacks
ioread
:
an I/O read function
ioclose
:
an I/O close function
ioctx
:
an I/O handler
enc
:
the charset encoding if known
Returns
:
the new parser context or NULL
Function: xmlCreatePushParserCtxt
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
xmlCreatePushParserCtxt	(
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
void * user_data,
const char * chunk,
int size,
const char * filename)
Create a parser context for using the XML parser in push mode. If @buffer and @size are non-NULL, the data is used to detect the encoding. The remaining
libxml-SAX.html#characters
characters
will be parsed so they don't need to be fed in again through xmlParseChunk. To allow content encoding detection, @size should be >= 4 The value of @filename is used for fetching external entities and error/warning reports.
sax
:
a SAX handler
user_data
:
The user data returned on SAX callbacks
chunk
:
a pointer to an array of chars
size
:
number of chars in the array
filename
:
an optional file name or URI
Returns
:
the new parser context or NULL
Function: xmlCtxtReadDoc
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlCtxtReadDoc		(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
const
libxml-xmlstring.html#xmlChar
xmlChar
* cur,
const char * URL,
const char * encoding,
int options)
parse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context
ctxt
:
an XML parser context
cur
:
a pointer to a zero terminated string
URL
:
the base URL to use for the document
encoding
:
the document encoding, or NULL
options
:
a combination of
libxml-parser.html#xmlParserOption
xmlParserOption
Returns
:
the resulting document tree
Function: xmlCtxtReadFd
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlCtxtReadFd		(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
int fd,
const char * URL,
const char * encoding,
int options)
parse an XML from a file descriptor and build a tree. This reuses the existing @ctxt parser context NOTE that the file descriptor will not be closed when the reader is closed or reset.
ctxt
:
an XML parser context
fd
:
an open file descriptor
URL
:
the base URL to use for the document
encoding
:
the document encoding, or NULL
options
:
a combination of
libxml-parser.html#xmlParserOption
xmlParserOption
Returns
:
the resulting document tree
Function: xmlCtxtReadFile
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlCtxtReadFile		(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
const char * filename,
const char * encoding,
int options)
parse an XML file from the filesystem or the network. This reuses the existing @ctxt parser context
ctxt
:
an XML parser context
filename
:
a file or URL
encoding
:
the document encoding, or NULL
options
:
a combination of
libxml-parser.html#xmlParserOption
xmlParserOption
Returns
:
the resulting document tree
Function: xmlCtxtReadIO
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlCtxtReadIO		(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
libxml-xmlIO.html#xmlInputReadCallback
xmlInputReadCallback
ioread,
libxml-xmlIO.html#xmlInputCloseCallback
xmlInputCloseCallback
ioclose,
void * ioctx,
const char * URL,
const char * encoding,
int options)
parse an XML document from I/O functions and source and build a tree. This reuses the existing @ctxt parser context
ctxt
:
an XML parser context
ioread
:
an I/O read function
ioclose
:
an I/O close function
ioctx
:
an I/O handler
URL
:
the base URL to use for the document
encoding
:
the document encoding, or NULL
options
:
a combination of
libxml-parser.html#xmlParserOption
xmlParserOption
Returns
:
the resulting document tree
Function: xmlCtxtReadMemory
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlCtxtReadMemory	(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
const char * buffer,
int size,
const char * URL,
const char * encoding,
int options)
parse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context
ctxt
:
an XML parser context
buffer
:
a pointer to a char array
size
:
the size of the array
URL
:
the base URL to use for the document
encoding
:
the document encoding, or NULL
options
:
a combination of
libxml-parser.html#xmlParserOption
xmlParserOption
Returns
:
the resulting document tree
Function: xmlCtxtReset
void	xmlCtxtReset			(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt)
Reset a parser context
ctxt
:
an XML parser context
Function: xmlCtxtResetPush
int	xmlCtxtResetPush		(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
const char * chunk,
int size,
const char * filename,
const char * encoding)
Reset a push parser context
ctxt
:
an XML parser context
chunk
:
a pointer to an array of chars
size
:
number of chars in the array
filename
:
an optional file name or URI
encoding
:
the document encoding, or NULL
Returns
:
0 in case of success and 1 in case of error
Function: xmlCtxtUseOptions
int	xmlCtxtUseOptions		(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
int options)
Applies the options to the parser context
ctxt
:
an XML parser context
options
:
a combination of
libxml-parser.html#xmlParserOption
xmlParserOption
Returns
:
0 in case of success, the set of unknown or unimplemented options in case of error.
Function type: xmlExternalEntityLoader
Function type: xmlExternalEntityLoader
libxml-tree.html#xmlParserInputPtr
xmlParserInputPtr
xmlExternalEntityLoader	(const char * URL,
const char * ID,
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
context)
External entity loaders types.
URL
:
The System ID of the resource requested
ID
:
The Public ID of the resource requested
context
:
the XML parser context
Returns
:
the entity input parser.
Function: xmlFreeParserCtxt
void	xmlFreeParserCtxt		(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt)
Free all the memory used by a parser context. However the parsed document in ctxt->myDoc is not freed.
ctxt
:
an XML parser context
Function: xmlGetExternalEntityLoader
libxml-parser.html#xmlExternalEntityLoader
xmlExternalEntityLoader
xmlGetExternalEntityLoader	(void)
Get the default external entity resolver function for the application
Returns
:
the
libxml-parser.html#xmlExternalEntityLoader
xmlExternalEntityLoader
function pointer
Function: xmlGetFeature
int	xmlGetFeature			(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
const char * name,
void * result)
Read the current value of one feature of this parser instance
ctxt
:
an XML/HTML parser context
name
:
the feature name
result
:
location to store the result
Returns
:
-1 in case or error, 0 otherwise
Function: xmlGetFeaturesList
int	xmlGetFeaturesList		(int * len,
const char ** result)
Copy at most *@len feature names into the @result array
len
:
the length of the features name array (input/output)
result
:
an array of string to be filled with the features name.
Returns
:
-1 in case or error, or the total number of features, len is updated with the number of strings copied, strings must not be deallocated
Function: xmlIOParseDTD
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
xmlIOParseDTD		(
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
libxml-tree.html#xmlParserInputBufferPtr
xmlParserInputBufferPtr
input,
libxml-encoding.html#xmlCharEncoding
xmlCharEncoding
enc)
Load and parse a DTD
sax
:
the SAX handler block or NULL
input
:
an Input Buffer
enc
:
the charset encoding if known
Returns
:
the resulting
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
or NULL in case of error. @input will be freed at parsing end.
Function: xmlInitNodeInfoSeq
void	xmlInitNodeInfoSeq		(
libxml-parser.html#xmlParserNodeInfoSeqPtr
xmlParserNodeInfoSeqPtr
seq)
-- Initialize (set to initial state) node info sequence
seq
:
a node info sequence pointer
Function: xmlInitParser
void	xmlInitParser			(void)
Initialization function for the XML parser. This is not reentrant. Call once before processing in case of use in multithreaded programs.
Function: xmlInitParserCtxt
int	xmlInitParserCtxt		(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt)
Initialize a parser context
ctxt
:
an XML parser context
Returns
:
0 in case of success and -1 in case of error
Function: xmlKeepBlanksDefault
int	xmlKeepBlanksDefault		(int val)
Set and return the previous value for default blanks text nodes support. The 1.x version of the parser used an heuristic to try to detect ignorable white spaces. As a result the SAX callback was generating xmlSAX2IgnorableWhitespace() callbacks instead of characters() one, and when using the DOM output text nodes containing those blanks were not generated. The 2.x and later version will switch to the XML standard way and ignorableWhitespace() are only generated when running the parser in validating mode and when the current element doesn't allow CDATA or mixed content. This function is provided as a way to force the standard behavior on 1.X libs and to switch back to the old mode for compatibility when running 1.X client code on 2.X . Upgrade of 1.X code should be done by using xmlIsBlankNode() commodity function to detect the "empty" nodes generated. This value also affect autogeneration of indentation when saving code if blanks sections are kept, indentation is not generated.
val
:
int 0 or 1
Returns
:
the last value for 0 for no substitution, 1 for substitution.
Function: xmlLineNumbersDefault
int	xmlLineNumbersDefault		(int val)
Set and return the previous value for enabling line numbers in elements contents. This may break on old application and is turned off by default.
val
:
int 0 or 1
Returns
:
the last value for 0 for no substitution, 1 for substitution.
Function: xmlLoadExternalEntity
libxml-tree.html#xmlParserInputPtr
xmlParserInputPtr
xmlLoadExternalEntity	(const char * URL,
const char * ID,
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt)
Load an external entity, note that the use of this function for unparsed entities may generate problems TODO: a more generic External entity API must be designed
URL
:
the URL for the entity to load
ID
:
the Public ID for the entity to load
ctxt
:
the context in which the entity is called or NULL
Returns
:
the
libxml-tree.html#xmlParserInputPtr
xmlParserInputPtr
or NULL
Function: xmlNewIOInputStream
libxml-tree.html#xmlParserInputPtr
xmlParserInputPtr
xmlNewIOInputStream	(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
libxml-tree.html#xmlParserInputBufferPtr
xmlParserInputBufferPtr
input,
libxml-encoding.html#xmlCharEncoding
xmlCharEncoding
enc)
Create a new input stream structure encapsulating the @input into a stream suitable for the parser.
ctxt
:
an XML parser context
input
:
an I/O Input
enc
:
the charset encoding if known
Returns
:
the new input stream or NULL
Function: xmlNewParserCtxt
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
xmlNewParserCtxt	(void)
Allocate and initialize a new parser context.
Returns
:
the
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
or NULL
Function: xmlParseBalancedChunkMemory
int	xmlParseBalancedChunkMemory	(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
void * user_data,
int depth,
const
libxml-xmlstring.html#xmlChar
xmlChar
* string,
libxml-tree.html#xmlNodePtr
xmlNodePtr
* lst)
Parse a well-balanced chunk of an XML document called by the parser The allowed sequence for the Well Balanced Chunk is the one defined by the content production in the XML grammar: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*
doc
:
the document the chunk pertains to
sax
:
the SAX handler bloc (possibly NULL)
user_data
:
The user data returned on SAX callbacks (possibly NULL)
depth
:
Used for loop detection, use 0
string
:
the input string in UTF8 or ISO-Latin (zero terminated)
lst
:
the return value for the set of parsed nodes
Returns
:
0 if the chunk is well balanced, -1 in case of args problem and the parser error code otherwise
Function: xmlParseBalancedChunkMemoryRecover
int	xmlParseBalancedChunkMemoryRecover	(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
void * user_data,
int depth,
const
libxml-xmlstring.html#xmlChar
xmlChar
* string,
libxml-tree.html#xmlNodePtr
xmlNodePtr
* lst,
int recover)
Parse a well-balanced chunk of an XML document called by the parser The allowed sequence for the Well Balanced Chunk is the one defined by the content production in the XML grammar: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*
doc
:
the document the chunk pertains to
sax
:
the SAX handler bloc (possibly NULL)
user_data
:
The user data returned on SAX callbacks (possibly NULL)
depth
:
Used for loop detection, use 0
string
:
the input string in UTF8 or ISO-Latin (zero terminated)
lst
:
the return value for the set of parsed nodes
recover
:
return nodes even if the data is broken (use 0)
Returns
:
0 if the chunk is well balanced, -1 in case of args problem and the parser error code otherwise In case recover is set to 1, the nodelist will not be empty even if the parsed chunk is not well balanced.
Function: xmlParseChunk
int	xmlParseChunk			(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
const char * chunk,
int size,
int terminate)
Parse a Chunk of memory
ctxt
:
an XML parser context
chunk
:
an char array
size
:
the size in byte of the chunk
terminate
:
last chunk indicator
Returns
:
zero if no error, the
libxml-xmlerror.html#xmlParserErrors
xmlParserErrors
otherwise.
Function: xmlParseCtxtExternalEntity
int	xmlParseCtxtExternalEntity	(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* URL,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ID,
libxml-tree.html#xmlNodePtr
xmlNodePtr
* lst)
Parse an external general entity within an existing parsing context An external general parsed entity is well-formed if it matches the production labeled extParsedEnt. [78] extParsedEnt ::= TextDecl? content
ctx
:
the existing parsing context
URL
:
the URL for the entity to load
ID
:
the System ID for the entity to load
lst
:
the return value for the set of parsed nodes
Returns
:
0 if the entity is well formed, -1 in case of args problem and the parser error code otherwise
Function: xmlParseDTD
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
xmlParseDTD		(const
libxml-xmlstring.html#xmlChar
xmlChar
* ExternalID,
const
libxml-xmlstring.html#xmlChar
xmlChar
* SystemID)
Load and parse an external subset.
ExternalID
:
a NAME* containing the External ID of the DTD
SystemID
:
a NAME* containing the URL to the DTD
Returns
:
the resulting
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
or NULL in case of error.
Function: xmlParseDoc
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlParseDoc		(const
libxml-xmlstring.html#xmlChar
xmlChar
* cur)
parse an XML in-memory document and build a tree.
cur
:
a pointer to an array of
libxml-xmlstring.html#xmlChar
xmlChar
Returns
:
the resulting document tree
Function: xmlParseDocument
int	xmlParseDocument		(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt)
parse an XML document (and build a tree if using the standard SAX interface). [1] document ::= prolog element Misc* [22] prolog ::= XMLDecl? Misc* (doctypedecl Misc*)?
ctxt
:
an XML parser context
Returns
:
0, -1 in case of error. the parser context is augmented as a result of the parsing.
Function: xmlParseEntity
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlParseEntity		(const char * filename)
parse an XML external entity out of context and build a tree. [78] extParsedEnt ::= TextDecl? content This correspond to a "Well Balanced" chunk
filename
:
the filename
Returns
:
the resulting document tree
Function: xmlParseExtParsedEnt
int	xmlParseExtParsedEnt		(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt)
parse a general parsed entity An external general parsed entity is well-formed if it matches the production labeled extParsedEnt. [78] extParsedEnt ::= TextDecl? content
ctxt
:
an XML parser context
Returns
:
0, -1 in case of error. the parser context is augmented as a result of the parsing.
Function: xmlParseExternalEntity
int	xmlParseExternalEntity		(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
void * user_data,
int depth,
const
libxml-xmlstring.html#xmlChar
xmlChar
* URL,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ID,
libxml-tree.html#xmlNodePtr
xmlNodePtr
* lst)
Parse an external general entity An external general parsed entity is well-formed if it matches the production labeled extParsedEnt. [78] extParsedEnt ::= TextDecl? content
doc
:
the document the chunk pertains to
sax
:
the SAX handler bloc (possibly NULL)
user_data
:
The user data returned on SAX callbacks (possibly NULL)
depth
:
Used for loop detection, use 0
URL
:
the URL for the entity to load
ID
:
the System ID for the entity to load
lst
:
the return value for the set of parsed nodes
Returns
:
0 if the entity is well formed, -1 in case of args problem and the parser error code otherwise
Function: xmlParseFile
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlParseFile		(const char * filename)
parse an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.
filename
:
the filename
Returns
:
the resulting document tree if the file was wellformed, NULL otherwise.
Function: xmlParseInNodeContext
libxml-xmlerror.html#xmlParserErrors
xmlParserErrors
xmlParseInNodeContext	(
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
const char * data,
int datalen,
int options,
libxml-tree.html#xmlNodePtr
xmlNodePtr
* lst)
Parse a well-balanced chunk of an XML document within the context (DTD, namespaces, etc ...) of the given node. The allowed sequence for the data is a Well Balanced Chunk defined by the content production in the XML grammar: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*
node
:
the context node
data
:
the input string
datalen
:
the input string length in bytes
options
:
a combination of
libxml-parser.html#xmlParserOption
xmlParserOption
lst
:
the return value for the set of parsed nodes
Returns
:
libxml-xmlerror.html#XML_ERR_OK
XML_ERR_OK
if the chunk is well balanced, and the parser error code otherwise
Function: xmlParseMemory
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlParseMemory		(const char * buffer,
int size)
parse an XML in-memory block and build a tree.
buffer
:
an pointer to a char array
size
:
the size of the array
Returns
:
the resulting document tree
Function: xmlParserAddNodeInfo
void	xmlParserAddNodeInfo		(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
const
libxml-parser.html#xmlParserNodeInfoPtr
xmlParserNodeInfoPtr
info)
Insert node info record into the sorted sequence
ctxt
:
an XML parser context
info
:
a node info sequence pointer
Function: xmlParserFindNodeInfo
const
libxml-parser.html#xmlParserNodeInfo
xmlParserNodeInfo
*	xmlParserFindNodeInfo	(const
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctx,
const
libxml-tree.html#xmlNodePtr
xmlNodePtr
node)
Find the parser node info struct for a given node
ctx
:
an XML parser context
node
:
an XML node within the tree
Returns
:
an
libxml-parser.html#xmlParserNodeInfo
xmlParserNodeInfo
block pointer or NULL
Function: xmlParserFindNodeInfoIndex
unsigned long	xmlParserFindNodeInfoIndex	(const
libxml-parser.html#xmlParserNodeInfoSeqPtr
xmlParserNodeInfoSeqPtr
seq,
const
libxml-tree.html#xmlNodePtr
xmlNodePtr
node)
libxml-parser.html#xmlParserFindNodeInfoIndex
xmlParserFindNodeInfoIndex
: Find the index that the info record for the given node is or should be at in a sorted sequence
seq
:
a node info sequence pointer
node
:
an XML node pointer
Returns
:
a long indicating the position of the record
Function type: xmlParserInputDeallocate
Function type: xmlParserInputDeallocate
void	xmlParserInputDeallocate	(
libxml-xmlstring.html#xmlChar
xmlChar
* str)
Callback for freeing some parser input allocations.
str
:
the string to deallocate
Function: xmlParserInputGrow
int	xmlParserInputGrow		(
libxml-tree.html#xmlParserInputPtr
xmlParserInputPtr
in,
int len)
This function increase the input for the parser. It tries to preserve pointers to the input buffer, and keep already read data
in
:
an XML parser input
len
:
an indicative size for the lookahead
Returns
:
the number of xmlChars read, or -1 in case of error, 0 indicate the end of this entity
Function: xmlParserInputRead
int	xmlParserInputRead		(
libxml-tree.html#xmlParserInputPtr
xmlParserInputPtr
in,
int len)
This function refresh the input for the parser. It doesn't try to preserve pointers to the input buffer, and discard already read data
in
:
an XML parser input
len
:
an indicative size for the lookahead
Returns
:
the number of xmlChars read, or -1 in case of error, 0 indicate the end of this entity
Function: xmlPedanticParserDefault
int	xmlPedanticParserDefault	(int val)
Set and return the previous value for enabling pedantic warnings.
val
:
int 0 or 1
Returns
:
the last value for 0 for no substitution, 1 for substitution.
Function: xmlReadDoc
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlReadDoc		(const
libxml-xmlstring.html#xmlChar
xmlChar
* cur,
const char * URL,
const char * encoding,
int options)
parse an XML in-memory document and build a tree.
cur
:
a pointer to a zero terminated string
URL
:
the base URL to use for the document
encoding
:
the document encoding, or NULL
options
:
a combination of
libxml-parser.html#xmlParserOption
xmlParserOption
Returns
:
the resulting document tree
Function: xmlReadFd
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlReadFd		(int fd,
const char * URL,
const char * encoding,
int options)
parse an XML from a file descriptor and build a tree. NOTE that the file descriptor will not be closed when the reader is closed or reset.
fd
:
an open file descriptor
URL
:
the base URL to use for the document
encoding
:
the document encoding, or NULL
options
:
a combination of
libxml-parser.html#xmlParserOption
xmlParserOption
Returns
:
the resulting document tree
Function: xmlReadFile
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlReadFile		(const char * filename,
const char * encoding,
int options)
parse an XML file from the filesystem or the network.
filename
:
a file or URL
encoding
:
the document encoding, or NULL
options
:
a combination of
libxml-parser.html#xmlParserOption
xmlParserOption
Returns
:
the resulting document tree
Function: xmlReadIO
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlReadIO		(
libxml-xmlIO.html#xmlInputReadCallback
xmlInputReadCallback
ioread,
libxml-xmlIO.html#xmlInputCloseCallback
xmlInputCloseCallback
ioclose,
void * ioctx,
const char * URL,
const char * encoding,
int options)
parse an XML document from I/O functions and source and build a tree.
ioread
:
an I/O read function
ioclose
:
an I/O close function
ioctx
:
an I/O handler
URL
:
the base URL to use for the document
encoding
:
the document encoding, or NULL
options
:
a combination of
libxml-parser.html#xmlParserOption
xmlParserOption
Returns
:
the resulting document tree
Function: xmlReadMemory
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlReadMemory		(const char * buffer,
int size,
const char * URL,
const char * encoding,
int options)
parse an XML in-memory document and build a tree.
buffer
:
a pointer to a char array
size
:
the size of the array
URL
:
the base URL to use for the document
encoding
:
the document encoding, or NULL
options
:
a combination of
libxml-parser.html#xmlParserOption
xmlParserOption
Returns
:
the resulting document tree
Function: xmlRecoverDoc
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlRecoverDoc		(
libxml-xmlstring.html#xmlChar
xmlChar
* cur)
parse an XML in-memory document and build a tree. In the case the document is not Well Formed, a tree is built anyway
cur
:
a pointer to an array of
libxml-xmlstring.html#xmlChar
xmlChar
Returns
:
the resulting document tree
Function: xmlRecoverFile
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlRecoverFile		(const char * filename)
parse an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. In the case the document is not Well Formed, a tree is built anyway
filename
:
the filename
Returns
:
the resulting document tree
Function: xmlRecoverMemory
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlRecoverMemory	(const char * buffer,
int size)
parse an XML in-memory block and build a tree. In the case the document is not Well Formed, a tree is built anyway
buffer
:
an pointer to a char array
size
:
the size of the array
Returns
:
the resulting document tree
Function: xmlSAXParseDTD
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
xmlSAXParseDTD		(
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ExternalID,
const
libxml-xmlstring.html#xmlChar
xmlChar
* SystemID)
Load and parse an external subset.
sax
:
the SAX handler block
ExternalID
:
a NAME* containing the External ID of the DTD
SystemID
:
a NAME* containing the URL to the DTD
Returns
:
the resulting
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
or NULL in case of error.
Function: xmlSAXParseDoc
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlSAXParseDoc		(
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
const
libxml-xmlstring.html#xmlChar
xmlChar
* cur,
int recovery)
parse an XML in-memory document and build a tree. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.
sax
:
the SAX handler block
cur
:
a pointer to an array of
libxml-xmlstring.html#xmlChar
xmlChar
recovery
:
work in recovery mode, i.e. tries to read no Well Formed documents
Returns
:
the resulting document tree
Function: xmlSAXParseEntity
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlSAXParseEntity	(
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
const char * filename)
parse an XML external entity out of context and build a tree. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. [78] extParsedEnt ::= TextDecl? content This correspond to a "Well Balanced" chunk
sax
:
the SAX handler block
filename
:
the filename
Returns
:
the resulting document tree
Function: xmlSAXParseFile
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlSAXParseFile		(
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
const char * filename,
int recovery)
parse an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.
sax
:
the SAX handler block
filename
:
the filename
recovery
:
work in recovery mode, i.e. tries to read no Well Formed documents
Returns
:
the resulting document tree
Function: xmlSAXParseFileWithData
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlSAXParseFileWithData	(
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
const char * filename,
int recovery,
void * data)
parse an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. User data (void *) is stored within the parser context in the context's _private member, so it is available nearly everywhere in libxml
sax
:
the SAX handler block
filename
:
the filename
recovery
:
work in recovery mode, i.e. tries to read no Well Formed documents
data
:
the userdata
Returns
:
the resulting document tree
Function: xmlSAXParseMemory
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlSAXParseMemory	(
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
const char * buffer,
int size,
int recovery)
parse an XML in-memory block and use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.
sax
:
the SAX handler block
buffer
:
an pointer to a char array
size
:
the size of the array
recovery
:
work in recovery mode, i.e. tries to read not Well Formed documents
Returns
:
the resulting document tree
Function: xmlSAXParseMemoryWithData
libxml-tree.html#xmlDocPtr
xmlDocPtr
xmlSAXParseMemoryWithData	(
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
const char * buffer,
int size,
int recovery,
void * data)
parse an XML in-memory block and use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. User data (void *) is stored within the parser context in the context's _private member, so it is available nearly everywhere in libxml
sax
:
the SAX handler block
buffer
:
an pointer to a char array
size
:
the size of the array
recovery
:
work in recovery mode, i.e. tries to read no Well Formed documents
data
:
the userdata
Returns
:
the resulting document tree
Function: xmlSAXUserParseFile
int	xmlSAXUserParseFile		(
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
void * user_data,
const char * filename)
parse an XML file and call the given SAX handler routines. Automatic support for ZLIB/Compress compressed document is provided
sax
:
a SAX handler
user_data
:
The user data returned on SAX callbacks
filename
:
a file name
Returns
:
0 in case of success or a error number otherwise
Function: xmlSAXUserParseMemory
int	xmlSAXUserParseMemory		(
libxml-tree.html#xmlSAXHandlerPtr
xmlSAXHandlerPtr
sax,
void * user_data,
const char * buffer,
int size)
A better SAX parsing routine. parse an XML in-memory buffer and call the given SAX handler routines.
sax
:
a SAX handler
user_data
:
The user data returned on SAX callbacks
buffer
:
an in-memory XML document input
size
:
the length of the XML document in bytes
Returns
:
0 in case of success or a error number otherwise
Function: xmlSetExternalEntityLoader
void	xmlSetExternalEntityLoader	(
libxml-parser.html#xmlExternalEntityLoader
xmlExternalEntityLoader
f)
Changes the defaultexternal entity resolver function for the application
f
:
the new entity resolver function
Function: xmlSetFeature
int	xmlSetFeature			(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
const char * name,
void * value)
Change the current value of one feature of this parser instance
ctxt
:
an XML/HTML parser context
name
:
the feature name
value
:
pointer to the location of the new value
Returns
:
-1 in case or error, 0 otherwise
Function: xmlSetupParserForBuffer
void	xmlSetupParserForBuffer		(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt,
const
libxml-xmlstring.html#xmlChar
xmlChar
* buffer,
const char * filename)
Setup the parser context to parse a new buffer; Clears any prior contents from the parser context. The buffer parameter must not be NULL, but the filename parameter can be
ctxt
:
an XML parser context
buffer
:
a
libxml-xmlstring.html#xmlChar
xmlChar
* buffer
filename
:
a file name
Function: xmlStopParser
void	xmlStopParser			(
libxml-tree.html#xmlParserCtxtPtr
xmlParserCtxtPtr
ctxt)
Blocks further parser processing
ctxt
:
an XML parser context
Function: xmlSubstituteEntitiesDefault
int	xmlSubstituteEntitiesDefault	(int val)
Set and return the previous value for default entity support. Initially the parser always keep entity references instead of substituting entity values in the output. This function has to be used to change the default parser behavior SAX::substituteEntities() has to be used for changing that on a file by file basis.
val
:
int 0 or 1
Returns
:
the last value for 0 for no substitution, 1 for substitution.
../bugs.html
Daniel Veillard
