Eneboo - Documentación para desarrolladores
Clases | 'typedefs' | Funciones
Referencia del Archivo src/libdigidoc/libxml2/include/libxml/valid.h
#include <libxml/xmlversion.h>
#include <libxml/xmlerror.h>
#include <libxml/tree.h>
#include <libxml/list.h>
#include <libxml/xmlautomata.h>
#include <libxml/xmlregexp.h>

Ir al código fuente de este archivo.

Clases

struct  _xmlValidCtxt

'typedefs'

typedef struct _xmlValidState xmlValidState
typedef xmlValidStatexmlValidStatePtr
typedef const char * msg
typedef const char LIBXML_ATTR_FORMAT (2, 3)
typedef struct _xmlValidCtxt xmlValidCtxt
typedef xmlValidCtxtxmlValidCtxtPtr
typedef struct _xmlHashTable xmlNotationTable
typedef xmlNotationTablexmlNotationTablePtr
typedef struct _xmlHashTable xmlElementTable
typedef xmlElementTablexmlElementTablePtr
typedef struct _xmlHashTable xmlAttributeTable
typedef xmlAttributeTablexmlAttributeTablePtr
typedef struct _xmlHashTable xmlIDTable
typedef xmlIDTablexmlIDTablePtr
typedef struct _xmlHashTable xmlRefTable
typedef xmlRefTablexmlRefTablePtr

Funciones

