[#BloombergLP-balxml-Reader-open-0e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Reader.adoc[Reader]::open :relfileprefix: ../../../ :mrdocs: `open` overloads == Synopses Declared in `<balxml_reader.h>` Set up the reader for parsing the XML file named by `filename`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual int xref:BloombergLP/balxml/Reader/open-07.adoc[open]( char const* filename, char const* encoding = 0) = 0; ---- [.small]#xref:BloombergLP/balxml/Reader/open-07.adoc[_» more..._]# Set up the reader for parsing the XML data in the specified `stream`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual int xref:BloombergLP/balxml/Reader/open-03.adoc[open]( std::streambuf* stream, char const* url = 0, char const* encoding = 0) = 0; ---- [.small]#xref:BloombergLP/balxml/Reader/open-03.adoc[_» more..._]# Set up the reader for parsing the XML data in the specified `buffer`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual int xref:BloombergLP/balxml/Reader/open-09.adoc[open]( char const* buffer, std::size_t size, char const* url = 0, char const* encoding = 0) = 0; ---- [.small]#xref:BloombergLP/balxml/Reader/open-09.adoc[_» more..._]# == Return Value 0 on success and non‐zero otherwise == Parameters [cols="1,4"] |=== | Name| Description | *filename* | path of the XML file to parse | *encoding* | optional document encoding override | *stream* | stream buffer containing the XML document | *url* | optional base URL for the document | *buffer* | memory containing the XML document | *size* | number of bytes in `buffer` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#