|
libxml2
|
Generic node type in an XML or HTML tree. More...
#include <tree.h>
Data Fields | |
| void * | _private |
| Application data. | |
| xmlElementType | type |
| Type enum, an xmlElementType value. | |
| const xmlChar * | name |
| Name of the node. | |
| struct _xmlNode * | children |
| First child. | |
| struct _xmlNode * | last |
| Last child. | |
| struct _xmlNode * | parent |
| Parent node. | |
| struct _xmlNode * | next |
| Next sibling. | |
| struct _xmlNode * | prev |
| Previous sibling. | |
| struct _xmlDoc * | doc |
| Associated document. | |
| xmlNs * | ns |
| Namespace of element if any. | |
| xmlChar * | content |
| Content of text, comment, PI nodes. | |
| struct _xmlAttr * | properties |
| First attribute of element. | |
| xmlNs * | nsDef |
| First namespace definition of element. | |
| void * | psvi |
| For type/PSVI information. | |
| unsigned short | line |
| Line number. | |
| unsigned short | extra |
| Extra data for XPath/XSLT. | |
Generic node type in an XML or HTML tree.
This is used for
Other node types have a different struct layout than xmlNode, see xmlElementType. Except for XML_NAMESPACE_DECL all nodes share the following members at the same offset:
| void* _private |
Application data.
Often used by language bindings.
| struct _xmlNode* children |
First child.
Entity declaration of entity references.
| xmlChar* content |
Content of text, comment, PI nodes.
Sort index for elements after calling xmlXPathOrderDocElems. Content of internal entities for entity references.
| struct _xmlDoc* doc |
Associated document.
Used to access DTDs, entities, ID tables, dictionary or other document properties. All children of a node share the same document.
| const xmlChar* name |
Name of the node.
| struct _xmlNode* parent |
Parent node.
NULL for documents or unlinked root nodes.
| struct _xmlAttr* properties |
First attribute of element.
Also used to store small strings with XML_PARSE_COMPACT.