[#BloombergLP-balxml-Decoder-open-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Decoder.adoc[Decoder]::open :relfileprefix: ../../../ :mrdocs: `open` overloads == Synopses Declared in `<balxml_decoder.h>` Open the associated `Reader` object (see `Reader::open`) to read XML data from the file with the specified `filename`. Return 0 on success and non‐zero otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/balxml/Decoder/open-0e.adoc[open](char const* filename); ---- [.small]#xref:BloombergLP/balxml/Decoder/open-0e.adoc[_» more..._]# Open the associated `Reader` object (see `Reader::open`) to read XML data from the specified `stream`. The (optionally) specified `uri` is used for identifying the input document in error messages. Return 0 on success and non‐zero otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/balxml/Decoder/open-05.adoc[open]( std::istream& stream, char const* uri = 0); ---- [.small]#xref:BloombergLP/balxml/Decoder/open-05.adoc[_» more..._]# Open the associated `Reader` object (see `Reader::open`) to read XML data from the specified stream `buffer`. The (optionally) specified `uri` is used for identifying the input document in error messages. Return 0 on success and non‐zero otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/balxml/Decoder/open-0d.adoc[open]( std::streambuf* buffer, char const* uri = 0); ---- [.small]#xref:BloombergLP/balxml/Decoder/open-0d.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/balxml/Decoder/open-06.adoc[open]( char const* buffer, std::size_t length, char const* uri = 0); ---- [.small]#xref:BloombergLP/balxml/Decoder/open-06.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#