typedef void (XMLCDECL *xmlValidityErrorFunc)(void *ctx
XMLPUBFUN xmlNotationPtr XMLCALL xmlAddNotationDecl (xmlValidCtxtPtr ctxt, xmlDtdPtr dtd, const xmlChar *name, const xmlChar *PublicID, const xmlChar *SystemID)
XMLPUBFUN void XMLCALL xmlFreeNotationTable (xmlNotationTablePtr table)
XMLPUBFUN xmlElementContentPtr
XMLCALL 
xmlNewElementContent (const xmlChar *name, xmlElementContentType type)
XMLPUBFUN xmlElementContentPtr
XMLCALL 
xmlCopyElementContent (xmlElementContentPtr content)
XMLPUBFUN void XMLCALL xmlFreeElementContent (xmlElementContentPtr cur)
XMLPUBFUN xmlElementContentPtr
XMLCALL 
xmlNewDocElementContent (xmlDocPtr doc, const xmlChar *name, xmlElementContentType type)
XMLPUBFUN xmlElementContentPtr
XMLCALL 
xmlCopyDocElementContent (xmlDocPtr doc, xmlElementContentPtr content)
XMLPUBFUN void XMLCALL xmlFreeDocElementContent (xmlDocPtr doc, xmlElementContentPtr cur)
XMLPUBFUN void XMLCALL xmlSnprintfElementContent (char *buf, int size, xmlElementContentPtr content, int englob)
XMLPUBFUN xmlElementPtr XMLCALL xmlAddElementDecl (xmlValidCtxtPtr ctxt, xmlDtdPtr dtd, const xmlChar *name, xmlElementTypeVal type, xmlElementContentPtr content)
XMLPUBFUN void XMLCALL xmlFreeElementTable (xmlElementTablePtr table)
XMLPUBFUN xmlEnumerationPtr XMLCALL xmlCreateEnumeration (const xmlChar *name)
XMLPUBFUN void XMLCALL xmlFreeEnumeration (xmlEnumerationPtr cur)
XMLPUBFUN xmlAttributePtr XMLCALL xmlAddAttributeDecl (xmlValidCtxtPtr ctxt, xmlDtdPtr dtd, const xmlChar *elem, const xmlChar *name, const xmlChar *ns, xmlAttributeType type, xmlAttributeDefault def, const xmlChar *defaultValue, xmlEnumerationPtr tree)
XMLPUBFUN void XMLCALL xmlFreeAttributeTable (xmlAttributeTablePtr table)
XMLPUBFUN xmlIDPtr XMLCALL xmlAddID (xmlValidCtxtPtr ctxt, xmlDocPtr doc, const xmlChar *value, xmlAttrPtr attr)
XMLPUBFUN void XMLCALL xmlFreeIDTable (xmlIDTablePtr table)
XMLPUBFUN xmlAttrPtr XMLCALL xmlGetID (xmlDocPtr doc, const xmlChar *ID)
XMLPUBFUN int XMLCALL xmlIsID (xmlDocPtr doc, xmlNodePtr elem, xmlAttrPtr attr)
XMLPUBFUN int XMLCALL xmlRemoveID (xmlDocPtr doc, xmlAttrPtr attr)
XMLPUBFUN xmlRefPtr XMLCALL xmlAddRef (xmlValidCtxtPtr ctxt, xmlDocPtr doc, const xmlChar *value, xmlAttrPtr attr)
XMLPUBFUN void XMLCALL xmlFreeRefTable (xmlRefTablePtr table)
XMLPUBFUN int XMLCALL xmlIsRef (xmlDocPtr doc, xmlNodePtr elem, xmlAttrPtr attr)
XMLPUBFUN int XMLCALL xmlRemoveRef (xmlDocPtr doc, xmlAttrPtr attr)
XMLPUBFUN xmlListPtr XMLCALL xmlGetRefs (xmlDocPtr doc, const xmlChar *ID)
XMLPUBFUN int XMLCALL xmlIsMixedElement (xmlDocPtr doc, const xmlChar *name)
XMLPUBFUN xmlAttributePtr XMLCALL xmlGetDtdAttrDesc (xmlDtdPtr dtd, const xmlChar *elem, const xmlChar *name)
XMLPUBFUN xmlAttributePtr XMLCALL xmlGetDtdQAttrDesc (xmlDtdPtr dtd, const xmlChar *elem, const xmlChar *name, const xmlChar *prefix)
XMLPUBFUN xmlNotationPtr XMLCALL xmlGetDtdNotationDesc (xmlDtdPtr dtd, const xmlChar *name)
XMLPUBFUN xmlElementPtr XMLCALL xmlGetDtdQElementDesc (xmlDtdPtr dtd, const xmlChar *name, const xmlChar *prefix)
XMLPUBFUN xmlElementPtr XMLCALL xmlGetDtdElementDesc (xmlDtdPtr dtd, const xmlChar *name)

Documentación de los 'typedefs'

typedef const char LIBXML_ATTR_FORMAT(2, 3)
typedef const char* msg
typedef struct _xmlHashTable xmlIDTable
typedef struct _xmlHashTable xmlRefTable
typedef struct _xmlValidCtxt xmlValidCtxt
typedef struct _xmlValidState xmlValidState

Documentación de las funciones

typedef void ( XMLCDECL *  xmlValidityWarningFunc)

xmlValidityErrorFunc: : usually an 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. : the string to format *printf like vararg @...: remaining arguments to the format

Callback called when a validity error is found. This is a message oriented function similar to an *printf function.

xmlValidityWarningFunc: : usually an 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. : the string to format *printf like vararg @...: remaining arguments to the format

Callback called when a validity warning is found. This is a message oriented function similar to an *printf function.

XMLPUBFUN xmlAttributePtr XMLCALL xmlAddAttributeDecl ( xmlValidCtxtPtr  ctxt,
xmlDtdPtr  dtd,
const xmlChar elem,
const xmlChar name,
const xmlChar ns,
xmlAttributeType  type,
xmlAttributeDefault  def,
const xmlChar defaultValue,
xmlEnumerationPtr  tree 
)
XMLPUBFUN xmlElementPtr XMLCALL xmlAddElementDecl ( xmlValidCtxtPtr  ctxt,
xmlDtdPtr  dtd,
const xmlChar name,
xmlElementTypeVal  type,
xmlElementContentPtr  content 
)
XMLPUBFUN xmlIDPtr XMLCALL xmlAddID ( xmlValidCtxtPtr  ctxt,
xmlDocPtr  doc,
const xmlChar value,
xmlAttrPtr  attr 
)

xmlAddID: : the validation context : pointer to the document : the value name : the attribute holding the ID

Register a new id declaration

Returns NULL if not, otherwise the new xmlIDPtr

XMLPUBFUN xmlNotationPtr XMLCALL xmlAddNotationDecl ( xmlValidCtxtPtr  ctxt,
xmlDtdPtr  dtd,
const xmlChar name,
const xmlChar PublicID,
const xmlChar SystemID 
)
XMLPUBFUN xmlRefPtr XMLCALL xmlAddRef ( xmlValidCtxtPtr  ctxt,
xmlDocPtr  doc,
const xmlChar value,
xmlAttrPtr  attr 
)

xmlAddRef: : the validation context : pointer to the document : the value name : the attribute holding the Ref

Register a new ref declaration

Returns NULL if not, otherwise the new xmlRefPtr

XMLPUBFUN xmlElementContentPtr XMLCALL xmlCopyDocElementContent ( xmlDocPtr  doc,
xmlElementContentPtr  cur 
)

xmlCopyDocElementContent: : the document owning the element declaration : An element content pointer.

Build a copy of an element content description.

Returns the new xmlElementContentPtr or NULL in case of error.

XMLPUBFUN xmlElementContentPtr XMLCALL xmlCopyElementContent ( xmlElementContentPtr  cur)

xmlCopyElementContent: : An element content pointer.

Build a copy of an element content description. Deprecated, use xmlCopyDocElementContent instead

Returns the new xmlElementContentPtr or NULL in case of error.

XMLPUBFUN xmlEnumerationPtr XMLCALL xmlCreateEnumeration ( const xmlChar name)
XMLPUBFUN void XMLCALL xmlFreeAttributeTable ( xmlAttributeTablePtr  table)

xmlFreeAttributeTable: : An attribute table

Deallocate the memory used by an entities hash table.

XMLPUBFUN void XMLCALL xmlFreeDocElementContent ( xmlDocPtr  doc,
xmlElementContentPtr  cur 
)

xmlFreeDocElementContent: : the document owning the element declaration : the element content tree to free

Free an element content structure. The whole subtree is removed.

XMLPUBFUN void XMLCALL xmlFreeElementContent ( xmlElementContentPtr  cur)

xmlFreeElementContent: : the element content tree to free

Free an element content structure. The whole subtree is removed. Deprecated, use xmlFreeDocElementContent instead

XMLPUBFUN void XMLCALL xmlFreeElementTable ( xmlElementTablePtr  table)

xmlFreeElementTable: : An element table

Deallocate the memory used by an element hash table.

XMLPUBFUN void XMLCALL xmlFreeEnumeration ( xmlEnumerationPtr  cur)

xmlFreeEnumeration: : the tree to free.

free an enumeration attribute node (recursive).

XMLPUBFUN void XMLCALL xmlFreeIDTable ( xmlIDTablePtr  table)

xmlFreeIDTable: : An id table

Deallocate the memory used by an ID hash table.

XMLPUBFUN void XMLCALL xmlFreeNotationTable ( xmlNotationTablePtr  table)

xmlFreeNotationTable: : An notation table

Deallocate the memory used by an entities hash table.

XMLPUBFUN void XMLCALL xmlFreeRefTable ( xmlRefTablePtr  table)

xmlFreeRefTable: : An ref table

Deallocate the memory used by an Ref hash table.

XMLPUBFUN xmlAttributePtr XMLCALL xmlGetDtdAttrDesc ( xmlDtdPtr  dtd,
const xmlChar elem,
const xmlChar name 
)
XMLPUBFUN xmlElementPtr XMLCALL xmlGetDtdElementDesc ( xmlDtdPtr  dtd,
const xmlChar name 
)
XMLPUBFUN xmlNotationPtr XMLCALL xmlGetDtdNotationDesc ( xmlDtdPtr  dtd,
const xmlChar name 
)
XMLPUBFUN xmlAttributePtr XMLCALL xmlGetDtdQAttrDesc ( xmlDtdPtr  dtd,
const xmlChar elem,
const xmlChar name,
const xmlChar prefix 
)
XMLPUBFUN xmlElementPtr XMLCALL xmlGetDtdQElementDesc ( xmlDtdPtr  dtd,
const xmlChar name,
const xmlChar prefix 
)
XMLPUBFUN xmlAttrPtr XMLCALL xmlGetID ( xmlDocPtr  doc,
const xmlChar ID 
)

xmlGetID: : pointer to the document : the ID value

Search the attribute declaring the given ID

Returns NULL if not found, otherwise the xmlAttrPtr defining the ID

XMLPUBFUN xmlListPtr XMLCALL xmlGetRefs ( xmlDocPtr  doc,
const xmlChar ID 
)

xmlGetRefs: : pointer to the document : the ID value

Find the set of references for the supplied ID.

Returns NULL if not found, otherwise node set for the ID.

XMLPUBFUN int XMLCALL xmlIsID ( xmlDocPtr  doc,
xmlNodePtr  elem,
xmlAttrPtr  attr 
)

xmlIsID: : the document : the element carrying the attribute : the attribute

Determine whether an 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.

Returns 0 or 1 depending on the lookup result

XMLPUBFUN int XMLCALL xmlIsMixedElement ( xmlDocPtr  doc,
const xmlChar name 
)

The public function calls related to validity checking.

XMLPUBFUN int XMLCALL xmlIsRef ( xmlDocPtr  doc,
xmlNodePtr  elem,
xmlAttrPtr  attr 
)

xmlIsRef: : the document : the element carrying the attribute : the attribute

Determine whether an 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).

