BloombergLP::balxml::Utf8ReaderWrapper::lookupAttribute

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

Synopsis

Declared in <balxml_utf8readerwrapper.h>

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

Description

Fill in the specified attribute structure. Return 0 on success, 1 if no attribute is found at the index, and an a negative value otherwise. The strings that were filled into the attribute structure are invalid upon the next advanceToNextNode or close is called.

Return Value

0 on success, 1 if no attribute is found at index, and a negative value otherwise

Parameters

NameDescription
attributestructure to receive the attribute
indexzero-based attribute index in the current node