An XML element can have zero or more attributes (e.g., id='5').
Each attribute must have a name, but can have no value (e.g., selected="").
- Parameters
-
| pName | [ in ] The name of an attribute (a copy of the string is made). |
| nameLength | [ in ] Number of characters in pName |
| pValue | [ in ] Can be NULL, the value of the attribute (a copy of the string is made). |
| valueLength | [ in ] Number of characters in pValue |
| pURI | [ in ] Can be NULL. Does the attribute have an associated namespace (e.g., select="P6R:base64encode")? If so then this URI is the namespace URI to match the prefix (e.g., "P6R" ) (a copy of the string is made). |
| uriLength | [ in ] Number of characters in pURI. |
| type | [ in ] define the attribute to have one of the built in XPath types |
- Returns
| Success | P6R::eOk | |
| Failure | P6R::eNotInitialized | A successful call to intialize() must be made before calling this funciton. |
| P6R::eInvalidArg | One of the parameters is NULL. |