WS_XML_ATTRIBUTE structure (webservices.h)

Represents an attribute (for example, <a:purchaseOrder xmlns:a="http://tempuri.org" id="5">)

Syntax

typedef struct _WS_XML_ATTRIBUTE {
  BYTE          singleQuote;
  BYTE          isXmlNs;
  WS_XML_STRING *prefix;
  WS_XML_STRING *localName;
  WS_XML_STRING *ns;
  WS_XML_TEXT   *value;
} WS_XML_ATTRIBUTE;

Members

singleQuote

Whether to use a single quote or double quote to surround an attribute value. In the example, the value of singleQuote for attribute "id" would be FALSE.

isXmlNs

Whether or not the attribute is an xmlns attribute. In the example above, this would be TRUE for the attribute "xmlns:a", but FALSE for the attribute "id".

prefix

The prefix of the attribute. In the example above, the prefix for attribute "xmlns:a" is "a", while the prefix for "id" is a zero length string.

The prefix for the attribute "xmlns" is a zero length string.

localName

The localName of the attribute. In the example above, the localName for attribute "xmlns:a" is not used so it is NULL. The localName for attribute "id" is "id".

ns

The namespace of the attribute. In the example above, the namespace for the attribute "xmlns:a" is "http://tempuri.org". The namespace for attribute "id" is the empty namespace which is represented by a zero length string.

value

The value of the attribute. In the example above the value for attribute "xmlns:a" is not used so it is NULL. The value for the attribute "id" is a WS_XML_TEXT that refers to the value "5".

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Header webservices.h