[#BloombergLP-balxml-Decoder-open-06] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Decoder.adoc[Decoder]::open :relfileprefix: ../../../ :mrdocs: 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. == Synopsis Declared in `<balxml_decoder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int open( char const* buffer, std::size_t length, char const* uri = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#