Represents node attribute information.

Syntax

typedef struct _XML_Attribute
{
  char *name;
  char *value;
  char *value_raw;
  unsigned int warning;
  struct _XML_Attribute *nextAttribute;
} XML_Attribute;

Members

name
A pointer to a string of the name for the attribute.
value
A pointer to a string of the value for the attribute. NULL is set if the value is empty.
value_raw
A pointer to a UTF-8 string of the value for the attribute. NULL is set if the value is empty.
warning
When converting the attribute 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 codeDescription
XML_WARNING_UNSUPPORTED_CODE_IN_NAMEAn unsupported character code was detected in the name conversion.
XML_WARNING_UNSUPPORTED_CODE_IN_VALUEAn unsupported character code was detected in the value conversion.
nextAttribute
A pointer to the XML_Attribute structure for the next attributes. Null is set if the next attributes are not present.

Remarks

Note:

Use a dedicated function to edit the node attributes 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