tree.h
Estructura xmlElement
Una declaración de elemento XML de una DTD.
Sintaxis
/**
* xmlElement:
*
* An XML Element declaration from a DTD.
*/
typedef struct _xmlElement xmlElement;
typedef xmlElement *xmlElementPtr;
struct _xmlElement {
void *_private; /* application data */
xmlElementType type; /* XML_ELEMENT_DECL, must be second ! */
const xmlChar *name; /* Element name */
struct _xmlNode *children; /* NULL */
struct _xmlNode *last; /* NULL */
struct _xmlDtd *parent; /* -> DTD */
struct _xmlNode *next; /* next sibling link */
struct _xmlNode *prev; /* previous sibling link */
struct _xmlDoc *doc; /* the containing document */
xmlElementTypeVal etype; /* The type */
xmlElementContentPtr content; /* the allowed element content */
xmlAttributePtr attributes; /* List of the declared attributes */
const xmlChar *prefix; /* the namespace prefix if any */
#ifdef LIBXML_REGEXP_ENABLED
xmlRegexpPtr contModel; /* the validating regexp */
#else
void *contModel;
#endif
};
Miembros
- _private
- Datos de aplicación.
- type
- XML_ELEMENT_DECL, ¡debe ser el segundo!
- name
- Nombre del elemento.
- children
- NULL.
- last
- NULL,
- parent
- -> DTD.
- next
- Enlace hermano siguiente.
- prev
- Enlace hermano anterior.
- doc
- El documento contenedor.
- etype
- El tipo.
- content
- El contenido permitido del elemento
- attributes
- Lista de los atributos declarados.
- prefix
- El prefijo del espacio de nombres, si existe.
- contModel
- La expresión regular de validación.