BloombergLP::balxml::Decoder::open

Open the reader to decode XML from the specified memory buffer.

Synopsis

Declared in <balxml_decoder.h>

int
open(
    char const* buffer,
    std::size_t length,
    char const* uri = 0);

Description

Open the associated Reader object (see Reader::open) to read XML data from memory at the specified buffer, with the specified length. The (optionally) specified uri is used for identifying the input document in error messages. Return 0 on success and non-zero otherwise.

Return Value

0 on success and non-zero otherwise

Parameters

NameDescription
bufferbuffer providing XML data
lengthnumber of bytes in buffer
urioptional URI identifying the input document in error messages