Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - SAX2 Reference | |
getLocalName Method
Finds an attribute's local name by index. For "xmlns", this value is empty.
[Visual Basic]
Implementation Syntax
Function getLocalName(ByVal nIndex As Long) As String
Usage Syntax
StrVal = oIVBSAXAttributes.getLocalName(nIndex)
Parameters
- nIndex
- The attribute's index value.
Return Values
If failed, raises a trappable error.
[C/C++]
Syntax
HRESULT getLocalName(
[in] int nIndex,
[out] const wchar_t ** ppwchLocalName,
[out] int * pcchLocalName);
Parameters
- nIndex [in]
- The attribute's index value.
- ppwchLocalName [out]
- The attribute's local name.
- pcchLocalName [out]
- The length of the local name string.
Return Values
- S_OK
- The value returned if the local name is returned successfully.
- E_FAIL
- The value returned if an internal error occurs.
- E_INVALIDARG
- The value returned if the local name cannot be found.
To view reference information for Visual Basic or C/C++ only, click the Language Filter button in the upper-left corner of the page.
See Also
getLength Method (C/C++) | length Property (Visual Basic)
Applies to: ISAXAttributes/IVBSAXAttributes Interface