http://swpat.ffii.org/Action against software patents http://www.gnome.org/Gnome2 Logo http://www.w3.org/StatusW3C Logo http://www.redhat.com/Red Hat Logo http://xmlsoft.org/Made with Libxml2 Logo 
Module parserInternals from libxml2
API Menu ../index.htmlMain Menu ../docs.htmlDeveloper Menu ../examples/index.htmlCode Examples index.htmlAPI Menu libxml-parser.htmlParser API libxml-tree.htmlTree API libxml-xmlreader.htmlReader API ../guidelines.htmlXML Guidelines ../ChangeLog.htmlChangeLog API Indexes ../APIchunk0.htmlAlphabetic ../APIconstructors.htmlConstructors ../APIfunctions.htmlFunctions/Types ../APIfiles.htmlModules ../APIsymbols.htmlSymbols 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/libxml2Solaris binaries http://www.explain.com.au/oss/libxml2xslt.htmlMacOsX binaries http://libxmlplusplus.sourceforge.net/C++ bindings http://www.zend.com/php5/articles/php5-xmlphp.php#Heading4PHP 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=libxml2Bug Tracker libxml-parser.htmlPrev libxml-parser.htmlparser index.htmlUp index.htmlAPI documentation ../index.htmlHome ../index.htmlThe XML C parser and toolkit of Gnome libxml-pattern.htmlpattern libxml-pattern.htmlNext this module exports a number of internal parsing routines they are not really all intended for applications but can prove useful doing low level processing. 
Table of Contents
#define #INPUT_CHUNKINPUT_CHUNK #define #IS_ASCII_DIGITIS_ASCII_DIGIT #define #IS_ASCII_LETTERIS_ASCII_LETTER #define #IS_BASECHARIS_BASECHAR #define #IS_BLANKIS_BLANK #define #IS_BLANK_CHIS_BLANK_CH #define #IS_BYTE_CHARIS_BYTE_CHAR #define #IS_CHARIS_CHAR #define #IS_CHAR_CHIS_CHAR_CH #define #IS_COMBININGIS_COMBINING #define #IS_COMBINING_CHIS_COMBINING_CH #define #IS_DIGITIS_DIGIT #define #IS_DIGIT_CHIS_DIGIT_CH #define #IS_EXTENDERIS_EXTENDER #define #IS_EXTENDER_CHIS_EXTENDER_CH #define #IS_IDEOGRAPHICIS_IDEOGRAPHIC #define #IS_LETTERIS_LETTER #define #IS_LETTER_CHIS_LETTER_CH #define #IS_PUBIDCHARIS_PUBIDCHAR #define #IS_PUBIDCHAR_CHIS_PUBIDCHAR_CH #define #MOVETO_ENDTAGMOVETO_ENDTAG #define #MOVETO_STARTTAGMOVETO_STARTTAG #define #SKIP_EOLSKIP_EOL #define #XML_MAX_NAMELENXML_MAX_NAMELEN #define #XML_SUBSTITUTE_BOTHXML_SUBSTITUTE_BOTH #define #XML_SUBSTITUTE_NONEXML_SUBSTITUTE_NONE #define #XML_SUBSTITUTE_PEREFXML_SUBSTITUTE_PEREF #define #XML_SUBSTITUTE_REFXML_SUBSTITUTE_REF libxml-HTMLparser.html#htmlParserCtxtPtrhtmlParserCtxtPtr 	#htmlCreateFileParserCtxthtmlCreateFileParserCtxt 	(const char * filename, 							 const char * encoding)void	#htmlInitAutoClosehtmlInitAutoClose 		(void) libxml-tree.html#xmlParserInputPtrxmlParserInputPtr 	#inputPopinputPop 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)int	#inputPushinputPush 			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-tree.html#xmlParserInputPtrxmlParserInputPtr  value)const libxml-xmlstring.html#xmlCharxmlChar  *	#namePopnamePop 			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)int	#namePushnamePush 			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 const libxml-xmlstring.html#xmlCharxmlChar  * value) libxml-tree.html#xmlNodePtrxmlNodePtr 	#nodePopnodePop 			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)int	#nodePushnodePush 			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-tree.html#xmlNodePtrxmlNodePtr  value)int	#xmlCheckLanguageIDxmlCheckLanguageID 		(const libxml-xmlstring.html#xmlCharxmlChar  * lang)int	#xmlCopyCharxmlCopyChar 			(int len, 					 libxml-xmlstring.html#xmlCharxmlChar  * out, 					 int val)int	#xmlCopyCharMultiBytexmlCopyCharMultiByte 		( libxml-xmlstring.html#xmlCharxmlChar  * out, 					 int val) libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr 	#xmlCreateEntityParserCtxtxmlCreateEntityParserCtxt 	(const libxml-xmlstring.html#xmlCharxmlChar  * URL, 							 const libxml-xmlstring.html#xmlCharxmlChar  * ID, 							 const libxml-xmlstring.html#xmlCharxmlChar  * base) libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr 	#xmlCreateFileParserCtxtxmlCreateFileParserCtxt 	(const char * filename) libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr 	#xmlCreateMemoryParserCtxtxmlCreateMemoryParserCtxt 	(const char * buffer, 							 int size) libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr 	#xmlCreateURLParserCtxtxmlCreateURLParserCtxt 	(const char * filename, 						 int options)int	#xmlCurrentCharxmlCurrentChar 			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 int * len) libxml-xmlstring.html#xmlCharxmlChar  *	#xmlDecodeEntitiesxmlDecodeEntities 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 int len, 					 int what, 					 libxml-xmlstring.html#xmlCharxmlChar  end, 					 libxml-xmlstring.html#xmlCharxmlChar  end2, 					 libxml-xmlstring.html#xmlCharxmlChar  end3)Function type: #xmlEntityReferenceFuncxmlEntityReferenceFunc void	
#xmlEntityReferenceFuncxmlEntityReferenceFunc 		( libxml-tree.html#xmlEntityPtrxmlEntityPtr  ent, 					 libxml-tree.html#xmlNodePtrxmlNodePtr  firstNode, 					 libxml-tree.html#xmlNodePtrxmlNodePtr  lastNode)
void	#xmlErrMemoryxmlErrMemory 			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 const char * extra)void	#xmlFreeInputStreamxmlFreeInputStream 		( libxml-tree.html#xmlParserInputPtrxmlParserInputPtr  input)void	#xmlHandleEntityxmlHandleEntity 			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-tree.html#xmlEntityPtrxmlEntityPtr  entity)int	#xmlIsLetterxmlIsLetter 			(int c) libxml-xmlstring.html#xmlCharxmlChar  *	#xmlNamespaceParseNCNamexmlNamespaceParseNCName 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt) libxml-xmlstring.html#xmlCharxmlChar  *	#xmlNamespaceParseNSDefxmlNamespaceParseNSDef 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt) libxml-xmlstring.html#xmlCharxmlChar  *	#xmlNamespaceParseQNamexmlNamespaceParseQName 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-xmlstring.html#xmlCharxmlChar  ** prefix) libxml-tree.html#xmlParserInputPtrxmlParserInputPtr 	#xmlNewEntityInputStreamxmlNewEntityInputStream 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 						 libxml-tree.html#xmlEntityPtrxmlEntityPtr  entity) libxml-tree.html#xmlParserInputPtrxmlParserInputPtr 	#xmlNewInputFromFilexmlNewInputFromFile 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 						 const char * filename) libxml-tree.html#xmlParserInputPtrxmlParserInputPtr 	#xmlNewInputStreamxmlNewInputStream 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt) libxml-tree.html#xmlParserInputPtrxmlParserInputPtr 	#xmlNewStringInputStreamxmlNewStringInputStream 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 						 const libxml-xmlstring.html#xmlCharxmlChar  * buffer)void	#xmlNextCharxmlNextChar 			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt) libxml-xmlstring.html#xmlCharxmlChar  *	#xmlParseAttValuexmlParseAttValue 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)const libxml-xmlstring.html#xmlCharxmlChar  *	#xmlParseAttributexmlParseAttribute 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-xmlstring.html#xmlCharxmlChar  ** value)void	#xmlParseAttributeListDeclxmlParseAttributeListDecl 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)int	#xmlParseAttributeTypexmlParseAttributeType 		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-tree.html#xmlEnumerationPtrxmlEnumerationPtr  * tree)void	#xmlParseCDSectxmlParseCDSect 			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)void	#xmlParseCharDataxmlParseCharData 		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 int cdata)int	#xmlParseCharRefxmlParseCharRef 			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)void	#xmlParseCommentxmlParseComment 			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)void	#xmlParseContentxmlParseContent 			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)int	#xmlParseDefaultDeclxmlParseDefaultDecl 		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-xmlstring.html#xmlCharxmlChar  ** value)void	#xmlParseDocTypeDeclxmlParseDocTypeDecl 		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)void	#xmlParseElementxmlParseElement 			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt) libxml-tree.html#xmlElementContentPtrxmlElementContentPtr 	#xmlParseElementChildrenContentDeclxmlParseElementChildrenContentDecl 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 							 int inputchk)int	#xmlParseElementContentDeclxmlParseElementContentDecl 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 const libxml-xmlstring.html#xmlCharxmlChar  * name, 					 libxml-tree.html#xmlElementContentPtrxmlElementContentPtr  * result)int	#xmlParseElementDeclxmlParseElementDecl 		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt) libxml-tree.html#xmlElementContentPtrxmlElementContentPtr 	#xmlParseElementMixedContentDeclxmlParseElementMixedContentDecl 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 							 int inputchk) libxml-xmlstring.html#xmlCharxmlChar  *	#xmlParseEncNamexmlParseEncName 		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)const libxml-xmlstring.html#xmlCharxmlChar  *	#xmlParseEncodingDeclxmlParseEncodingDecl 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)void	#xmlParseEndTagxmlParseEndTag 			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)void	#xmlParseEntityDeclxmlParseEntityDecl 		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt) libxml-tree.html#xmlEntityPtrxmlEntityPtr 	#xmlParseEntityRefxmlParseEntityRef 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt) libxml-xmlstring.html#xmlCharxmlChar  *	#xmlParseEntityValuexmlParseEntityValue 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-xmlstring.html#xmlCharxmlChar  ** orig)int	#xmlParseEnumeratedTypexmlParseEnumeratedType 		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-tree.html#xmlEnumerationPtrxmlEnumerationPtr  * tree) libxml-tree.html#xmlEnumerationPtrxmlEnumerationPtr 	#xmlParseEnumerationTypexmlParseEnumerationType 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt) libxml-xmlstring.html#xmlCharxmlChar  *	#xmlParseExternalIDxmlParseExternalID 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-xmlstring.html#xmlCharxmlChar  ** publicID, 					 int strict)void	#xmlParseExternalSubsetxmlParseExternalSubset 		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 const libxml-xmlstring.html#xmlCharxmlChar  * ExternalID, 					 const libxml-xmlstring.html#xmlCharxmlChar  * SystemID)void	#xmlParseMarkupDeclxmlParseMarkupDecl 		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)void	#xmlParseMiscxmlParseMisc 			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)const libxml-xmlstring.html#xmlCharxmlChar  *	#xmlParseNamexmlParseName 		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)void	#xmlParseNamespacexmlParseNamespace 		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt) libxml-xmlstring.html#xmlCharxmlChar  *	#xmlParseNmtokenxmlParseNmtoken 		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)void	#xmlParseNotationDeclxmlParseNotationDecl 		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt) libxml-tree.html#xmlEnumerationPtrxmlEnumerationPtr 	#xmlParseNotationTypexmlParseNotationType 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)void	#xmlParsePEReferencexmlParsePEReference 		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)void	#xmlParsePIxmlParsePI 			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)const libxml-xmlstring.html#xmlCharxmlChar  *	#xmlParsePITargetxmlParsePITarget 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt) libxml-xmlstring.html#xmlCharxmlChar  *	#xmlParsePubidLiteralxmlParsePubidLiteral 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt) libxml-xmlstring.html#xmlCharxmlChar  *	#xmlParseQuotedStringxmlParseQuotedString 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)void	#xmlParseReferencexmlParseReference 		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)int	#xmlParseSDDeclxmlParseSDDecl 			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)const libxml-xmlstring.html#xmlCharxmlChar  *	#xmlParseStartTagxmlParseStartTag 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt) libxml-xmlstring.html#xmlCharxmlChar  *	#xmlParseSystemLiteralxmlParseSystemLiteral 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)void	#xmlParseTextDeclxmlParseTextDecl 		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt) libxml-xmlstring.html#xmlCharxmlChar  *	#xmlParseVersionInfoxmlParseVersionInfo 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt) libxml-xmlstring.html#xmlCharxmlChar  *	#xmlParseVersionNumxmlParseVersionNum 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)void	#xmlParseXMLDeclxmlParseXMLDecl 			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)void	#xmlParserHandlePEReferencexmlParserHandlePEReference 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)void	#xmlParserHandleReferencexmlParserHandleReference 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)void	#xmlParserInputShrinkxmlParserInputShrink 		( libxml-tree.html#xmlParserInputPtrxmlParserInputPtr  in) libxml-xmlstring.html#xmlCharxmlChar 	#xmlPopInputxmlPopInput 			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)void	#xmlPushInputxmlPushInput 			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-tree.html#xmlParserInputPtrxmlParserInputPtr  input) libxml-xmlstring.html#xmlCharxmlChar  *	#xmlScanNamexmlScanName 		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)void	#xmlSetEntityReferenceFuncxmlSetEntityReferenceFunc 	( libxml-parserInternals.html#xmlEntityReferenceFuncxmlEntityReferenceFunc  func)int	#xmlSkipBlankCharsxmlSkipBlankChars 		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt) libxml-xmlstring.html#xmlCharxmlChar  *	#xmlSplitQNamexmlSplitQName 		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 const libxml-xmlstring.html#xmlCharxmlChar  * name, 					 libxml-xmlstring.html#xmlCharxmlChar  ** prefix)int	#xmlStringCurrentCharxmlStringCurrentChar 		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 const libxml-xmlstring.html#xmlCharxmlChar  * cur, 					 int * len) libxml-xmlstring.html#xmlCharxmlChar  *	#xmlStringDecodeEntitiesxmlStringDecodeEntities 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 const libxml-xmlstring.html#xmlCharxmlChar  * str, 					 int what, 					 libxml-xmlstring.html#xmlCharxmlChar  end, 					 libxml-xmlstring.html#xmlCharxmlChar  end2, 					 libxml-xmlstring.html#xmlCharxmlChar  end3) libxml-xmlstring.html#xmlCharxmlChar  *	#xmlStringLenDecodeEntitiesxmlStringLenDecodeEntities 	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 						 const libxml-xmlstring.html#xmlCharxmlChar  * str, 						 int len, 						 int what, 						 libxml-xmlstring.html#xmlCharxmlChar  end, 						 libxml-xmlstring.html#xmlCharxmlChar  end2, 						 libxml-xmlstring.html#xmlCharxmlChar  end3)int	#xmlSwitchEncodingxmlSwitchEncoding 		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-encoding.html#xmlCharEncodingxmlCharEncoding  enc)int	#xmlSwitchInputEncodingxmlSwitchInputEncoding 		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-tree.html#xmlParserInputPtrxmlParserInputPtr  input, 					 libxml-encoding.html#xmlCharEncodingHandlerPtrxmlCharEncodingHandlerPtr  handler)int	#xmlSwitchToEncodingxmlSwitchToEncoding 		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-encoding.html#xmlCharEncodingHandlerPtrxmlCharEncodingHandlerPtr  handler)Description
Macro: INPUT_CHUNK
#define INPUT_CHUNKThe parser tries to always have that amount of input ready. One of the point is providing context when reporting errors.
Macro: IS_ASCII_DIGIT
#define IS_ASCII_DIGITMacro to check [0-9]
Macro: IS_ASCII_LETTER
#define IS_ASCII_LETTERMacro to check [a-zA-Z]
Macro: IS_BASECHAR
#define IS_BASECHARMacro to check the following production in the XML spec: [85] BaseChar ::= ... long list see REC ...
Macro: IS_BLANK
#define IS_BLANKMacro to check the following production in the XML spec: [3] S ::= (#x20 | #x9 | #xD | #xA)+
Macro: IS_BLANK_CH
#define IS_BLANK_CHBehaviour same as libxml-parserInternals.html#IS_BLANKIS_BLANK 
Macro: IS_BYTE_CHAR
#define IS_BYTE_CHARMacro to check the following production in the XML spec: [2] Char ::= #x9 | #xA | #xD | [#x20...] any byte character in the accepted range
Macro: IS_CHAR
#define IS_CHARMacro to check the following production in the XML spec: [2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF] any Unicode character, excluding the surrogate blocks, FFFE, and FFFF.
Macro: IS_CHAR_CH
#define IS_CHAR_CHBehaves like libxml-parserInternals.html#IS_CHARIS_CHAR  on single-byte value
Macro: IS_COMBINING
#define IS_COMBININGMacro to check the following production in the XML spec: [87] CombiningChar ::= ... long list see REC ...
Macro: IS_COMBINING_CH
#define IS_COMBINING_CHAlways false (all combining chars > 0xff)
Macro: IS_DIGIT
#define IS_DIGITMacro to check the following production in the XML spec: [88] Digit ::= ... long list see REC ...
Macro: IS_DIGIT_CH
#define IS_DIGIT_CHBehaves like libxml-parserInternals.html#IS_DIGITIS_DIGIT  but with a single byte argument
Macro: IS_EXTENDER
#define IS_EXTENDERMacro to check the following production in the XML spec: [89] Extender ::= #x00B7 | #x02D0 | #x02D1 | #x0387 | #x0640 | #x0E46 | #x0EC6 | #x3005 | [#x3031-#x3035] | [#x309D-#x309E] | [#x30FC-#x30FE]
Macro: IS_EXTENDER_CH
#define IS_EXTENDER_CHBehaves like libxml-parserInternals.html#IS_EXTENDERIS_EXTENDER  but with a single-byte argument
Macro: IS_IDEOGRAPHIC
#define IS_IDEOGRAPHICMacro to check the following production in the XML spec: [86] Ideographic ::= [#x4E00-#x9FA5] | #x3007 | [#x3021-#x3029]
Macro: IS_LETTER
#define IS_LETTERMacro to check the following production in the XML spec: [84] Letter ::= BaseChar | Ideographic
Macro: IS_LETTER_CH
#define IS_LETTER_CHMacro behaves like IS_LETTER, but only check base chars
Macro: IS_PUBIDCHAR
#define IS_PUBIDCHARMacro to check the following production in the XML spec: [13] PubidChar ::= #x20 | #xD | #xA | [a-zA-Z0-9] | [-'()+,./:=?;!*#@$_%]
Macro: IS_PUBIDCHAR_CH
#define IS_PUBIDCHAR_CHSame as libxml-parserInternals.html#IS_PUBIDCHARIS_PUBIDCHAR  but for single-byte value
Macro: MOVETO_ENDTAG
#define MOVETO_ENDTAGSkips to the next '>' char.
Macro: MOVETO_STARTTAG
#define MOVETO_STARTTAGSkips to the next '<' char.
Macro: SKIP_EOL
#define SKIP_EOLSkips the end of line chars.
Macro: XML_MAX_NAMELEN
#define XML_MAX_NAMELENIdentifiers can be longer, but this will be more costly at runtime.
Macro: XML_SUBSTITUTE_BOTH
#define XML_SUBSTITUTE_BOTHBoth general and parameter entities need to be substituted.
Macro: XML_SUBSTITUTE_NONE
#define XML_SUBSTITUTE_NONEIf no entities need to be substituted.
Macro: XML_SUBSTITUTE_PEREF
#define XML_SUBSTITUTE_PEREFWhether parameter entities need to be substituted.
Macro: XML_SUBSTITUTE_REF
#define XML_SUBSTITUTE_REFWhether general entities need to be substituted.
Function: htmlCreateFileParserCtxt
libxml-HTMLparser.html#htmlParserCtxtPtrhtmlParserCtxtPtr 	htmlCreateFileParserCtxt	(const char * filename, 							 const char * encoding)Create a parser context for a file content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.
filename: the filename encoding: a free form C string describing the HTML document encoding, or NULL Returns: the new parser context or NULL Function: htmlInitAutoClose
void	htmlInitAutoClose		(void)Initialize the htmlStartCloseIndex for fast lookup of closing tags names. This is not reentrant. Call xmlInitParser() once before processing in case of use in multithreaded programs.
Function: inputPop
libxml-tree.html#xmlParserInputPtrxmlParserInputPtr 	inputPop	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)Pops the top parser input from the input stack
ctxt: an XML parser context Returns: the input just removed Function: inputPush
int	inputPush			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-tree.html#xmlParserInputPtrxmlParserInputPtr  value)Pushes a new parser input on top of the input stack
ctxt: an XML parser context value: the parser input Returns: 0 in case of error, the index in the stack otherwise Function: namePop
const libxml-xmlstring.html#xmlCharxmlChar  *	namePop			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)Pops the top element name from the name stack
ctxt: an XML parser context Returns: the name just removed Function: namePush
int	namePush			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 const libxml-xmlstring.html#xmlCharxmlChar  * value)Pushes a new element name on top of the name stack
ctxt: an XML parser context value: the element name Returns: -1 in case of error, the index in the stack otherwise Function: nodePop
libxml-tree.html#xmlNodePtrxmlNodePtr 	nodePop			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)Pops the top element node from the node stack
ctxt: an XML parser context Returns: the node just removed Function: nodePush
int	nodePush			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-tree.html#xmlNodePtrxmlNodePtr  value)Pushes a new element node on top of the node stack
ctxt: an XML parser context value: the element node Returns: 0 in case of error, the index in the stack otherwise Function: xmlCheckLanguageID
int	xmlCheckLanguageID		(const libxml-xmlstring.html#xmlCharxmlChar  * lang)Checks that the value conforms to the LanguageID production: NOTE: this is somewhat deprecated, those productions were removed from the XML Second edition. [33] LanguageID ::= Langcode ('-' Subcode)* [34] Langcode ::= ISO639Code | IanaCode | UserCode [35] ISO639Code ::= ([a-z] | [A-Z]) ([a-z] | [A-Z]) [36] IanaCode ::= ('i' | 'I') '-' ([a-z] | [A-Z])+ [37] UserCode ::= ('x' | 'X') '-' ([a-z] | [A-Z])+ [38] Subcode ::= ([a-z] | [A-Z])+
lang: pointer to the string value Returns: 1 if correct 0 otherwise Function: xmlCopyChar
int	xmlCopyChar			(int len, 					 libxml-xmlstring.html#xmlCharxmlChar  * out, 					 int val)append the char value in the array
len: Ignored, compatibility out: pointer to an array of libxml-xmlstring.html#xmlCharxmlChar val: the char value Returns: the number of libxml-xmlstring.html#xmlCharxmlChar  written Function: xmlCopyCharMultiByte
int	xmlCopyCharMultiByte		( libxml-xmlstring.html#xmlCharxmlChar  * out, 					 int val)append the char value in the array
out: pointer to an array of libxml-xmlstring.html#xmlCharxmlChar val: the char value Returns: the number of libxml-xmlstring.html#xmlCharxmlChar  written Function: xmlCreateEntityParserCtxt
libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr 	xmlCreateEntityParserCtxt	(const libxml-xmlstring.html#xmlCharxmlChar  * URL, 							 const libxml-xmlstring.html#xmlCharxmlChar  * ID, 							 const libxml-xmlstring.html#xmlCharxmlChar  * base)Create a parser context for an external entity Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.
URL: the entity URL ID: the entity PUBLIC ID base: a possible base for the target URI Returns: the new parser context or NULL Function: xmlCreateFileParserCtxt
libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr 	xmlCreateFileParserCtxt	(const char * filename)Create a parser context for a file content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.
filename: the filename Returns: the new parser context or NULL Function: xmlCreateMemoryParserCtxt
libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr 	xmlCreateMemoryParserCtxt	(const char * buffer, 							 int size)Create a parser context for an XML in-memory document.
buffer: a pointer to a char array size: the size of the array Returns: the new parser context or NULL Function: xmlCreateURLParserCtxt
libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr 	xmlCreateURLParserCtxt	(const char * filename, 						 int options)Create a parser context for a file or URL content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time and for file accesses
filename: the filename or URL options: a combination of libxml-parser.html#xmlParserOptionxmlParserOption Returns: the new parser context or NULL Function: xmlCurrentChar
int	xmlCurrentChar			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 int * len)The current char value, if using UTF-8 this may actually span multiple bytes in the input buffer. Implement the end of line normalization: 2.11 End-of-Line Handling Wherever an external parsed entity or the literal entity value of an internal parsed entity contains either the literal two-character sequence "#xD#xA" or a standalone literal #xD, an XML processor must pass to the application the single character #xA. This behavior can conveniently be produced by normalizing all line breaks to #xA on input, before parsing.)
ctxt: the XML parser context len: pointer to the length of the char read Returns: the current char value and its length Function: xmlDecodeEntities
libxml-xmlstring.html#xmlCharxmlChar  *	xmlDecodeEntities	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 int len, 					 int what, 					 libxml-xmlstring.html#xmlCharxmlChar  end, 					 libxml-xmlstring.html#xmlCharxmlChar  end2, 					 libxml-xmlstring.html#xmlCharxmlChar  end3)This function is deprecated, we now always process entities content through libxml-parserInternals.html#xmlStringDecodeEntitiesxmlStringDecodeEntities  TODO: remove it in next major release. [67] Reference ::= EntityRef | CharRef [69] PEReference ::= '%' Name ';'
ctxt: the parser context len: the len to decode (in bytes !), -1 for no size limit what: combination of libxml-parserInternals.html#XML_SUBSTITUTE_REFXML_SUBSTITUTE_REF  and libxml-parserInternals.html#XML_SUBSTITUTE_PEREFXML_SUBSTITUTE_PEREF end: an end marker xmlChar, 0 if none end2: an end marker xmlChar, 0 if none end3: an end marker xmlChar, 0 if none Returns: A newly allocated string with the substitution done. The caller must deallocate it ! Function type: xmlEntityReferenceFunc
Function type: xmlEntityReferenceFunc
void	xmlEntityReferenceFunc		(
libxml-tree.html#xmlEntityPtrxmlEntityPtr  ent, 					 libxml-tree.html#xmlNodePtrxmlNodePtr  firstNode, 					 libxml-tree.html#xmlNodePtrxmlNodePtr  lastNode)
Callback function used when one needs to be able to track back the provenance of a chunk of nodes inherited from an entity replacement.
ent: the entity firstNode: the fist node in the chunk lastNode: the last nod in the chunk Function: xmlErrMemory
void	xmlErrMemory			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 const char * extra)Handle a redefinition of libxml-SAX.html#attributeattribute  error
ctxt: an XML parser context extra: extra informations Function: xmlFreeInputStream
void	xmlFreeInputStream		( libxml-tree.html#xmlParserInputPtrxmlParserInputPtr  input)Free up an input stream.
input: an libxml-tree.html#xmlParserInputPtrxmlParserInputPtr Function: xmlHandleEntity
void	xmlHandleEntity			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-tree.html#xmlEntityPtrxmlEntityPtr  entity)Default handling of defined entities, when should we define a new input stream ? When do we just handle that as a set of chars ? OBSOLETE: to be removed at some point.
ctxt: an XML parser context entity: an XML entity pointer. Function: xmlIsLetter
int	xmlIsLetter			(int c)Check whether the character is allowed by the production [84] Letter ::= BaseChar | Ideographic
c: an unicode character (int) Returns: 0 if not, non-zero otherwise Function: xmlNamespaceParseNCName
libxml-xmlstring.html#xmlCharxmlChar  *	xmlNamespaceParseNCName	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse an XML namespace name. TODO: this seems not in use anymore, the namespace handling is done on top of the SAX interfaces, i.e. not on raw input. [NS 3] NCName ::= (Letter | '_') (NCNameChar)* [NS 4] NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender
ctxt: an XML parser context Returns: the namespace name or NULL Function: xmlNamespaceParseNSDef
libxml-xmlstring.html#xmlCharxmlChar  *	xmlNamespaceParseNSDef	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse a namespace prefix declaration TODO: this seems not in use anymore, the namespace handling is done on top of the SAX interfaces, i.e. not on raw input. [NS 1] NSDef ::= PrefixDef Eq SystemLiteral [NS 2] PrefixDef ::= 'xmlns' (':' NCName)?
ctxt: an XML parser context Returns: the namespace name Function: xmlNamespaceParseQName
libxml-xmlstring.html#xmlCharxmlChar  *	xmlNamespaceParseQName	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-xmlstring.html#xmlCharxmlChar  ** prefix)TODO: this seems not in use anymore, the namespace handling is done on top of the SAX interfaces, i.e. not on raw input. parse an XML qualified name [NS 5] QName ::= (Prefix ':')? LocalPart [NS 6] Prefix ::= NCName [NS 7] LocalPart ::= NCName
ctxt: an XML parser context prefix: a libxml-xmlstring.html#xmlCharxmlChar  ** Returns: the local part, and prefix is updated to get the Prefix if any. Function: xmlNewEntityInputStream
libxml-tree.html#xmlParserInputPtrxmlParserInputPtr 	xmlNewEntityInputStream	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 						 libxml-tree.html#xmlEntityPtrxmlEntityPtr  entity)Create a new input stream based on an libxml-tree.html#xmlEntityPtrxmlEntityPtr 
ctxt: an XML parser context entity: an Entity pointer Returns: the new input stream or NULL Function: xmlNewInputFromFile
libxml-tree.html#xmlParserInputPtrxmlParserInputPtr 	xmlNewInputFromFile	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 						 const char * filename)Create a new input stream based on a file or an URL.
ctxt: an XML parser context filename: the filename to use as entity Returns: the new input stream or NULL in case of error Function: xmlNewInputStream
libxml-tree.html#xmlParserInputPtrxmlParserInputPtr 	xmlNewInputStream	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)Create a new input stream structure
ctxt: an XML parser context Returns: the new input stream or NULL Function: xmlNewStringInputStream
libxml-tree.html#xmlParserInputPtrxmlParserInputPtr 	xmlNewStringInputStream	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 						 const libxml-xmlstring.html#xmlCharxmlChar  * buffer)Create a new input stream based on a memory buffer.
ctxt: an XML parser context buffer: an memory buffer Returns: the new input stream Function: xmlNextChar
void	xmlNextChar			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)Skip to the next char input char.
ctxt: the XML parser context Function: xmlParseAttValue
libxml-xmlstring.html#xmlCharxmlChar  *	xmlParseAttValue	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse a value for an libxml-SAX.html#attributeattribute  Note: the parser won't do substitution of entities here, this will be handled later in libxml-tree.html#xmlStringGetNodeListxmlStringGetNodeList  [10] AttValue ::= '"' ([^<&"] | Reference)* '"' | "'" ([^<&'] | Reference)* "'" 3.3.3 Attribute-Value Normalization: Before the value of an libxml-SAX.html#attributeattribute  is passed to the application or checked for validity, the XML processor must normalize it as follows: - a character libxml-SAX.html#referencereference  is processed by appending the referenced character to the libxml-SAX.html#attributeattribute  value - an entity libxml-SAX.html#referencereference  is processed by recursively processing the replacement text of the entity - a whitespace character (#x20, #xD, #xA, #x9) is processed by appending #x20 to the normalized value, except that only a single #x20 is appended for a "#xD#xA" sequence that is part of an external parsed entity or the literal entity value of an internal parsed entity - other libxml-SAX.html#characterscharacters  are processed by appending them to the normalized value If the declared value is not CDATA, then the XML processor must further process the normalized libxml-SAX.html#attributeattribute  value by discarding any leading and trailing space (#x20) characters, and by replacing sequences of space (#x20) libxml-SAX.html#characterscharacters  by a single space (#x20) character. All attributes for which no declaration has been read should be treated by a non-validating parser as if declared CDATA.
ctxt: an XML parser context Returns: the AttValue parsed or NULL. The value has to be freed by the caller. Function: xmlParseAttribute
const libxml-xmlstring.html#xmlCharxmlChar  *	xmlParseAttribute	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-xmlstring.html#xmlCharxmlChar  ** value)parse an libxml-SAX.html#attributeattribute  [41] Attribute ::= Name Eq AttValue [ WFC: No External Entity References ] Attribute values cannot contain direct or indirect entity references to external entities. [ WFC: No < in Attribute Values ] The replacement text of any entity referred to directly or indirectly in an libxml-SAX.html#attributeattribute  value (other than "&lt;") must not contain a <. [ VC: Attribute Value Type ] The libxml-SAX.html#attributeattribute  must have been declared; the value must be of the type declared for it. [25] Eq ::= S? '=' S? With namespace: [NS 11] Attribute ::= QName Eq AttValue Also the case QName == xmlns:??? is handled independently as a namespace definition.
ctxt: an XML parser context value: a libxml-xmlstring.html#xmlCharxmlChar  ** used to store the value of the libxml-SAX.html#attributeattribute Returns: the libxml-SAX.html#attributeattribute  name, and the value in *value. Function: xmlParseAttributeListDecl
void	xmlParseAttributeListDecl	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt): parse the Attribute list def for an element [52] AttlistDecl ::= '<!ATTLIST' S Name AttDef* S? '>' [53] AttDef ::= S Name S AttType S DefaultDecl
ctxt: an XML parser context Function: xmlParseAttributeType
int	xmlParseAttributeType		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-tree.html#xmlEnumerationPtrxmlEnumerationPtr  * tree)parse the Attribute list def for an element [54] AttType ::= StringType | TokenizedType | EnumeratedType [55] StringType ::= 'CDATA' [56] TokenizedType ::= 'ID' | 'IDREF' | 'IDREFS' | 'ENTITY' | 'ENTITIES' | 'NMTOKEN' | 'NMTOKENS' Validity constraints for libxml-SAX.html#attributeattribute  values syntax are checked in xmlValidateAttributeValue() [ VC: ID ] Values of type ID must match the Name production. A name must not appear more than once in an XML document as a value of this type; i.e., ID values must uniquely identify the elements which bear them. [ VC: One ID per Element Type ] No element type may have more than one ID libxml-SAX.html#attributeattribute  specified. [ VC: ID Attribute Default ] An ID libxml-SAX.html#attributeattribute  must have a declared default of #IMPLIED or #REQUIRED. [ VC: IDREF ] Values of type IDREF must match the Name production, and values of type IDREFS must match Names; each IDREF Name must match the value of an ID libxml-SAX.html#attributeattribute  on some element in the XML document; i.e. IDREF values must match the value of some ID attribute. [ VC: Entity Name ] Values of type ENTITY must match the Name production, values of type ENTITIES must match Names; each Entity Name must match the name of an unparsed entity declared in the DTD. [ VC: Name Token ] Values of type NMTOKEN must match the Nmtoken production; values of type NMTOKENS must match Nmtokens.
ctxt: an XML parser context tree: the enumeration tree built while parsing Returns: the libxml-SAX.html#attributeattribute  type Function: xmlParseCDSect
void	xmlParseCDSect			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)Parse escaped pure raw content. [18] CDSect ::= CDStart CData CDEnd [19] CDStart ::= '<![CDATA[' [20] Data ::= (Char* - (Char* ']]>' Char*)) [21] CDEnd ::= ']]>'
ctxt: an XML parser context Function: xmlParseCharData
void	xmlParseCharData		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 int cdata)parse a CharData section. if we are within a CDATA section ']]>' marks an end of section. The right angle bracket (>) may be represented using the string "&gt;", and must, for compatibility, be escaped using "&gt;" or a character libxml-SAX.html#referencereference  when it appears in the string "]]>" in content, when that string is not marking the end of a CDATA section. [14] CharData ::= [^<&]* - ([^<&]* ']]>' [^<&]*)
ctxt: an XML parser context cdata: int indicating whether we are within a CDATA section Function: xmlParseCharRef
int	xmlParseCharRef			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse Reference declarations [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';' [ WFC: Legal Character ] Characters referred to using character references must match the production for Char.
ctxt: an XML parser context Returns: the value parsed (as an int), 0 in case of error Function: xmlParseComment
void	xmlParseComment			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)Skip an XML (SGML) libxml-SAX.html#commentcomment  <!-- .... --> The spec says that "For compatibility, the string "--" (double-hyphen) must not occur within comments. " [15] Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->'
ctxt: an XML parser context Function: xmlParseContent
void	xmlParseContent			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)Parse a content: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*
ctxt: an XML parser context Function: xmlParseDefaultDecl
int	xmlParseDefaultDecl		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-xmlstring.html#xmlCharxmlChar  ** value)Parse an libxml-SAX.html#attributeattribute  default declaration [60] DefaultDecl ::= '#REQUIRED' | '#IMPLIED' | (('#FIXED' S)? AttValue) [ VC: Required Attribute ] if the default declaration is the keyword #REQUIRED, then the libxml-SAX.html#attributeattribute  must be specified for all elements of the type in the attribute-list declaration. [ VC: Attribute Default Legal ] The declared default value must meet the lexical constraints of the declared libxml-SAX.html#attributeattribute  type c.f. xmlValidateAttributeDecl() [ VC: Fixed Attribute Default ] if an libxml-SAX.html#attributeattribute  has a default value declared with the #FIXED keyword, instances of that libxml-SAX.html#attributeattribute  must match the default value. [ WFC: No < in Attribute Values ] handled in xmlParseAttValue()
ctxt: an XML parser context value: Receive a possible fixed default value for the libxml-SAX.html#attributeattribute Returns: XML_ATTRIBUTE_NONE, XML_ATTRIBUTE_REQUIRED, libxml-tree.html#XML_ATTRIBUTE_IMPLIEDXML_ATTRIBUTE_IMPLIED  or XML_ATTRIBUTE_FIXED. Function: xmlParseDocTypeDecl
void	xmlParseDocTypeDecl		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse a DOCTYPE declaration [28] doctypedecl ::= '<!DOCTYPE' S Name (S ExternalID)? S? ('[' (markupdecl | PEReference | S)* ']' S?)? '>' [ VC: Root Element Type ] The Name in the document type declaration must match the element type of the root element.
ctxt: an XML parser context Function: xmlParseElement
void	xmlParseElement			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse an XML element, this is highly recursive [39] element ::= EmptyElemTag | STag content ETag [ WFC: Element Type Match ] The Name in an element's end-tag must match the element type in the start-tag.
ctxt: an XML parser context Function: xmlParseElementChildrenContentDecl
libxml-tree.html#xmlElementContentPtrxmlElementContentPtr 	xmlParseElementChildrenContentDecl	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 							 int inputchk)parse the declaration for a Mixed Element content The leading '(' and spaces have been skipped in libxml-parserInternals.html#xmlParseElementContentDeclxmlParseElementContentDecl  [47] children ::= (choice | seq) ('?' | '*' | '+')? [48] cp ::= (Name | choice | seq) ('?' | '*' | '+')? [49] choice ::= '(' S? cp ( S? '|' S? cp )* S? ')' [50] seq ::= '(' S? cp ( S? ',' S? cp )* S? ')' [ VC: Proper Group/PE Nesting ] applies to [49] and [50] TODO Parameter-entity replacement text must be properly nested with parenthesized groups. That is to say, if either of the opening or closing parentheses in a choice, seq, or Mixed construct is contained in the replacement text for a parameter entity, both must be contained in the same replacement text. For interoperability, if a parameter-entity libxml-SAX.html#referencereference  appears in a choice, seq, or Mixed construct, its replacement text should not be empty, and neither the first nor last non-blank character of the replacement text should be a connector (| or ,).
ctxt: an XML parser context inputchk: the input used for the current entity, needed for boundary checks Returns: the tree of libxml-tree.html#xmlElementContentPtrxmlElementContentPtr  describing the element hierarchy. Function: xmlParseElementContentDecl
int	xmlParseElementContentDecl	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 const libxml-xmlstring.html#xmlCharxmlChar  * name, 					 libxml-tree.html#xmlElementContentPtrxmlElementContentPtr  * result)parse the declaration for an Element content either Mixed or Children, the cases EMPTY and ANY are handled directly in libxml-parserInternals.html#xmlParseElementDeclxmlParseElementDecl  [46] contentspec ::= 'EMPTY' | 'ANY' | Mixed | children
ctxt: an XML parser context name: the name of the element being defined. result: the Element Content pointer will be stored here if any Returns: the type of element content XML_ELEMENT_TYPE_xxx Function: xmlParseElementDecl
int	xmlParseElementDecl		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse an Element declaration. [45] elementdecl ::= '<!ELEMENT' S Name S contentspec S? '>' [ VC: Unique Element Type Declaration ] No element type may be declared more than once
ctxt: an XML parser context Returns: the type of the element, or -1 in case of error Function: xmlParseElementMixedContentDecl
libxml-tree.html#xmlElementContentPtrxmlElementContentPtr 	xmlParseElementMixedContentDecl	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 							 int inputchk)parse the declaration for a Mixed Element content The leading '(' and spaces have been skipped in libxml-parserInternals.html#xmlParseElementContentDeclxmlParseElementContentDecl  [51] Mixed ::= '(' S? '#PCDATA' (S? '|' S? Name)* S? ')*' | '(' S? '#PCDATA' S? ')' [ VC: Proper Group/PE Nesting ] applies to [51] too (see [49]) [ VC: No Duplicate Types ] The same name must not appear more than once in a single mixed-content declaration.
ctxt: an XML parser context inputchk: the input used for the current entity, needed for boundary checks Returns: the list of the libxml-tree.html#xmlElementContentPtrxmlElementContentPtr  describing the element choices Function: xmlParseEncName
libxml-xmlstring.html#xmlCharxmlChar  *	xmlParseEncName		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse the XML encoding name [81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')*
ctxt: an XML parser context Returns: the encoding name value or NULL Function: xmlParseEncodingDecl
const libxml-xmlstring.html#xmlCharxmlChar  *	xmlParseEncodingDecl	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse the XML encoding declaration [80] EncodingDecl ::= S 'encoding' Eq ('"' EncName '"' | "'" EncName "'") this setups the conversion filters.
ctxt: an XML parser context Returns: the encoding value or NULL Function: xmlParseEndTag
void	xmlParseEndTag			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse an end of tag [42] ETag ::= '</' Name S? '>' With namespace [NS 9] ETag ::= '</' QName S? '>'
ctxt: an XML parser context Function: xmlParseEntityDecl
void	xmlParseEntityDecl		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse <!ENTITY declarations [70] EntityDecl ::= GEDecl | PEDecl [71] GEDecl ::= '<!ENTITY' S Name S EntityDef S? '>' [72] PEDecl ::= '<!ENTITY' S '%' S Name S PEDef S? '>' [73] EntityDef ::= EntityValue | (ExternalID NDataDecl?) [74] PEDef ::= EntityValue | ExternalID [76] NDataDecl ::= S 'NDATA' S Name [ VC: Notation Declared ] The Name must match the declared name of a notation.
ctxt: an XML parser context Function: xmlParseEntityRef
libxml-tree.html#xmlEntityPtrxmlEntityPtr 	xmlParseEntityRef	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse ENTITY references declarations [68] EntityRef ::= '&' Name ';' [ WFC: Entity Declared ] In a document without any DTD, a document with only an internal DTD subset which contains no parameter entity references, or a document with "standalone='yes'", the Name given in the entity libxml-SAX.html#referencereference  must match that in an entity declaration, except that well-formed documents need not declare any of the following entities: amp, lt, gt, apos, quot. The declaration of a parameter entity must precede any libxml-SAX.html#referencereference  to it. Similarly, the declaration of a general entity must precede any libxml-SAX.html#referencereference  to it which appears in a default value in an attribute-list declaration. Note that if entities are declared in the external subset or in external parameter entities, a non-validating processor is not obligated to read and process their declarations; for such documents, the rule that an entity must be declared is a well-formedness constraint only if standalone='yes'. [ WFC: Parsed Entity ] An entity libxml-SAX.html#referencereference  must not contain the name of an unparsed entity
ctxt: an XML parser context Returns: the libxml-tree.html#xmlEntityPtrxmlEntityPtr  if found, or NULL otherwise. Function: xmlParseEntityValue
libxml-xmlstring.html#xmlCharxmlChar  *	xmlParseEntityValue	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-xmlstring.html#xmlCharxmlChar  ** orig)parse a value for ENTITY declarations [9] EntityValue ::= '"' ([^%&"] | PEReference | Reference)* '"' | "'" ([^%&'] | PEReference | Reference)* "'"
ctxt: an XML parser context orig: if non-NULL store a copy of the original entity value Returns: the EntityValue parsed with libxml-SAX.html#referencereference  substituted or NULL Function: xmlParseEnumeratedType
int	xmlParseEnumeratedType		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-tree.html#xmlEnumerationPtrxmlEnumerationPtr  * tree)parse an Enumerated libxml-SAX.html#attributeattribute  type. [57] EnumeratedType ::= NotationType | Enumeration [58] NotationType ::= 'NOTATION' S '(' S? Name (S? '|' S? Name)* S? ')'
ctxt: an XML parser context tree: the enumeration tree built while parsing Returns: libxml-tree.html#XML_ATTRIBUTE_ENUMERATIONXML_ATTRIBUTE_ENUMERATION  or libxml-tree.html#XML_ATTRIBUTE_NOTATIONXML_ATTRIBUTE_NOTATION Function: xmlParseEnumerationType
libxml-tree.html#xmlEnumerationPtrxmlEnumerationPtr 	xmlParseEnumerationType	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse an Enumeration libxml-SAX.html#attributeattribute  type. [59] Enumeration ::= '(' S? Nmtoken (S? '|' S? Nmtoken)* S? ')' [ VC: Enumeration ] Values of this type must match one of the Nmtoken tokens in the declaration
ctxt: an XML parser context Returns: the enumeration libxml-SAX.html#attributeattribute  tree built while parsing Function: xmlParseExternalID
libxml-xmlstring.html#xmlCharxmlChar  *	xmlParseExternalID	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-xmlstring.html#xmlCharxmlChar  ** publicID, 					 int strict)Parse an External ID or a Public ID NOTE: Productions [75] and [83] interact badly since [75] can generate 'PUBLIC' S PubidLiteral S SystemLiteral [75] ExternalID ::= 'SYSTEM' S SystemLiteral | 'PUBLIC' S PubidLiteral S SystemLiteral [83] PublicID ::= 'PUBLIC' S PubidLiteral
ctxt: an XML parser context publicID: a xmlChar** receiving PubidLiteral strict: indicate whether we should restrict parsing to only production [75], see NOTE below Returns: the function returns SystemLiteral and in the second case publicID receives PubidLiteral, is strict is off it is possible to return NULL and have publicID set. Function: xmlParseExternalSubset
void	xmlParseExternalSubset		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 const libxml-xmlstring.html#xmlCharxmlChar  * ExternalID, 					 const libxml-xmlstring.html#xmlCharxmlChar  * SystemID)parse Markup declarations from an external subset [30] extSubset ::= textDecl? extSubsetDecl [31] extSubsetDecl ::= (markupdecl | conditionalSect | PEReference | S) *
ctxt: an XML parser context ExternalID: the external identifier SystemID: the system identifier (or URL) Function: xmlParseMarkupDecl
void	xmlParseMarkupDecl		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse Markup declarations [29] markupdecl ::= elementdecl | AttlistDecl | EntityDecl | NotationDecl | PI | Comment [ VC: Proper Declaration/PE Nesting ] Parameter-entity replacement text must be properly nested with markup declarations. That is to say, if either the first character or the last character of a markup declaration (markupdecl above) is contained in the replacement text for a parameter-entity reference, both must be contained in the same replacement text. [ WFC: PEs in Internal Subset ] In the internal DTD subset, parameter-entity references can occur only where markup declarations can occur, not within markup declarations. (This does not apply to references that occur in external parameter entities or to the external subset.)
ctxt: an XML parser context Function: xmlParseMisc
void	xmlParseMisc			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse an XML Misc* optional field. [27] Misc ::= Comment | PI | S
ctxt: an XML parser context Function: xmlParseName
const libxml-xmlstring.html#xmlCharxmlChar  *	xmlParseName		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse an XML name. [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender [5] Name ::= (Letter | '_' | ':') (NameChar)* [6] Names ::= Name (#x20 Name)*
ctxt: an XML parser context Returns: the Name parsed or NULL Function: xmlParseNamespace
void	xmlParseNamespace		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)xmlParseNamespace: parse specific PI '<?namespace ...' constructs. This is what the older xml-name Working Draft specified, a bunch of other stuff may still rely on it, so support is still here as if it was declared on the root of the Tree:-( TODO: remove from library To be removed at next drop of binary compatibility
ctxt: an XML parser context Function: xmlParseNmtoken
libxml-xmlstring.html#xmlCharxmlChar  *	xmlParseNmtoken		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse an XML Nmtoken. [7] Nmtoken ::= (NameChar)+ [8] Nmtokens ::= Nmtoken (#x20 Nmtoken)*
ctxt: an XML parser context Returns: the Nmtoken parsed or NULL Function: xmlParseNotationDecl
void	xmlParseNotationDecl		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse a notation declaration [82] NotationDecl ::= '<!NOTATION' S Name S (ExternalID | PublicID) S? '>' Hence there is actually 3 choices: 'PUBLIC' S PubidLiteral 'PUBLIC' S PubidLiteral S SystemLiteral and 'SYSTEM' S SystemLiteral See the NOTE on xmlParseExternalID().
ctxt: an XML parser context Function: xmlParseNotationType
libxml-tree.html#xmlEnumerationPtrxmlEnumerationPtr 	xmlParseNotationType	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse an Notation libxml-SAX.html#attributeattribute  type. Note: the leading 'NOTATION' S part has already being parsed... [58] NotationType ::= 'NOTATION' S '(' S? Name (S? '|' S? Name)* S? ')' [ VC: Notation Attributes ] Values of this type must match one of the notation names included in the declaration; all notation names in the declaration must be declared.
ctxt: an XML parser context Returns: the notation libxml-SAX.html#attributeattribute  tree built while parsing Function: xmlParsePEReference
void	xmlParsePEReference		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse PEReference declarations The entity content is handled directly by pushing it's content as a new input stream. [69] PEReference ::= '%' Name ';' [ WFC: No Recursion ] A parsed entity must not contain a recursive libxml-SAX.html#referencereference  to itself, either directly or indirectly. [ WFC: Entity Declared ] In a document without any DTD, a document with only an internal DTD subset which contains no parameter entity references, or a document with "standalone='yes'", ... ... The declaration of a parameter entity must precede any libxml-SAX.html#referencereference  to it... [ VC: Entity Declared ] In a document with an external subset or external parameter entities with "standalone='no'", ... ... The declaration of a parameter entity must precede any libxml-SAX.html#referencereference  to it... [ WFC: In DTD ] Parameter-entity references may only appear in the DTD. NOTE: misleading but this is handled.
ctxt: an XML parser context Function: xmlParsePI
void	xmlParsePI			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse an XML Processing Instruction. [16] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>' The processing is transfered to SAX once parsed.
ctxt: an XML parser context Function: xmlParsePITarget
const libxml-xmlstring.html#xmlCharxmlChar  *	xmlParsePITarget	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse the name of a PI [17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l'))
ctxt: an XML parser context Returns: the PITarget name or NULL Function: xmlParsePubidLiteral
libxml-xmlstring.html#xmlCharxmlChar  *	xmlParsePubidLiteral	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse an XML public literal [12] PubidLiteral ::= '"' PubidChar* '"' | "'" (PubidChar - "'")* "'"
ctxt: an XML parser context Returns: the PubidLiteral parsed or NULL. Function: xmlParseQuotedString
libxml-xmlstring.html#xmlCharxmlChar  *	xmlParseQuotedString	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)Parse and return a string between quotes or doublequotes TODO: Deprecated, to be removed at next drop of binary compatibility
ctxt: an XML parser context Returns: the string parser or NULL. Function: xmlParseReference
void	xmlParseReference		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse and handle entity references in content, depending on the SAX interface, this may end-up in a call to character() if this is a CharRef, a predefined entity, if there is no reference() callback. or if the parser was asked to switch to that mode. [67] Reference ::= EntityRef | CharRef
ctxt: an XML parser context Function: xmlParseSDDecl
int	xmlParseSDDecl			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse the XML standalone declaration [32] SDDecl ::= S 'standalone' Eq (("'" ('yes' | 'no') "'") | ('"' ('yes' | 'no')'"')) [ VC: Standalone Document Declaration ] TODO The standalone document declaration must have the value "no" if any external markup declarations contain declarations of: - attributes with default values, if elements to which these attributes apply appear in the document without specifications of values for these attributes, or - entities (other than amp, lt, gt, apos, quot), if references to those entities appear in the document, or - attributes with values subject to normalization, where the libxml-SAX.html#attributeattribute  appears in the document with a value which will change as a result of normalization, or - element types with element content, if white space occurs directly within any instance of those types.
ctxt: an XML parser context Returns: 1 if standalone, 0 otherwise Function: xmlParseStartTag
const libxml-xmlstring.html#xmlCharxmlChar  *	xmlParseStartTag	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse a start of tag either for rule element or EmptyElement. In both case we don't parse the tag closing chars. [40] STag ::= '<' Name (S Attribute)* S? '>' [ WFC: Unique Att Spec ] No libxml-SAX.html#attributeattribute  name may appear more than once in the same start-tag or empty-element tag. [44] EmptyElemTag ::= '<' Name (S Attribute)* S? '/>' [ WFC: Unique Att Spec ] No libxml-SAX.html#attributeattribute  name may appear more than once in the same start-tag or empty-element tag. With namespace: [NS 8] STag ::= '<' QName (S Attribute)* S? '>' [NS 10] EmptyElement ::= '<' QName (S Attribute)* S? '/>'
ctxt: an XML parser context Returns: the element name parsed Function: xmlParseSystemLiteral
libxml-xmlstring.html#xmlCharxmlChar  *	xmlParseSystemLiteral	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse an XML Literal [11] SystemLiteral ::= ('"' [^"]* '"') | ("'" [^']* "'")
ctxt: an XML parser context Returns: the SystemLiteral parsed or NULL Function: xmlParseTextDecl
void	xmlParseTextDecl		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse an XML declaration header for external entities [77] TextDecl ::= '<?xml' VersionInfo? EncodingDecl S? '?>' Question: Seems that EncodingDecl is mandatory ? Is that a typo ?
ctxt: an XML parser context Function: xmlParseVersionInfo
libxml-xmlstring.html#xmlCharxmlChar  *	xmlParseVersionInfo	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse the XML version. [24] VersionInfo ::= S 'version' Eq (' VersionNum ' | " VersionNum ") [25] Eq ::= S? '=' S?
ctxt: an XML parser context Returns: the version string, e.g. "1.0" Function: xmlParseVersionNum
libxml-xmlstring.html#xmlCharxmlChar  *	xmlParseVersionNum	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse the XML version value. [26] VersionNum ::= ([a-zA-Z0-9_.:] | '-')+
ctxt: an XML parser context Returns: the string giving the XML version number, or NULL Function: xmlParseXMLDecl
void	xmlParseXMLDecl			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)parse an XML declaration header [23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>'
ctxt: an XML parser context Function: xmlParserHandlePEReference
void	xmlParserHandlePEReference	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)[69] PEReference ::= '%' Name ';' [ WFC: No Recursion ] A parsed entity must not contain a recursive libxml-SAX.html#referencereference  to itself, either directly or indirectly. [ WFC: Entity Declared ] In a document without any DTD, a document with only an internal DTD subset which contains no parameter entity references, or a document with "standalone='yes'", ... ... The declaration of a parameter entity must precede any libxml-SAX.html#referencereference  to it... [ VC: Entity Declared ] In a document with an external subset or external parameter entities with "standalone='no'", ... ... The declaration of a parameter entity must precede any libxml-SAX.html#referencereference  to it... [ WFC: In DTD ] Parameter-entity references may only appear in the DTD. NOTE: misleading but this is handled. A PEReference may have been detected in the current input stream the handling is done accordingly to http://www.w3.org/TR/REC-xml#entproc i.e. - Included in literal in entity values - Included as Parameter Entity libxml-SAX.html#referencereference  within DTDs
ctxt: the parser context Function: xmlParserHandleReference
void	xmlParserHandleReference	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)TODO: Remove, now deprecated ... the test is done directly in the content parsing routines. [67] Reference ::= EntityRef | CharRef [68] EntityRef ::= '&' Name ';' [ WFC: Entity Declared ] the Name given in the entity libxml-SAX.html#referencereference  must match that in an entity declaration, except that well-formed documents need not declare any of the following entities: amp, lt, gt, apos, quot. [ WFC: Parsed Entity ] An entity libxml-SAX.html#referencereference  must not contain the name of an unparsed entity [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';' A PEReference may have been detected in the current input stream the handling is done accordingly to http://www.w3.org/TR/REC-xml#entproc
ctxt: the parser context Function: xmlParserInputShrink
void	xmlParserInputShrink		( libxml-tree.html#xmlParserInputPtrxmlParserInputPtr  in)This function removes used input for the parser.
in: an XML parser input Function: xmlPopInput
libxml-xmlstring.html#xmlCharxmlChar 	xmlPopInput			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)xmlPopInput: the current input pointed by ctxt->input came to an end pop it and return the next char.
ctxt: an XML parser context Returns: the current libxml-xmlstring.html#xmlCharxmlChar  in the parser context Function: xmlPushInput
void	xmlPushInput			( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-tree.html#xmlParserInputPtrxmlParserInputPtr  input)xmlPushInput: switch to a new input stream which is stacked on top of the previous one(s).
ctxt: an XML parser context input: an XML parser input fragment (entity, XML fragment ...). Function: xmlScanName
libxml-xmlstring.html#xmlCharxmlChar  *	xmlScanName		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)Trickery: parse an XML name but without consuming the input flow Needed for rollback cases. Used only when parsing entities references. TODO: seems deprecated now, only used in the default part of libxml-parserInternals.html#xmlParserHandleReferencexmlParserHandleReference  [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender [5] Name ::= (Letter | '_' | ':') (NameChar)* [6] Names ::= Name (S Name)*
ctxt: an XML parser context Returns: the Name parsed or NULL Function: xmlSetEntityReferenceFunc
void	xmlSetEntityReferenceFunc	( libxml-parserInternals.html#xmlEntityReferenceFuncxmlEntityReferenceFunc  func)Set the function to call call back when a xml libxml-SAX.html#referencereference  has been made
func: A valid function Function: xmlSkipBlankChars
int	xmlSkipBlankChars		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt)skip all blanks character found at that point in the input streams. It pops up finished entities in the process if allowable at that point.
ctxt: the XML parser context Returns: the number of space chars skipped Function: xmlSplitQName
libxml-xmlstring.html#xmlCharxmlChar  *	xmlSplitQName		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 const libxml-xmlstring.html#xmlCharxmlChar  * name, 					 libxml-xmlstring.html#xmlCharxmlChar  ** prefix)parse an UTF8 encoded XML qualified name string [NS 5] QName ::= (Prefix ':')? LocalPart [NS 6] Prefix ::= NCName [NS 7] LocalPart ::= NCName
ctxt: an XML parser context name: an XML parser context prefix: a libxml-xmlstring.html#xmlCharxmlChar  ** Returns: the local part, and prefix is updated to get the Prefix if any. Function: xmlStringCurrentChar
int	xmlStringCurrentChar		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 const libxml-xmlstring.html#xmlCharxmlChar  * cur, 					 int * len)The current char value, if using UTF-8 this may actually span multiple bytes in the input buffer.
ctxt: the XML parser context cur: pointer to the beginning of the char len: pointer to the length of the char read Returns: the current char value and its length Function: xmlStringDecodeEntities
libxml-xmlstring.html#xmlCharxmlChar  *	xmlStringDecodeEntities	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 const libxml-xmlstring.html#xmlCharxmlChar  * str, 					 int what, 					 libxml-xmlstring.html#xmlCharxmlChar  end, 					 libxml-xmlstring.html#xmlCharxmlChar  end2, 					 libxml-xmlstring.html#xmlCharxmlChar  end3)Takes a entity string content and process to do the adequate substitutions. [67] Reference ::= EntityRef | CharRef [69] PEReference ::= '%' Name ';'
ctxt: the parser context str: the input string what: combination of libxml-parserInternals.html#XML_SUBSTITUTE_REFXML_SUBSTITUTE_REF  and libxml-parserInternals.html#XML_SUBSTITUTE_PEREFXML_SUBSTITUTE_PEREF end: an end marker xmlChar, 0 if none end2: an end marker xmlChar, 0 if none end3: an end marker xmlChar, 0 if none Returns: A newly allocated string with the substitution done. The caller must deallocate it ! Function: xmlStringLenDecodeEntities
libxml-xmlstring.html#xmlCharxmlChar  *	xmlStringLenDecodeEntities	( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 						 const libxml-xmlstring.html#xmlCharxmlChar  * str, 						 int len, 						 int what, 						 libxml-xmlstring.html#xmlCharxmlChar  end, 						 libxml-xmlstring.html#xmlCharxmlChar  end2, 						 libxml-xmlstring.html#xmlCharxmlChar  end3)Takes a entity string content and process to do the adequate substitutions. [67] Reference ::= EntityRef | CharRef [69] PEReference ::= '%' Name ';'
ctxt: the parser context str: the input string len: the string length what: combination of libxml-parserInternals.html#XML_SUBSTITUTE_REFXML_SUBSTITUTE_REF  and libxml-parserInternals.html#XML_SUBSTITUTE_PEREFXML_SUBSTITUTE_PEREF end: an end marker xmlChar, 0 if none end2: an end marker xmlChar, 0 if none end3: an end marker xmlChar, 0 if none Returns: A newly allocated string with the substitution done. The caller must deallocate it ! Function: xmlSwitchEncoding
int	xmlSwitchEncoding		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-encoding.html#xmlCharEncodingxmlCharEncoding  enc)change the input functions when discovering the character encoding of a given entity.
ctxt: the parser context enc: the encoding value (number) Returns: 0 in case of success, -1 otherwise Function: xmlSwitchInputEncoding
int	xmlSwitchInputEncoding		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-tree.html#xmlParserInputPtrxmlParserInputPtr  input, 					 libxml-encoding.html#xmlCharEncodingHandlerPtrxmlCharEncodingHandlerPtr  handler)change the input functions when discovering the character encoding of a given entity.
ctxt: the parser context input: the input stream handler: the encoding handler Returns: 0 in case of success, -1 otherwise Function: xmlSwitchToEncoding
int	xmlSwitchToEncoding		( libxml-tree.html#xmlParserCtxtPtrxmlParserCtxtPtr  ctxt, 					 libxml-encoding.html#xmlCharEncodingHandlerPtrxmlCharEncodingHandlerPtr  handler)change the input functions when discovering the character encoding of a given entity.
ctxt: the parser context handler: the encoding handler Returns: 0 in case of success, -1 otherwise ../bugs.htmlDaniel Veillard 
