WSDXML_NODE structure

Describes an XML node.

Syntax


typedef struct _WSDXML_NODE {
  enum {
     ElementType,     TextType  }          Type;
  WSDXML_ELEMENT *Parent;
  WSDXML_NODE    *Next;
} WSDXML_NODE;

Members

Type

Indicates whether the node is an element or text.

ElementType

Node represents an XML element.

TextType

Node represents text.

Parent

Reference to the parent node in a linked list of WSDXML_ELEMENT structures.

Next

Reference to the next node in the linked list of WSDXML_NODE structures.

Remarks

WSDXML_NODE represents an arbitrary node within the DOM tree. Nodes are weakly typed; the Type member must be inspected to determine the actual type of the node, and the node pointer must then be cast to the structure of the appropriate type (see WSDXML_ELEMENT and WSDXML_TEXT) to obtain the node contents. Parent points to the containing element for the current node, and Next points to any nodes at the same level as the current node.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

WsdXmldom.h

 

 

Community Additions

ADD
Show: