_xmlNode Struct Reference
Generic node type in an XML or HTML tree.
More...
#include <tree.h>
Application data.
Name of the node.
First child.
Last child.
Parent node.
Next sibling.
Previous sibling.
Associated document.
Namespace of element if any.
Content of text, comment, PI nodes.
First attribute of element.
First namespace definition of element.
For type/PSVI information.
Line number.
Extra data for XPath/XSLT.
Generic node type in an XML or HTML tree.
This is used for
- XML_ELEMENT_NODE
- XML_TEXT_NODE
- XML_CDATA_SECTION_NODE
- XML_ENTITY_REF_NODE
- XML_PI_NODE
- XML_COMMENT_NODE
- XML_DOCUMENT_FRAG_NODE
- XML_XINCLUDE_START_NODE
- XML_XINCLUDE_END_NODE
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:
- _private
- type (also for XML_NAMESPACE_DECL)
- name
- children
- last
- parent
- next
- prev
- doc
xmlNode and xmlAttr also share the ns member.
◆ _private
Application data.
Often used by language bindings.
◆ children
First child.
Entity declaration of entity references.
◆ content
Content of text, comment, PI nodes.
Sort index for elements after calling xmlXPathOrderDocElems. Content of internal entities for entity references.
◆ doc
Associated document.
Used to access DTDs, entities, ID tables, dictionary or other document properties. All children of a node share the same document.
◆ name
Name of the node.
- Local name of elements or attributes. As a corner case, this can also contain Names which are invalid QNames in non-namespace-wellformed documents.
- Name of entity references
- Target of processing instructions
- Fixed string for text and comments
- Unused otherwise
◆ parent
Parent node.
NULL for documents or unlinked root nodes.
◆ properties
First attribute of element.
Also used to store small strings with XML_PARSE_COMPACT.
The documentation for this struct was generated from the following file:
Generated by doxygen 1.14.0