libxml2
Loading...
Searching...
No Matches
Data Fields
_xmlNode Struct Reference

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 xmlCharname
 Name of the node.
 
struct _xmlNodechildren
 First child.
 
struct _xmlNodelast
 Last child.
 
struct _xmlNodeparent
 Parent node.
 
struct _xmlNodenext
 Next sibling.
 
struct _xmlNodeprev
 Previous sibling.
 
struct _xmlDocdoc
 Associated document.
 
xmlNsns
 Namespace of element if any.
 
xmlCharcontent
 Content of text, comment, PI nodes.
 
struct _xmlAttrproperties
 First attribute of element.
 
xmlNsnsDef
 First namespace definition of element.
 
void * psvi
 For type/PSVI information.
 
unsigned short line
 Line number.
 
unsigned short extra
 Extra data for XPath/XSLT.
 

Detailed Description

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:

xmlNode and xmlAttr also share the ns member.

Field Documentation

◆ _private

void* _private

Application data.

Often used by language bindings.

◆ children

struct _xmlNode* children

First child.

Entity declaration of entity references.

◆ content

xmlChar* content

Content of text, comment, PI nodes.

Sort index for elements after calling xmlXPathOrderDocElems. Content of internal entities for entity references.

◆ doc

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.

◆ name

const xmlChar* 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

struct _xmlNode* parent

Parent node.

NULL for documents or unlinked root nodes.

◆ properties

struct _xmlAttr* 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: