BloombergLP::balxml::Utf8ReaderWrapper::lookupAttribute

lookupAttribute overloads

Synopses

Declared in <balxml_utf8readerwrapper.h>

Find the attribute at the specified index in the current node.

virtual
int
lookupAttribute(
    ElementAttribute* attribute,
    int index) const override;
» more...

Find the attribute with the specified qname in the current node.

virtual
int
lookupAttribute(
    ElementAttribute* attribute,
    char const* qname) const override;
» more...

Find the attribute with the specified localName and namespaceId.

virtual
int
lookupAttribute(
    ElementAttribute* attribute,
    char const* localName,
    int namespaceId) const override;
» more...

Find the attribute with the specified localName and namespaceUri.

virtual
int
lookupAttribute(
    ElementAttribute* attribute,
    char const* localName,
    char const* namespaceUri) const override;
» more...

Return Value

  • 0 on success, 1 if no attribute is found at index, and a negative value otherwise
  • 0 on success, 1 if no attribute is found with qname, and a negative value otherwise
  • 0 on success, 1 if no attribute is found with localName and namespaceId, and a negative value otherwise
  • 0 on success, 1 if no attribute is found with localName and namespaceUri, and a negative value otherwise

Parameters

NameDescription
attributestructure to receive the attribute
indexzero-based attribute index in the current node
qnamequalified name of the attribute to find
localNamelocal name of the attribute to find
namespaceIdnamespace ID, or -1 for the default
namespaceUrinamespace URI, or 0 for the default