BloombergLP::balxml::Utf8ReaderWrapper::open

open overloads

Synopses

Declared in <balxml_utf8readerwrapper.h>

Set up the reader for parsing the XML file named by filename.

virtual
int
open(
    char const* filename,
    char const* encoding = 0) override;
» more...

Set up the reader for parsing the XML data in the specified stream.

virtual
int
open(
    std::streambuf* stream,
    char const* url = 0,
    char const* encoding = 0) override;
» more...

Set up the reader for parsing the XML data in the specified buffer.

virtual
int
open(
    char const* buffer,
    std::size_t size,
    char const* url = 0,
    char const* encoding = 0) override;
» more...

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
filenamepath of the XML file to parse
encodingoptional document encoding override
streamstream buffer containing the XML document
urloptional base URL for the document
buffermemory containing the XML document
sizenumber of bytes in buffer