tree.h
Estructura xmlNode
Un nodo en un árbol XML.
Sintaxis
/**
* xmlNode:
*
* A node in an XML tree.
*/
typedef struct _xmlNode xmlNode;
typedef xmlNode *xmlNodePtr;
struct _xmlNode {
void *_private; /* application data */
xmlElementType type; /* type number, must be second ! */
const xmlChar *name; /* the name of the node, or the entity */
struct _xmlNode *children; /* parent->childs link */
struct _xmlNode *last; /* last child link */
struct _xmlNode *parent; /* child->parent link */
struct _xmlNode *next; /* next sibling link */
struct _xmlNode *prev; /* previous sibling link */
struct _xmlDoc *doc; /* the containing document */
/* End of common part */
xmlNs *ns; /* pointer to the associated namespace */
xmlChar *content; /* the content */
struct _xmlAttr *properties;/* properties list */
xmlNs *nsDef; /* namespace definitions on this node */
void *psvi; /* for type/PSVI informations */
unsigned short line; /* line number */
unsigned short extra; /* extra data for XPath/XSLT */
};
Miembros
- next
- Puntero a estructura xmlNode al siguiente nodo en la lista enlazada.
- prev
- Puntero a estructura xmlNode al nodo anterior en la lista enlazada.
- next
- Puntero a estructura xmlNode al siguiente nodo en la lista enlazada.
- prev
- Puntero a estructura xmlNode al nodo anterior en la lista enlazada.
- doc
- Puntero al documento raíz.
- ns
- Puntero a estructura xmlNs con el espacio con nombre asociado.
- content
- El contenido.
- properties
- Puntero a estructura xmlAttr con la lista de propiedades.
- nsDef
- Puntero a estructura xmlNs con las definiciones de espacios con nombre en este nodo.
- psvi
- Puntero para información sobre tipo/PSVI.
- line
- Número de línea.
- extra
- Datos extra para XPath/XSLT.