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 valid 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-uri.html
Prev
libxml-uri.html
uri
index.html
Up
index.html
API documentation
../index.html
Home
../index.html
The XML C parser and toolkit of Gnome
libxml-xinclude.html
xinclude
libxml-xinclude.html
Next
API for the DTD handling and the validity checking
Table of Contents
#define
#XML_CTXT_FINISH_DTD_0
XML_CTXT_FINISH_DTD_0
#define
#XML_CTXT_FINISH_DTD_1
XML_CTXT_FINISH_DTD_1
Structure
#xmlAttributeTable
xmlAttributeTable
struct _xmlHashTable
The content of this structure is not made public by the API.
Typedef
libxml-valid.html#xmlAttributeTable
xmlAttributeTable
*
xmlAttributeTablePtr
Structure
#xmlElementTable
xmlElementTable
struct _xmlHashTable
The content of this structure is not made public by the API.
Typedef
libxml-valid.html#xmlElementTable
xmlElementTable
*
xmlElementTablePtr
Structure
#xmlIDTable
xmlIDTable
struct _xmlHashTable
The content of this structure is not made public by the API.
Typedef
libxml-valid.html#xmlIDTable
xmlIDTable
*
xmlIDTablePtr
Structure
#xmlNotationTable
xmlNotationTable
struct _xmlHashTable
The content of this structure is not made public by the API.
Typedef
libxml-valid.html#xmlNotationTable
xmlNotationTable
*
xmlNotationTablePtr
Structure
#xmlRefTable
xmlRefTable
struct _xmlHashTable
The content of this structure is not made public by the API.
Typedef
libxml-valid.html#xmlRefTable
xmlRefTable
*
xmlRefTablePtr
Structure
#xmlValidCtxt
xmlValidCtxt
struct _xmlValidCtxt
Typedef
libxml-valid.html#xmlValidCtxt
xmlValidCtxt
*
xmlValidCtxtPtr
Structure
#xmlValidState
xmlValidState
struct _xmlValidState
The content of this structure is not made public by the API.
Typedef
libxml-valid.html#xmlValidState
xmlValidState
*
xmlValidStatePtr
libxml-tree.html#xmlAttributePtr
xmlAttributePtr
#xmlAddAttributeDecl
xmlAddAttributeDecl
(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
dtd,
const
libxml-xmlstring.html#xmlChar
xmlChar
* elem,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ns,
libxml-tree.html#xmlAttributeType
xmlAttributeType
type,
libxml-tree.html#xmlAttributeDefault
xmlAttributeDefault
def,
const
libxml-xmlstring.html#xmlChar
xmlChar
* defaultValue,
libxml-tree.html#xmlEnumerationPtr
xmlEnumerationPtr
tree)
libxml-tree.html#xmlElementPtr
xmlElementPtr
#xmlAddElementDecl
xmlAddElementDecl
(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
dtd,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
libxml-tree.html#xmlElementTypeVal
xmlElementTypeVal
type,
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
content)
libxml-tree.html#xmlIDPtr
xmlIDPtr
#xmlAddID
xmlAddID
(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
attr)
libxml-tree.html#xmlNotationPtr
xmlNotationPtr
#xmlAddNotationDecl
xmlAddNotationDecl
(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
dtd,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* PublicID,
const
libxml-xmlstring.html#xmlChar
xmlChar
* SystemID)
libxml-tree.html#xmlRefPtr
xmlRefPtr
#xmlAddRef
xmlAddRef
(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
attr)
libxml-valid.html#xmlAttributeTablePtr
xmlAttributeTablePtr
#xmlCopyAttributeTable
xmlCopyAttributeTable
(
libxml-valid.html#xmlAttributeTablePtr
xmlAttributeTablePtr
table)
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
#xmlCopyDocElementContent
xmlCopyDocElementContent
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
cur)
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
#xmlCopyElementContent
xmlCopyElementContent
(
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
cur)
libxml-valid.html#xmlElementTablePtr
xmlElementTablePtr
#xmlCopyElementTable
xmlCopyElementTable
(
libxml-valid.html#xmlElementTablePtr
xmlElementTablePtr
table)
libxml-tree.html#xmlEnumerationPtr
xmlEnumerationPtr
#xmlCopyEnumeration
xmlCopyEnumeration
(
libxml-tree.html#xmlEnumerationPtr
xmlEnumerationPtr
cur)
libxml-valid.html#xmlNotationTablePtr
xmlNotationTablePtr
#xmlCopyNotationTable
xmlCopyNotationTable
(
libxml-valid.html#xmlNotationTablePtr
xmlNotationTablePtr
table)
libxml-tree.html#xmlEnumerationPtr
xmlEnumerationPtr
#xmlCreateEnumeration
xmlCreateEnumeration
(const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
void
#xmlDumpAttributeDecl
xmlDumpAttributeDecl
(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
libxml-tree.html#xmlAttributePtr
xmlAttributePtr
attr)
void
#xmlDumpAttributeTable
xmlDumpAttributeTable
(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
libxml-valid.html#xmlAttributeTablePtr
xmlAttributeTablePtr
table)
void
#xmlDumpElementDecl
xmlDumpElementDecl
(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
libxml-tree.html#xmlElementPtr
xmlElementPtr
elem)
void
#xmlDumpElementTable
xmlDumpElementTable
(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
libxml-valid.html#xmlElementTablePtr
xmlElementTablePtr
table)
void
#xmlDumpNotationDecl
xmlDumpNotationDecl
(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
libxml-tree.html#xmlNotationPtr
xmlNotationPtr
nota)
void
#xmlDumpNotationTable
xmlDumpNotationTable
(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
libxml-valid.html#xmlNotationTablePtr
xmlNotationTablePtr
table)
void
#xmlFreeAttributeTable
xmlFreeAttributeTable
(
libxml-valid.html#xmlAttributeTablePtr
xmlAttributeTablePtr
table)
void
#xmlFreeDocElementContent
xmlFreeDocElementContent
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
cur)
void
#xmlFreeElementContent
xmlFreeElementContent
(
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
cur)
void
#xmlFreeElementTable
xmlFreeElementTable
(
libxml-valid.html#xmlElementTablePtr
xmlElementTablePtr
table)
void
#xmlFreeEnumeration
xmlFreeEnumeration
(
libxml-tree.html#xmlEnumerationPtr
xmlEnumerationPtr
cur)
void
#xmlFreeIDTable
xmlFreeIDTable
(
libxml-valid.html#xmlIDTablePtr
xmlIDTablePtr
table)
void
#xmlFreeNotationTable
xmlFreeNotationTable
(
libxml-valid.html#xmlNotationTablePtr
xmlNotationTablePtr
table)
void
#xmlFreeRefTable
xmlFreeRefTable
(
libxml-valid.html#xmlRefTablePtr
xmlRefTablePtr
table)
void
#xmlFreeValidCtxt
xmlFreeValidCtxt
(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
cur)
libxml-tree.html#xmlAttributePtr
xmlAttributePtr
#xmlGetDtdAttrDesc
xmlGetDtdAttrDesc
(
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
dtd,
const
libxml-xmlstring.html#xmlChar
xmlChar
* elem,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
libxml-tree.html#xmlElementPtr
xmlElementPtr
#xmlGetDtdElementDesc
xmlGetDtdElementDesc
(
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
dtd,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
libxml-tree.html#xmlNotationPtr
xmlNotationPtr
#xmlGetDtdNotationDesc
xmlGetDtdNotationDesc
(
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
dtd,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
libxml-tree.html#xmlAttributePtr
xmlAttributePtr
#xmlGetDtdQAttrDesc
xmlGetDtdQAttrDesc
(
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
dtd,
const
libxml-xmlstring.html#xmlChar
xmlChar
* elem,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* prefix)
libxml-tree.html#xmlElementPtr
xmlElementPtr
#xmlGetDtdQElementDesc
xmlGetDtdQElementDesc
(
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
dtd,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* prefix)
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
#xmlGetID
xmlGetID
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ID)
libxml-list.html#xmlListPtr
xmlListPtr
#xmlGetRefs
xmlGetRefs
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ID)
int
#xmlIsID
xmlIsID
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem,
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
attr)
int
#xmlIsMixedElement
xmlIsMixedElement
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
int
#xmlIsRef
xmlIsRef
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem,
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
attr)
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
#xmlNewDocElementContent
xmlNewDocElementContent
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
libxml-tree.html#xmlElementContentType
xmlElementContentType
type)
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
#xmlNewElementContent
xmlNewElementContent
(const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
libxml-tree.html#xmlElementContentType
xmlElementContentType
type)
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
#xmlNewValidCtxt
xmlNewValidCtxt
(void)
int
#xmlRemoveID
xmlRemoveID
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
attr)
int
#xmlRemoveRef
xmlRemoveRef
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
attr)
void
#xmlSnprintfElementContent
xmlSnprintfElementContent
(char * buf,
int size,
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
content,
int englob)
void
#xmlSprintfElementContent
xmlSprintfElementContent
(char * buf,
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
content,
int englob)
int
#xmlValidBuildContentModel
xmlValidBuildContentModel
(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlElementPtr
xmlElementPtr
elem)
libxml-xmlstring.html#xmlChar
xmlChar
*
#xmlValidCtxtNormalizeAttributeValue
xmlValidCtxtNormalizeAttributeValue
(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
int
#xmlValidGetPotentialChildren
xmlValidGetPotentialChildren
(
libxml-tree.html#xmlElementContent
xmlElementContent
* ctree,
const
libxml-xmlstring.html#xmlChar
xmlChar
** list,
int * len,
int max)
int
#xmlValidGetValidElements
xmlValidGetValidElements
(
libxml-tree.html#xmlNode
xmlNode
* prev,
libxml-tree.html#xmlNode
xmlNode
* next,
const
libxml-xmlstring.html#xmlChar
xmlChar
** names,
int max)
libxml-xmlstring.html#xmlChar
xmlChar
*
#xmlValidNormalizeAttributeValue
xmlValidNormalizeAttributeValue
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
int
#xmlValidateAttributeDecl
xmlValidateAttributeDecl
(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlAttributePtr
xmlAttributePtr
attr)
int
#xmlValidateAttributeValue
xmlValidateAttributeValue
(
libxml-tree.html#xmlAttributeType
xmlAttributeType
type,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
int
#xmlValidateDocument
xmlValidateDocument
(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc)
int
#xmlValidateDocumentFinal
xmlValidateDocumentFinal
(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc)
int
#xmlValidateDtd
xmlValidateDtd
(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
dtd)
int
#xmlValidateDtdFinal
xmlValidateDtdFinal
(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc)
int
#xmlValidateElement
xmlValidateElement
(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem)
int
#xmlValidateElementDecl
xmlValidateElementDecl
(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlElementPtr
xmlElementPtr
elem)
int
#xmlValidateNameValue
xmlValidateNameValue
(const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
int
#xmlValidateNamesValue
xmlValidateNamesValue
(const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
int
#xmlValidateNmtokenValue
xmlValidateNmtokenValue
(const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
int
#xmlValidateNmtokensValue
xmlValidateNmtokensValue
(const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
int
#xmlValidateNotationDecl
xmlValidateNotationDecl
(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNotationPtr
xmlNotationPtr
nota)
int
#xmlValidateNotationUse
xmlValidateNotationUse
(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* notationName)
int
#xmlValidateOneAttribute
xmlValidateOneAttribute
(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem,
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
attr,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
int
#xmlValidateOneElement
xmlValidateOneElement
(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem)
int
#xmlValidateOneNamespace
xmlValidateOneNamespace
(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem,
const
libxml-xmlstring.html#xmlChar
xmlChar
* prefix,
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
int
#xmlValidatePopElement
xmlValidatePopElement
(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem,
const
libxml-xmlstring.html#xmlChar
xmlChar
* qname)
int
#xmlValidatePushCData
xmlValidatePushCData
(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
const
libxml-xmlstring.html#xmlChar
xmlChar
* data,
int len)
int
#xmlValidatePushElement
xmlValidatePushElement
(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem,
const
libxml-xmlstring.html#xmlChar
xmlChar
* qname)
int
#xmlValidateRoot
xmlValidateRoot
(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc)
Function type:
#xmlValidityErrorFunc
xmlValidityErrorFunc
void
#xmlValidityErrorFunc
xmlValidityErrorFunc
(void * ctx,
const char * msg,
... ...)
Function type:
#xmlValidityWarningFunc
xmlValidityWarningFunc
void
#xmlValidityWarningFunc
xmlValidityWarningFunc
(void * ctx,
const char * msg,
... ...)
Description
Macro: XML_CTXT_FINISH_DTD_0
#define XML_CTXT_FINISH_DTD_0
Special value for finishDtd field when embedded in an
libxml-tree.html#xmlParserCtxt
xmlParserCtxt
Macro: XML_CTXT_FINISH_DTD_1
#define XML_CTXT_FINISH_DTD_1
Special value for finishDtd field when embedded in an
libxml-tree.html#xmlParserCtxt
xmlParserCtxt
Structure xmlAttributeTable
Structure xmlAttributeTable
struct _xmlHashTable {
The content of this structure is not made public by the API.
}
Structure xmlElementTable
Structure xmlElementTable
struct _xmlHashTable {
The content of this structure is not made public by the API.
}
Structure xmlIDTable
Structure xmlIDTable
struct _xmlHashTable {
The content of this structure is not made public by the API.
}
Structure xmlNotationTable
Structure xmlNotationTable
struct _xmlHashTable {
The content of this structure is not made public by the API.
}
Structure xmlRefTable
Structure xmlRefTable
struct _xmlHashTable {
The content of this structure is not made public by the API.
}
Structure xmlValidCtxt
Structure xmlValidCtxt
struct _xmlValidCtxt {
void *	userData	: user specific data block
libxml-valid.html#xmlValidityErrorFunc
xmlValidityErrorFunc
error	: the callback in case of errors
libxml-valid.html#xmlValidityWarningFunc
xmlValidityWarningFunc
warning	: the callback in case of warning Node an
libxml-tree.html#xmlNodePtr
xmlNodePtr
node	: Current parsed Node
int	nodeNr	: Depth of the parsing stack
int	nodeMax	: Max depth of the parsing stack
libxml-tree.html#xmlNodePtr
xmlNodePtr
*	nodeTab	: array of nodes
unsigned int	finishDtd	: finished validating the Dtd ?
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc	: the document
int	valid	: temporary validity check result state s
libxml-valid.html#xmlValidState
xmlValidState
*	vstate	: current state
int	vstateNr	: Depth of the validation stack
int	vstateMax	: Max depth of the validation stack
libxml-valid.html#xmlValidState
xmlValidState
*	vstateTab	: array of validation states
libxml-xmlautomata.html#xmlAutomataPtr
xmlAutomataPtr
am	: the automata
libxml-xmlautomata.html#xmlAutomataStatePtr
xmlAutomataStatePtr
state	: used to build the automata
void *	am
void *	state
}
Structure xmlValidState
Structure xmlValidState
struct _xmlValidState {
The content of this structure is not made public by the API.
}
Function: xmlAddAttributeDecl
libxml-tree.html#xmlAttributePtr
xmlAttributePtr
xmlAddAttributeDecl	(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
dtd,
const
libxml-xmlstring.html#xmlChar
xmlChar
* elem,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ns,
libxml-tree.html#xmlAttributeType
xmlAttributeType
type,
libxml-tree.html#xmlAttributeDefault
xmlAttributeDefault
def,
const
libxml-xmlstring.html#xmlChar
xmlChar
* defaultValue,
libxml-tree.html#xmlEnumerationPtr
xmlEnumerationPtr
tree)
Register a new
libxml-SAX.html#attribute
attribute
declaration Note that @tree becomes the ownership of the DTD
ctxt
:
the validation context
dtd
:
pointer to the DTD
elem
:
the element name
name
:
the
libxml-SAX.html#attribute
attribute
name
ns
:
the
libxml-SAX.html#attribute
attribute
namespace prefix
type
:
the
libxml-SAX.html#attribute
attribute
type
def
:
the
libxml-SAX.html#attribute
attribute
default type
defaultValue
:
the
libxml-SAX.html#attribute
attribute
default value
tree
:
if it's an enumeration, the associated list
Returns
:
NULL if not new, otherwise the
libxml-SAX.html#attribute
attribute
decl
Function: xmlAddElementDecl
libxml-tree.html#xmlElementPtr
xmlElementPtr
xmlAddElementDecl	(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
dtd,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
libxml-tree.html#xmlElementTypeVal
xmlElementTypeVal
type,
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
content)
Register a new element declaration
ctxt
:
the validation context
dtd
:
pointer to the DTD
name
:
the entity name
type
:
the element type
content
:
the element content tree or NULL
Returns
:
NULL if not, otherwise the entity
Function: xmlAddID
libxml-tree.html#xmlIDPtr
xmlIDPtr
xmlAddID		(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
attr)
Register a new id declaration
ctxt
:
the validation context
doc
:
pointer to the document
value
:
the value name
attr
:
the
libxml-SAX.html#attribute
attribute
holding the ID
Returns
:
NULL if not, otherwise the new
libxml-tree.html#xmlIDPtr
xmlIDPtr
Function: xmlAddNotationDecl
libxml-tree.html#xmlNotationPtr
xmlNotationPtr
xmlAddNotationDecl	(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
dtd,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* PublicID,
const
libxml-xmlstring.html#xmlChar
xmlChar
* SystemID)
Register a new notation declaration
ctxt
:
the validation context
dtd
:
pointer to the DTD
name
:
the entity name
PublicID
:
the public identifier or NULL
SystemID
:
the system identifier or NULL
Returns
:
NULL if not, otherwise the entity
Function: xmlAddRef
libxml-tree.html#xmlRefPtr
xmlRefPtr
xmlAddRef		(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value,
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
attr)
Register a new ref declaration
ctxt
:
the validation context
doc
:
pointer to the document
value
:
the value name
attr
:
the
libxml-SAX.html#attribute
attribute
holding the Ref
Returns
:
NULL if not, otherwise the new
libxml-tree.html#xmlRefPtr
xmlRefPtr
Function: xmlCopyAttributeTable
libxml-valid.html#xmlAttributeTablePtr
xmlAttributeTablePtr
xmlCopyAttributeTable	(
libxml-valid.html#xmlAttributeTablePtr
xmlAttributeTablePtr
table)
Build a copy of an
libxml-SAX.html#attribute
attribute
table.
table
:
An
libxml-SAX.html#attribute
attribute
table
Returns
:
the new
libxml-valid.html#xmlAttributeTablePtr
xmlAttributeTablePtr
or NULL in case of error.
Function: xmlCopyDocElementContent
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
xmlCopyDocElementContent	(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
cur)
Build a copy of an element content description.
doc
:
the document owning the element declaration
cur
:
An element content pointer.
Returns
:
the new
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
or NULL in case of error.
Function: xmlCopyElementContent
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
xmlCopyElementContent	(
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
cur)
Build a copy of an element content description. Deprecated, use
libxml-valid.html#xmlCopyDocElementContent
xmlCopyDocElementContent
instead
cur
:
An element content pointer.
Returns
:
the new
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
or NULL in case of error.
Function: xmlCopyElementTable
libxml-valid.html#xmlElementTablePtr
xmlElementTablePtr
xmlCopyElementTable	(
libxml-valid.html#xmlElementTablePtr
xmlElementTablePtr
table)
Build a copy of an element table.
table
:
An element table
Returns
:
the new
libxml-valid.html#xmlElementTablePtr
xmlElementTablePtr
or NULL in case of error.
Function: xmlCopyEnumeration
libxml-tree.html#xmlEnumerationPtr
xmlEnumerationPtr
xmlCopyEnumeration	(
libxml-tree.html#xmlEnumerationPtr
xmlEnumerationPtr
cur)
Copy an enumeration
libxml-SAX.html#attribute
attribute
node (recursive).
cur
:
the tree to copy.
Returns
:
the
libxml-tree.html#xmlEnumerationPtr
xmlEnumerationPtr
just created or NULL in case of error.
Function: xmlCopyNotationTable
libxml-valid.html#xmlNotationTablePtr
xmlNotationTablePtr
xmlCopyNotationTable	(
libxml-valid.html#xmlNotationTablePtr
xmlNotationTablePtr
table)
Build a copy of a notation table.
table
:
A notation table
Returns
:
the new
libxml-valid.html#xmlNotationTablePtr
xmlNotationTablePtr
or NULL in case of error.
Function: xmlCreateEnumeration
libxml-tree.html#xmlEnumerationPtr
xmlEnumerationPtr
xmlCreateEnumeration	(const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
create and initialize an enumeration
libxml-SAX.html#attribute
attribute
node.
name
:
the enumeration name or NULL
Returns
:
the
libxml-tree.html#xmlEnumerationPtr
xmlEnumerationPtr
just created or NULL in case of error.
Function: xmlDumpAttributeDecl
void	xmlDumpAttributeDecl		(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
libxml-tree.html#xmlAttributePtr
xmlAttributePtr
attr)
This will dump the content of the
libxml-SAX.html#attribute
attribute
declaration as an XML DTD definition
buf
:
the XML buffer output
attr
:
An
libxml-SAX.html#attribute
attribute
declaration
Function: xmlDumpAttributeTable
void	xmlDumpAttributeTable		(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
libxml-valid.html#xmlAttributeTablePtr
xmlAttributeTablePtr
table)
This will dump the content of the
libxml-SAX.html#attribute
attribute
table as an XML DTD definition
buf
:
the XML buffer output
table
:
An
libxml-SAX.html#attribute
attribute
table
Function: xmlDumpElementDecl
void	xmlDumpElementDecl		(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
libxml-tree.html#xmlElementPtr
xmlElementPtr
elem)
This will dump the content of the element declaration as an XML DTD definition
buf
:
the XML buffer output
elem
:
An element table
Function: xmlDumpElementTable
void	xmlDumpElementTable		(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
libxml-valid.html#xmlElementTablePtr
xmlElementTablePtr
table)
This will dump the content of the element table as an XML DTD definition
buf
:
the XML buffer output
table
:
An element table
Function: xmlDumpNotationDecl
void	xmlDumpNotationDecl		(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
libxml-tree.html#xmlNotationPtr
xmlNotationPtr
nota)
This will dump the content the notation declaration as an XML DTD definition
buf
:
the XML buffer output
nota
:
A notation declaration
Function: xmlDumpNotationTable
void	xmlDumpNotationTable		(
libxml-tree.html#xmlBufferPtr
xmlBufferPtr
buf,
libxml-valid.html#xmlNotationTablePtr
xmlNotationTablePtr
table)
This will dump the content of the notation table as an XML DTD definition
buf
:
the XML buffer output
table
:
A notation table
Function: xmlFreeAttributeTable
void	xmlFreeAttributeTable		(
libxml-valid.html#xmlAttributeTablePtr
xmlAttributeTablePtr
table)
Deallocate the memory used by an entities hash table.
table
:
An
libxml-SAX.html#attribute
attribute
table
Function: xmlFreeDocElementContent
void	xmlFreeDocElementContent	(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
cur)
Free an element content structure. The whole subtree is removed.
doc
:
the document owning the element declaration
cur
:
the element content tree to free
Function: xmlFreeElementContent
void	xmlFreeElementContent		(
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
cur)
Free an element content structure. The whole subtree is removed. Deprecated, use
libxml-valid.html#xmlFreeDocElementContent
xmlFreeDocElementContent
instead
cur
:
the element content tree to free
Function: xmlFreeElementTable
void	xmlFreeElementTable		(
libxml-valid.html#xmlElementTablePtr
xmlElementTablePtr
table)
Deallocate the memory used by an element hash table.
table
:
An element table
Function: xmlFreeEnumeration
void	xmlFreeEnumeration		(
libxml-tree.html#xmlEnumerationPtr
xmlEnumerationPtr
cur)
free an enumeration
libxml-SAX.html#attribute
attribute
node (recursive).
cur
:
the tree to free.
Function: xmlFreeIDTable
void	xmlFreeIDTable			(
libxml-valid.html#xmlIDTablePtr
xmlIDTablePtr
table)
Deallocate the memory used by an ID hash table.
table
:
An id table
Function: xmlFreeNotationTable
void	xmlFreeNotationTable		(
libxml-valid.html#xmlNotationTablePtr
xmlNotationTablePtr
table)
Deallocate the memory used by an entities hash table.
table
:
An notation table
Function: xmlFreeRefTable
void	xmlFreeRefTable			(
libxml-valid.html#xmlRefTablePtr
xmlRefTablePtr
table)
Deallocate the memory used by an Ref hash table.
table
:
An ref table
Function: xmlFreeValidCtxt
void	xmlFreeValidCtxt		(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
cur)
Free a validation context structure.
cur
:
the validation context to free
Function: xmlGetDtdAttrDesc
libxml-tree.html#xmlAttributePtr
xmlAttributePtr
xmlGetDtdAttrDesc	(
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
dtd,
const
libxml-xmlstring.html#xmlChar
xmlChar
* elem,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
Search the DTD for the description of this
libxml-SAX.html#attribute
attribute
on this element.
dtd
:
a pointer to the DtD to search
elem
:
the element name
name
:
the
libxml-SAX.html#attribute
attribute
name
Returns
:
the
libxml-tree.html#xmlAttributePtr
xmlAttributePtr
if found or NULL
Function: xmlGetDtdElementDesc
libxml-tree.html#xmlElementPtr
xmlElementPtr
xmlGetDtdElementDesc	(
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
dtd,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
Search the DTD for the description of this element
dtd
:
a pointer to the DtD to search
name
:
the element name
Returns
:
the
libxml-tree.html#xmlElementPtr
xmlElementPtr
if found or NULL
Function: xmlGetDtdNotationDesc
libxml-tree.html#xmlNotationPtr
xmlNotationPtr
xmlGetDtdNotationDesc	(
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
dtd,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
Search the DTD for the description of this notation
dtd
:
a pointer to the DtD to search
name
:
the notation name
Returns
:
the
libxml-tree.html#xmlNotationPtr
xmlNotationPtr
if found or NULL
Function: xmlGetDtdQAttrDesc
libxml-tree.html#xmlAttributePtr
xmlAttributePtr
xmlGetDtdQAttrDesc	(
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
dtd,
const
libxml-xmlstring.html#xmlChar
xmlChar
* elem,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* prefix)
Search the DTD for the description of this qualified
libxml-SAX.html#attribute
attribute
on this element.
dtd
:
a pointer to the DtD to search
elem
:
the element name
name
:
the
libxml-SAX.html#attribute
attribute
name
prefix
:
the
libxml-SAX.html#attribute
attribute
namespace prefix
Returns
:
the
libxml-tree.html#xmlAttributePtr
xmlAttributePtr
if found or NULL
Function: xmlGetDtdQElementDesc
libxml-tree.html#xmlElementPtr
xmlElementPtr
xmlGetDtdQElementDesc	(
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
dtd,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* prefix)
Search the DTD for the description of this element
dtd
:
a pointer to the DtD to search
name
:
the element name
prefix
:
the element namespace prefix
Returns
:
the
libxml-tree.html#xmlElementPtr
xmlElementPtr
if found or NULL
Function: xmlGetID
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
xmlGetID		(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ID)
Search the
libxml-SAX.html#attribute
attribute
declaring the given ID
doc
:
pointer to the document
ID
:
the ID value
Returns
:
NULL if not found, otherwise the
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
defining the ID
Function: xmlGetRefs
libxml-list.html#xmlListPtr
xmlListPtr
xmlGetRefs		(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* ID)
Find the set of references for the supplied ID.
doc
:
pointer to the document
ID
:
the ID value
Returns
:
NULL if not found, otherwise node set for the ID.
Function: xmlIsID
int	xmlIsID			(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem,
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
attr)
Determine whether an
libxml-SAX.html#attribute
attribute
is of type ID. In case we have DTD(s) then this is done if DTD loading has been requested. In the case of HTML documents parsed with the HTML parser, then ID detection is done systematically.
doc
:
the document
elem
:
the element carrying the
libxml-SAX.html#attribute
attribute
attr
:
the
libxml-SAX.html#attribute
attribute
Returns
:
0 or 1 depending on the lookup result
Function: xmlIsMixedElement
int	xmlIsMixedElement		(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
Search in the DtDs whether an element accept Mixed content (or ANY) basically if it is supposed to accept text childs
doc
:
the document
name
:
the element name
Returns
:
0 if no, 1 if yes, and -1 if no element description is available
Function: xmlIsRef
int	xmlIsRef			(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem,
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
attr)
Determine whether an
libxml-SAX.html#attribute
attribute
is of type Ref. In case we have DTD(s) then this is simple, otherwise we use an heuristic: name Ref (upper or lowercase).
doc
:
the document
elem
:
the element carrying the
libxml-SAX.html#attribute
attribute
attr
:
the
libxml-SAX.html#attribute
attribute
Returns
:
0 or 1 depending on the lookup result
Function: xmlNewDocElementContent
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
xmlNewDocElementContent	(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
libxml-tree.html#xmlElementContentType
xmlElementContentType
type)
Allocate an element content structure for the document.
doc
:
the document
name
:
the subelement name or NULL
type
:
the type of element content decl
Returns
:
NULL if not, otherwise the new element content structure
Function: xmlNewElementContent
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
xmlNewElementContent	(const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
libxml-tree.html#xmlElementContentType
xmlElementContentType
type)
Allocate an element content structure. Deprecated in favor of
libxml-valid.html#xmlNewDocElementContent
xmlNewDocElementContent
name
:
the subelement name or NULL
type
:
the type of element content decl
Returns
:
NULL if not, otherwise the new element content structure
Function: xmlNewValidCtxt
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
xmlNewValidCtxt		(void)
Allocate a validation context structure.
Returns
:
NULL if not, otherwise the new validation context structure
Function: xmlRemoveID
int	xmlRemoveID			(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
attr)
Remove the given
libxml-SAX.html#attribute
attribute
from the ID table maintained internally.
doc
:
the document
attr
:
the
libxml-SAX.html#attribute
attribute
Returns
:
-1 if the lookup failed and 0 otherwise
Function: xmlRemoveRef
int	xmlRemoveRef			(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
attr)
Remove the given
libxml-SAX.html#attribute
attribute
from the Ref table maintained internally.
doc
:
the document
attr
:
the
libxml-SAX.html#attribute
attribute
Returns
:
-1 if the lookup failed and 0 otherwise
Function: xmlSnprintfElementContent
void	xmlSnprintfElementContent	(char * buf,
int size,
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
content,
int englob)
This will dump the content of the element content definition Intended just for the debug routine
buf
:
an output buffer
size
:
the buffer size
content
:
An element table
englob
:
1 if one must print the englobing parenthesis, 0 otherwise
Function: xmlSprintfElementContent
void	xmlSprintfElementContent	(char * buf,
libxml-tree.html#xmlElementContentPtr
xmlElementContentPtr
content,
int englob)
Deprecated, unsafe, use
libxml-valid.html#xmlSnprintfElementContent
xmlSnprintfElementContent
buf
:
an output buffer
content
:
An element table
englob
:
1 if one must print the englobing parenthesis, 0 otherwise
Function: xmlValidBuildContentModel
int	xmlValidBuildContentModel	(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlElementPtr
xmlElementPtr
elem)
(Re)Build the automata associated to the content model of this element
ctxt
:
a validation context
elem
:
an element declaration node
Returns
:
1 in case of success, 0 in case of error
Function: xmlValidCtxtNormalizeAttributeValue
libxml-xmlstring.html#xmlChar
xmlChar
*	xmlValidCtxtNormalizeAttributeValue	(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
Does the validation related extra step of the normalization of
libxml-SAX.html#attribute
attribute
values: If the declared value is not CDATA, then the XML processor must further process the normalized
libxml-SAX.html#attribute
attribute
value by discarding any leading and trailing space (#x20) characters, and by replacing sequences of space (#x20)
libxml-SAX.html#characters
characters
by single space (#x20) character. Also check VC: Standalone Document Declaration in P32, and update ctxt->valid accordingly
ctxt
:
the validation context or NULL
doc
:
the document
elem
:
the parent
name
:
the
libxml-SAX.html#attribute
attribute
name
value
:
the
libxml-SAX.html#attribute
attribute
value
Returns
:
a new normalized string if normalization is needed, NULL otherwise the caller must free the returned value.
Function: xmlValidGetPotentialChildren
int	xmlValidGetPotentialChildren	(
libxml-tree.html#xmlElementContent
xmlElementContent
* ctree,
const
libxml-xmlstring.html#xmlChar
xmlChar
** list,
int * len,
int max)
Build/extend a list of potential children allowed by the content tree
ctree
:
an element content tree
list
:
an array to store the list of child names
len
:
a pointer to the number of element in the list
max
:
the size of the array
Returns
:
the number of element in the list, or -1 in case of error.
Function: xmlValidGetValidElements
int	xmlValidGetValidElements	(
libxml-tree.html#xmlNode
xmlNode
* prev,
libxml-tree.html#xmlNode
xmlNode
* next,
const
libxml-xmlstring.html#xmlChar
xmlChar
** names,
int max)
This function returns the list of authorized children to insert within an existing tree while respecting the validity constraints forced by the Dtd. The insertion point is defined using @prev and @next in the following ways: to insert before 'node': xmlValidGetValidElements(node->prev, node, ... to insert next 'node': xmlValidGetValidElements(node, node->next, ... to replace 'node': xmlValidGetValidElements(node->prev, node->next, ... to prepend a child to 'node': xmlValidGetValidElements(NULL, node->childs, to append a child to 'node': xmlValidGetValidElements(node->last, NULL, ... pointers to the element names are inserted at the beginning of the array and do not need to be freed.
prev
:
an element to insert after
next
:
an element to insert next
names
:
an array to store the list of child names
max
:
the size of the array
Returns
:
the number of element in the list, or -1 in case of error. If the function returns the value @max the caller is invited to grow the receiving array and retry.
Function: xmlValidNormalizeAttributeValue
libxml-xmlstring.html#xmlChar
xmlChar
*	xmlValidNormalizeAttributeValue	(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
Does the validation related extra step of the normalization of
libxml-SAX.html#attribute
attribute
values: If the declared value is not CDATA, then the XML processor must further process the normalized
libxml-SAX.html#attribute
attribute
value by discarding any leading and trailing space (#x20) characters, and by replacing sequences of space (#x20)
libxml-SAX.html#characters
characters
by single space (#x20) character.
doc
:
the document
elem
:
the parent
name
:
the
libxml-SAX.html#attribute
attribute
name
value
:
the
libxml-SAX.html#attribute
attribute
value
Returns
:
a new normalized string if normalization is needed, NULL otherwise the caller must free the returned value.
Function: xmlValidateAttributeDecl
int	xmlValidateAttributeDecl	(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlAttributePtr
xmlAttributePtr
attr)
Try to validate a single
libxml-SAX.html#attribute
attribute
definition basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Default Legal ] - [ VC: Enumeration ] - [ VC: ID Attribute Default ] The ID/IDREF uniqueness and matching are done separately
ctxt
:
the validation context
doc
:
a document instance
attr
:
an
libxml-SAX.html#attribute
attribute
definition
Returns
:
1 if valid or 0 otherwise
Function: xmlValidateAttributeValue
int	xmlValidateAttributeValue	(
libxml-tree.html#xmlAttributeType
xmlAttributeType
type,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
Validate that the given
libxml-SAX.html#attribute
attribute
value match the proper production [ VC: ID ] Values of type ID must match the Name production.... [ VC: IDREF ] Values of type IDREF must match the Name production, and values of type IDREFS must match Names ... [ VC: Entity Name ] Values of type ENTITY must match the Name production, values of type ENTITIES must match Names ... [ VC: Name Token ] Values of type NMTOKEN must match the Nmtoken production; values of type NMTOKENS must match Nmtokens.
type
:
an
libxml-SAX.html#attribute
attribute
type
value
:
an
libxml-SAX.html#attribute
attribute
value
Returns
:
1 if valid or 0 otherwise
Function: xmlValidateDocument
int	xmlValidateDocument		(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc)
Try to validate the document instance basically it does the all the checks described by the XML Rec i.e. validates the internal and external subset (if present) and validate the document tree.
ctxt
:
the validation context
doc
:
a document instance
Returns
:
1 if valid or 0 otherwise
Function: xmlValidateDocumentFinal
int	xmlValidateDocumentFinal	(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc)
Does the final step for the document validation once all the incremental validation steps have been completed basically it does the following checks described by the XML Rec Check all the IDREF/IDREFS attributes definition for validity
ctxt
:
the validation context
doc
:
a document instance
Returns
:
1 if valid or 0 otherwise
Function: xmlValidateDtd
int	xmlValidateDtd			(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlDtdPtr
xmlDtdPtr
dtd)
Try to validate the document against the dtd instance Basically it does check all the definitions in the DtD. Note the the internal subset (if present) is de-coupled (i.e. not used), which could give problems if ID or IDREF is present.
ctxt
:
the validation context
doc
:
a document instance
dtd
:
a dtd instance
Returns
:
1 if valid or 0 otherwise
Function: xmlValidateDtdFinal
int	xmlValidateDtdFinal		(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc)
Does the final step for the dtds validation once all the subsets have been parsed basically it does the following checks described by the XML Rec - check that ENTITY and ENTITIES type attributes default or possible values matches one of the defined entities. - check that NOTATION type attributes default or possible values matches one of the defined notations.
ctxt
:
the validation context
doc
:
a document instance
Returns
:
1 if valid or 0 if invalid and -1 if not well-formed
Function: xmlValidateElement
int	xmlValidateElement		(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem)
Try to validate the subtree under an element
ctxt
:
the validation context
doc
:
a document instance
elem
:
an element instance
Returns
:
1 if valid or 0 otherwise
Function: xmlValidateElementDecl
int	xmlValidateElementDecl		(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlElementPtr
xmlElementPtr
elem)
Try to validate a single element definition basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: One ID per Element Type ] - [ VC: No Duplicate Types ] - [ VC: Unique Element Type Declaration ]
ctxt
:
the validation context
doc
:
a document instance
elem
:
an element definition
Returns
:
1 if valid or 0 otherwise
Function: xmlValidateNameValue
int	xmlValidateNameValue		(const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
Validate that the given value match Name production
value
:
an Name value
Returns
:
1 if valid or 0 otherwise
Function: xmlValidateNamesValue
int	xmlValidateNamesValue		(const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
Validate that the given value match Names production
value
:
an Names value
Returns
:
1 if valid or 0 otherwise
Function: xmlValidateNmtokenValue
int	xmlValidateNmtokenValue		(const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
Validate that the given value match Nmtoken production [ VC: Name Token ]
value
:
an Nmtoken value
Returns
:
1 if valid or 0 otherwise
Function: xmlValidateNmtokensValue
int	xmlValidateNmtokensValue	(const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
Validate that the given value match Nmtokens production [ VC: Name Token ]
value
:
an Nmtokens value
Returns
:
1 if valid or 0 otherwise
Function: xmlValidateNotationDecl
int	xmlValidateNotationDecl		(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNotationPtr
xmlNotationPtr
nota)
Try to validate a single notation definition basically it does the following checks as described by the XML-1.0 recommendation: - it seems that no validity constraint exists on notation declarations But this function get called anyway ...
ctxt
:
the validation context
doc
:
a document instance
nota
:
a notation definition
Returns
:
1 if valid or 0 otherwise
Function: xmlValidateNotationUse
int	xmlValidateNotationUse		(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
const
libxml-xmlstring.html#xmlChar
xmlChar
* notationName)
Validate that the given name match a notation declaration. - [ VC: Notation Declared ]
ctxt
:
the validation context
doc
:
the document
notationName
:
the notation name to check
Returns
:
1 if valid or 0 otherwise
Function: xmlValidateOneAttribute
int	xmlValidateOneAttribute		(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem,
libxml-tree.html#xmlAttrPtr
xmlAttrPtr
attr,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
Try to validate a single
libxml-SAX.html#attribute
attribute
for an element basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Value Type ] - [ VC: Fixed Attribute Default ] - [ VC: Entity Name ] - [ VC: Name Token ] - [ VC: ID ] - [ VC: IDREF ] - [ VC: Entity Name ] - [ VC: Notation Attributes ] The ID/IDREF uniqueness and matching are done separately
ctxt
:
the validation context
doc
:
a document instance
elem
:
an element instance
attr
:
an
libxml-SAX.html#attribute
attribute
instance
value
:
the
libxml-SAX.html#attribute
attribute
value (without entities processing)
Returns
:
1 if valid or 0 otherwise
Function: xmlValidateOneElement
int	xmlValidateOneElement		(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem)
Try to validate a single element and it's attributes, basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Element Valid ] - [ VC: Required Attribute ] Then call xmlValidateOneAttribute() for each
libxml-SAX.html#attribute
attribute
present. The ID/IDREF checkings are done separately
ctxt
:
the validation context
doc
:
a document instance
elem
:
an element instance
Returns
:
1 if valid or 0 otherwise
Function: xmlValidateOneNamespace
int	xmlValidateOneNamespace		(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem,
const
libxml-xmlstring.html#xmlChar
xmlChar
* prefix,
libxml-tree.html#xmlNsPtr
xmlNsPtr
ns,
const
libxml-xmlstring.html#xmlChar
xmlChar
* value)
Try to validate a single namespace declaration for an element basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Value Type ] - [ VC: Fixed Attribute Default ] - [ VC: Entity Name ] - [ VC: Name Token ] - [ VC: ID ] - [ VC: IDREF ] - [ VC: Entity Name ] - [ VC: Notation Attributes ] The ID/IDREF uniqueness and matching are done separately
ctxt
:
the validation context
doc
:
a document instance
elem
:
an element instance
prefix
:
the namespace prefix
ns
:
an namespace declaration instance
value
:
the
libxml-SAX.html#attribute
attribute
value (without entities processing)
Returns
:
1 if valid or 0 otherwise
Function: xmlValidatePopElement
int	xmlValidatePopElement		(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem,
const
libxml-xmlstring.html#xmlChar
xmlChar
* qname)
Pop the element end from the validation stack.
ctxt
:
the validation context
doc
:
a document instance
elem
:
an element instance
qname
:
the qualified name as appearing in the serialization
Returns
:
1 if no validation problem was found or 0 otherwise
Function: xmlValidatePushCData
int	xmlValidatePushCData		(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
const
libxml-xmlstring.html#xmlChar
xmlChar
* data,
int len)
check the CData parsed for validation in the current stack
ctxt
:
the validation context
data
:
some character data read
len
:
the lenght of the data
Returns
:
1 if no validation problem was found or 0 otherwise
Function: xmlValidatePushElement
int	xmlValidatePushElement		(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-tree.html#xmlNodePtr
xmlNodePtr
elem,
const
libxml-xmlstring.html#xmlChar
xmlChar
* qname)
Push a new element start on the validation stack.
ctxt
:
the validation context
doc
:
a document instance
elem
:
an element instance
qname
:
the qualified name as appearing in the serialization
Returns
:
1 if no validation problem was found or 0 otherwise
Function: xmlValidateRoot
int	xmlValidateRoot			(
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
ctxt,
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc)
Try to validate a the root element basically it does the following check as described by the XML-1.0 recommendation: - [ VC: Root Element Type ] it doesn't try to recurse or apply other check to the element
ctxt
:
the validation context
doc
:
a document instance
Returns
:
1 if valid or 0 otherwise
Function type: xmlValidityErrorFunc
Function type: xmlValidityErrorFunc
void	xmlValidityErrorFunc		(void * ctx,
const char * msg,
... ...)
Callback called when a validity error is found. This is a message oriented function similar to an *printf function.
ctx
:
usually an
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
to a validity error context, but comes from ctxt->userData (which normally contains such a pointer); ctxt->userData can be changed by the user.
msg
:
the string to format *printf like vararg
...
:
remaining arguments to the format
Function type: xmlValidityWarningFunc
Function type: xmlValidityWarningFunc
void	xmlValidityWarningFunc		(void * ctx,
const char * msg,
... ...)
Callback called when a validity warning is found. This is a message oriented function similar to an *printf function.
ctx
:
usually an
libxml-valid.html#xmlValidCtxtPtr
xmlValidCtxtPtr
to a validity error context, but comes from ctxt->userData (which normally contains such a pointer); ctxt->userData can be changed by the user.
msg
:
the string to format *printf like vararg
...
:
remaining arguments to the format
../bugs.html
Daniel Veillard
