IAPI::ReplaceNamedItemValueOnElement

property ReplaceNamedItemValueOnElement.

Replaces a value on an XML name/key which is located at a secondary 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 ReplaceNamedItemValueOnElement(
  long hXMLObject,
  BSTR Element,
  BSTR NamedItem,
  BSTR NewValue,
  BOOL *pVal
);

Parameters

hXMLObject

[in] .   Handle of XML object

Element

[in] .   Element name

NamedItem

[in] .   XML name or key

NewValue

[in].    The new value.

 

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