Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IXMLNode2::addAttribute ( const P6WCHAR pName,
P6UINT32  nameLength,
const P6WCHAR pValue,
P6UINT32  valueLength,
const P6WCHAR pURI,
P6UINT32  uriLength 
)
pure virtual

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.
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to intialize() must be made before calling this funciton.
P6R::eInvalidArgOne of the parameters is NULL.