IAPI::InsertNamedItemValue

property InsertNamedItemValue.

Replaces a value or inserts  new value to an XML name/key at the root element. Available since version 2.32.8

     <MAIN_ELEMENT  Attribut1=’a1’  Attribut2=’zzTop’ >        Root  XML Element

        <SUB_ELEMENT1 subAttribut1=’n/a’  subAttribut2=’ras’ >  ‘ Secondary XML  Element

         </SUB_ELEMENT1>

        <SUB_ELEMENT2 subAttribut1=’n/a’  subAttribut2=’ras’ >           Secondary XML Element

         </SUB_ELEMENT>

    </MAIN_ELEMENT>

 

HRESULT InsertNamedItemValue(
  long hXMLObject,
  BSTR NamedItem,
  BSTR NewValue,
  BOOL *pVal
);

Parameters

hXMLObject

[in] .   Handle of XML object

NamedItem

[in] .   XML name or key

NewValue

[in].    The new value is a BSTR string or an empty string

 

pVal

[out, retval] The returned value is TRUE or FALSE

 

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured

See Also

IAPI