Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - SAX2 Reference

getValueFromQName Method

Finds the attribute by XML 1.0 qualified name and returns the attribute's text value.

[Visual Basic]

Implementation Syntax

Function getValueFromQName(ByVal strQName As String) As String

Usage Syntax

StrValue = oIVBSAXAttributes.getValueFromQName(strQName)

Parameters

strQName
The XML 1.0 qualified name.

Return Values

If failed, raises a trappable error.

[C/C++]

Syntax

HRESULT getValueFromQName(
   [in] const wchar_t * pwchQName, 
   [in] int cchQName, 
   [out] const wchar_t ** pwchValue,
   [out] int * pcchValue);

Parameters

pwchQName [in]
The XML 1.0 qualified name.
cchQName [in]
The length of the qualified name string.
pwchValue [out]
The string value of the qualified name.
pcchValue [out]
The length of the qualified name.

Return Values

S_OK
The value returned if the text value is returned successfully.
E_INVALIDARG
The value returned for an invalid index or if no matching attribute is found.
E_FAIL
The value returned if an internal error occurs.

To view reference information for Visual Basic or C/C++ only, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

getLength Method (C/C++) | length Property (Visual Basic)

Applies to: ISAXAttributes/IVBSAXAttributes Interface