|
virtual P6R::P6ERR P6R::p6IXMLNode::getAttribute |
( |
const P6WCHAR * |
pName, |
|
|
P6UINT32 |
nameLength, |
|
|
P6UINT32 |
instance, |
|
|
const P6WCHAR ** |
pValue, |
|
|
P6UINT32 * |
pValueLength, |
|
|
const P6WCHAR ** |
pURI, |
|
|
P6UINT32 * |
pUriLength | |
|
) |
| | [pure virtual] |
Returned the value of an attribute if it is defined in the XML node.
The attribute name to search for is passed in the pName parameter.
- Parameters:
-
| pName | [IN] The name of an attribute |
| nameLength | [IN] Number of characters in pName |
| instance | [IN] Sometimes there are multiple instances of the same attribute in an element (e.g., "xmlns="). Number 0 is the first instance of an attribute, and number 1 is the second instance of an attribute, etc. |
| pValue | [OUT] The value of the attribute |
| pValueLength | [OUT] Number of characters in pValue |
| pURI | [OUT] 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" ). |
| pUriLength | [OUT] Number of characters in pURI. |
- 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. |
P6R::eNotFound | The attribute in pName is not defined in the XML node.
|
|