Syntax
typedef struct _XML_node
{
char *name;
char *value;
XML_Attribute *attribute;
char *name_raw;
char *value_raw;
unsigned int warning;
struct _XML_node *parentNode;
struct _XML_node *childNode;
struct _XML_node *nextNode;
int signature;
} XML_Node;
Members
- name
- A pointer to a string of the name for the node.
- value
- A pointer to a string of the value for the node. NULL is set if the value is empty.
- attribute
- A pointer to an XML_Attribute structure that represents a node's attributes. Null is set for nodes that do not have attributes.
- name_raw
- A pointer to a UTF-8 string of the name for the node.
- value_raw
- A pointer to a UTF-8 string of the value for the node. NULL is set if the value is empty.
- warning
-
When converting the name or value from Unicode to local code, if an unsupported character code is detected, the logical sum of the following error codes is set.
Error code Description XML_WARNING_UNSUPPORTED_CODE_IN_NAME An unsupported character code was detected in the name conversion. XML_WARNING_UNSUPPORTED_CODE_IN_VALUE An unsupported character code was detected in the value conversion. - parentNode
- A pointer to the XML_Node structure of the parent node. NULL is set for the root node.
- childNode
- A pointer to the XML_Node structure of the child node. NULL is set if the child node does not exist.
- nextNode
- A pointer to the XML_Node structure of the next node (sibling node) in the same hierarchy. NULL is set if the next node does not exist.
- signature
- Private.
Remarks
Note:
Use a dedicated function to edit nodes of an XML object. Do not directly rewrite each member of this structure as it may cause a memory leak.Requirements
Header file:
XML.h
CodeConversion.h : ver. 1.1.1 or later.
Last updated: 2021/09/24