Returns 0 or 1 depending on the lookup result

XMLPUBFUN xmlElementContentPtr XMLCALL xmlNewDocElementContent ( xmlDocPtr  doc,
const xmlChar name,
xmlElementContentType  type 
)
XMLPUBFUN xmlElementContentPtr XMLCALL xmlNewElementContent ( const xmlChar name,
xmlElementContentType  type 
)
XMLPUBFUN int XMLCALL xmlRemoveID ( xmlDocPtr  doc,
xmlAttrPtr  attr 
)

xmlRemoveID: : the document : the attribute

Remove the given attribute from the ID table maintained internally.

Returns -1 if the lookup failed and 0 otherwise

XMLPUBFUN int XMLCALL xmlRemoveRef ( xmlDocPtr  doc,
xmlAttrPtr  attr 
)

xmlRemoveRef: : the document : the attribute

Remove the given attribute from the Ref table maintained internally.

Returns -1 if the lookup failed and 0 otherwise

XMLPUBFUN void XMLCALL xmlSnprintfElementContent ( char *  buf,
int  size,
xmlElementContentPtr  content,
int  englob 
)

xmlSnprintfElementContent: : an output buffer : the buffer size : An element table : 1 if one must print the englobing parenthesis, 0 otherwise

This will dump the content of the element content definition Intended just for the debug routine

 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'