virtual P6R::P6ERR P6R::p6IXMLNode::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.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Copyright © 2004 - 2010 P6R Inc. - All Rights Reserved.