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 SAX2 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-SAX.html
Prev
libxml-SAX.html
SAX
index.html
Up
index.html
API documentation
../index.html
Home
../index.html
The XML C parser and toolkit of Gnome
libxml-c14n.html
c14n
libxml-c14n.html
Next
those are the default SAX2 interfaces used by the library when building DOM tree.
Table of Contents
void
#docbDefaultSAXHandlerInit
docbDefaultSAXHandlerInit
(void)
void
#htmlDefaultSAXHandlerInit
htmlDefaultSAXHandlerInit
(void)
void
#xmlDefaultSAXHandlerInit
xmlDefaultSAXHandlerInit
(void)
void
#xmlSAX2AttributeDecl
xmlSAX2AttributeDecl
(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)
void
#xmlSAX2CDataBlock
xmlSAX2CDataBlock
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
int len)
void
#xmlSAX2Characters
xmlSAX2Characters
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ch,
int len)
void
#xmlSAX2Comment
xmlSAX2Comment
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
void
#xmlSAX2ElementDecl
xmlSAX2ElementDecl
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
int type,
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
content)
void
#xmlSAX2EndDocument
xmlSAX2EndDocument
(void * ctx)
void
#xmlSAX2EndElement
xmlSAX2EndElement
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
void
#xmlSAX2EndElementNs
xmlSAX2EndElementNs
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* localname,
const
libxml-xmlstring.html#xmlChar
xmlChar
* prefix,
const
libxml-xmlstring.html#xmlChar
xmlChar
* URI)
void
#xmlSAX2EntityDecl
xmlSAX2EntityDecl
(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)
void
#xmlSAX2ExternalSubset
xmlSAX2ExternalSubset
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ExternalID,
const
libxml-xmlstring.html#xmlChar
xmlChar
* SystemID)
int
#xmlSAX2GetColumnNumber
xmlSAX2GetColumnNumber
(void * ctx)
libxml-tree.html#xmlEntityPtr
xmlEntityPtr
#xmlSAX2GetEntity
xmlSAX2GetEntity
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
int
#xmlSAX2GetLineNumber
xmlSAX2GetLineNumber
(void * ctx)
libxml-tree.html#xmlEntityPtr
xmlEntityPtr
#xmlSAX2GetParameterEntity
xmlSAX2GetParameterEntity
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
const
libxml-xmlstring.html#xmlChar
xmlChar
*
#xmlSAX2GetPublicId
xmlSAX2GetPublicId
(void * ctx)
const
libxml-xmlstring.html#xmlChar
xmlChar
*
#xmlSAX2GetSystemId
xmlSAX2GetSystemId
(void * ctx)
int
#xmlSAX2HasExternalSubset
xmlSAX2HasExternalSubset
(void * ctx)
int
#xmlSAX2HasInternalSubset
xmlSAX2HasInternalSubset
(void * ctx)
void
#xmlSAX2IgnorableWhitespace
xmlSAX2IgnorableWhitespace
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ch,
int len)
void
#xmlSAX2InitDefaultSAXHandler
xmlSAX2InitDefaultSAXHandler
(
libxml-tree.html#xmlSAXHandler
xmlSAXHandler
* hdlr,
int warning)
void
#xmlSAX2InitDocbDefaultSAXHandler
xmlSAX2InitDocbDefaultSAXHandler
(
libxml-tree.html#xmlSAXHandler
xmlSAXHandler
* hdlr)
void
#xmlSAX2InitHtmlDefaultSAXHandler
xmlSAX2InitHtmlDefaultSAXHandler
(
libxml-tree.html#xmlSAXHandler
xmlSAXHandler
* hdlr)
void
#xmlSAX2InternalSubset
xmlSAX2InternalSubset
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ExternalID,
const
libxml-xmlstring.html#xmlChar
xmlChar
* SystemID)
int
#xmlSAX2IsStandalone
xmlSAX2IsStandalone
(void * ctx)
void
#xmlSAX2NotationDecl
xmlSAX2NotationDecl
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* publicId,
const
libxml-xmlstring.html#xmlChar
xmlChar
* systemId)
void
#xmlSAX2ProcessingInstruction
xmlSAX2ProcessingInstruction
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* target,
const
libxml-xmlstring.html#xmlChar
xmlChar
* data)
void
#xmlSAX2Reference
xmlSAX2Reference
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
libxml-tree.html#xmlParserInputPtr
xmlParserInputPtr
#xmlSAX2ResolveEntity
xmlSAX2ResolveEntity
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* publicId,
const
libxml-xmlstring.html#xmlChar
xmlChar
* systemId)
void
#xmlSAX2SetDocumentLocator
xmlSAX2SetDocumentLocator
(void * ctx,
libxml-tree.html#xmlSAXLocatorPtr
xmlSAXLocatorPtr
loc)
void
#xmlSAX2StartDocument
xmlSAX2StartDocument
(void * ctx)
void
#xmlSAX2StartElement
xmlSAX2StartElement
(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* fullname,
const
libxml-xmlstring.html#xmlChar
xmlChar
** atts)
void
#xmlSAX2StartElementNs
xmlSAX2StartElementNs
(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)
void
#xmlSAX2UnparsedEntityDecl
xmlSAX2UnparsedEntityDecl
(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)
int
#xmlSAXDefaultVersion
xmlSAXDefaultVersion
(int version)
int
#xmlSAXVersion
xmlSAXVersion
(
libxml-tree.html#xmlSAXHandler
xmlSAXHandler
* hdlr,
int version)
Description
Function: docbDefaultSAXHandlerInit
void	docbDefaultSAXHandlerInit	(void)
Initialize the default SAX handler
Function: htmlDefaultSAXHandlerInit
void	htmlDefaultSAXHandlerInit	(void)
Initialize the default SAX handler
Function: xmlDefaultSAXHandlerInit
void	xmlDefaultSAXHandlerInit	(void)
Initialize the default SAX2 handler
Function: xmlSAX2AttributeDecl
void	xmlSAX2AttributeDecl		(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: xmlSAX2CDataBlock
void	xmlSAX2CDataBlock		(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: xmlSAX2Characters
void	xmlSAX2Characters		(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: xmlSAX2Comment
void	xmlSAX2Comment			(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
A
libxml-SAX2.html#xmlSAX2Comment
xmlSAX2Comment
has been parsed.
ctx
:
the user data (XML parser context)
value
:
the
libxml-SAX2.html#xmlSAX2Comment
xmlSAX2Comment
content
Function: xmlSAX2ElementDecl
void	xmlSAX2ElementDecl		(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: xmlSAX2EndDocument
void	xmlSAX2EndDocument		(void * ctx)
called when the document end has been detected.
ctx
:
the user data (XML parser context)
Function: xmlSAX2EndElement
void	xmlSAX2EndElement		(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: xmlSAX2EndElementNs
void	xmlSAX2EndElementNs		(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: xmlSAX2EntityDecl
void	xmlSAX2EntityDecl		(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: xmlSAX2ExternalSubset
void	xmlSAX2ExternalSubset		(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: xmlSAX2GetColumnNumber
int	xmlSAX2GetColumnNumber		(void * ctx)
Provide the column number of the current parsing point.
ctx
:
the user data (XML parser context)
Returns
:
an int
Function: xmlSAX2GetEntity
libxml-tree.html#xmlEntityPtr
xmlEntityPtr
xmlSAX2GetEntity	(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: xmlSAX2GetLineNumber
int	xmlSAX2GetLineNumber		(void * ctx)
Provide the line number of the current parsing point.
ctx
:
the user data (XML parser context)
Returns
:
an int
Function: xmlSAX2GetParameterEntity
libxml-tree.html#xmlEntityPtr
xmlEntityPtr
xmlSAX2GetParameterEntity	(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: xmlSAX2GetPublicId
const
libxml-xmlstring.html#xmlChar
xmlChar
*	xmlSAX2GetPublicId	(void * ctx)
Provides the public ID e.g. "-//SGMLSOURCE//DTD DEMO//EN"
ctx
:
the user data (XML parser context)
Returns
:
a
libxml-xmlstring.html#xmlChar
xmlChar
*
Function: xmlSAX2GetSystemId
const
libxml-xmlstring.html#xmlChar
xmlChar
*	xmlSAX2GetSystemId	(void * ctx)
Provides the system ID, basically URL or filename e.g. http://www.sgmlsource.com/dtds/memo.dtd
ctx
:
the user data (XML parser context)
Returns
:
a
libxml-xmlstring.html#xmlChar
xmlChar
*
Function: xmlSAX2HasExternalSubset
int	xmlSAX2HasExternalSubset	(void * ctx)
Does this document has an external subset
ctx
:
the user data (XML parser context)
Returns
:
1 if true
Function: xmlSAX2HasInternalSubset
int	xmlSAX2HasInternalSubset	(void * ctx)
Does this document has an internal subset
ctx
:
the user data (XML parser context)
Returns
:
1 if true
Function: xmlSAX2IgnorableWhitespace
void	xmlSAX2IgnorableWhitespace	(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
libxml-SAX2.html#xmlSAX2Characters
xmlSAX2Characters
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: xmlSAX2InitDefaultSAXHandler
void	xmlSAX2InitDefaultSAXHandler	(
libxml-tree.html#xmlSAXHandler
xmlSAXHandler
* hdlr,
int warning)
Initialize the default XML SAX2 handler
hdlr
:
the SAX handler
warning
:
flag if non-zero sets the handler warning procedure
Function: xmlSAX2InitDocbDefaultSAXHandler
void	xmlSAX2InitDocbDefaultSAXHandler	(
libxml-tree.html#xmlSAXHandler
xmlSAXHandler
* hdlr)
Initialize the default DocBook SAX2 handler
hdlr
:
the SAX handler
Function: xmlSAX2InitHtmlDefaultSAXHandler
void	xmlSAX2InitHtmlDefaultSAXHandler	(
libxml-tree.html#xmlSAXHandler
xmlSAXHandler
* hdlr)
Initialize the default HTML SAX2 handler
hdlr
:
the SAX handler
Function: xmlSAX2InternalSubset
void	xmlSAX2InternalSubset		(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: xmlSAX2IsStandalone
int	xmlSAX2IsStandalone		(void * ctx)
Is this document tagged standalone ?
ctx
:
the user data (XML parser context)
Returns
:
1 if true
Function: xmlSAX2NotationDecl
void	xmlSAX2NotationDecl		(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: xmlSAX2ProcessingInstruction
void	xmlSAX2ProcessingInstruction	(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: xmlSAX2Reference
void	xmlSAX2Reference		(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
called when an entity
libxml-SAX2.html#xmlSAX2Reference
xmlSAX2Reference
is detected.
ctx
:
the user data (XML parser context)
name
:
The entity name
Function: xmlSAX2ResolveEntity
libxml-tree.html#xmlParserInputPtr
xmlParserInputPtr
xmlSAX2ResolveEntity	(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* publicId,
const
libxml-xmlstring.html#xmlChar
xmlChar
* systemId)
The entity loader, to control the loading of external entities, the application can either: - override this xmlSAX2ResolveEntity() 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: xmlSAX2SetDocumentLocator
void	xmlSAX2SetDocumentLocator	(void * ctx,
libxml-tree.html#xmlSAXLocatorPtr
xmlSAXLocatorPtr
loc)
Receive the document locator at startup, actually
libxml-globals.html#xmlDefaultSAXLocator
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: xmlSAX2StartDocument
void	xmlSAX2StartDocument		(void * ctx)
called when the document start being processed.
ctx
:
the user data (XML parser context)
Function: xmlSAX2StartElement
void	xmlSAX2StartElement		(void * ctx,
const
libxml-xmlstring.html#xmlChar
xmlChar
* fullname,
const
libxml-xmlstring.html#xmlChar
xmlChar
** atts)
called when an opening tag has been processed.
ctx
:
the user data (XML parser context)
fullname
:
The element name, including namespace prefix
atts
:
An array of name/value attributes pairs, NULL terminated
Function: xmlSAX2StartElementNs
void	xmlSAX2StartElementNs		(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.
attributes
:
pointer to the array of (localname/prefix/URI/value/end)
libxml-SAX.html#attribute
attribute
values.
Function: xmlSAX2UnparsedEntityDecl
void	xmlSAX2UnparsedEntityDecl	(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: xmlSAXDefaultVersion
int	xmlSAXDefaultVersion		(int version)
Set the default version of SAX used globally by the library. By default, during initialization the default is set to 2. Note that it is generally a better coding style to use xmlSAXVersion() to set up the version explicitly for a given parsing context.
version
:
the version, 1 or 2
Returns
:
the previous value in case of success and -1 in case of error.
Function: xmlSAXVersion
int	xmlSAXVersion			(
libxml-tree.html#xmlSAXHandler
xmlSAXHandler
* hdlr,
int version)
Initialize the default XML SAX handler according to the version
hdlr
:
the SAX handler
version
:
the version, 1 or 2
Returns
:
0 in case of success and -1 in case of error.
../bugs.html
Daniel Veillard
