IAPI::NamedItemValueFromElement

property NamedItemValueFromElement.

Retrieves a value from an XML name/key located into an element

 

HRESULT NamedItemValueFromElement(
  long hXMLObject,
  BSTR Element,
  BSTR NamedItem,
  BSTR *pVal
);

Parameters

hXMLObject

[in] .   Handle of XML object

Element

[in] .   Element name

NamedItem

[in] .   XML name or key

         If NamedItem = "<text/>", then only text part is returned

         If NamedItem = "<xml/>", then XML part is returned  

pVal

[out, retval] The returned value is a BSTR as text or XML

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