Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IXMLNode2::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
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to intialize() must be made before calling this funciton.
P6R::eInvalidArgOne of the parameters is NULL.
P6R::eNotFoundThe attribute in pName is not defined in the XML node.