Function load_file

Summary

#include <src/pugixml.hpp>

(1) xml_parse_result load_file(const char *path, unsigned int options=parse_default, xml_encoding encoding=encoding_auto)

(2) xml_parse_result load_file(const wchar_t *path, unsigned int options=parse_default, xml_encoding encoding=encoding_auto)

Function overload

Synopsis

#include <src/pugixml.hpp>

xml_parse_result load_file(const char *path, unsigned int options=parse_default, xml_encoding encoding=encoding_auto)

Description

Load document from file.

Mentioned in

Source

Lines 7200-7208 in src/pugixml.cpp. Line 1069 in src/pugixml.hpp.

PUGI__FN xml_parse_result xml_document::load_file(const char* path_, unsigned int options, xml_encoding encoding)
{
    reset();
    using impl::auto_deleter; // MSVC7 workaround
    auto_deleter<FILE> file(impl::open_file(path_, "rb"), impl::close_file);
    return impl::load_file_impl(static_cast<impl::xml_document_struct*>(_root), file.data, options, encoding, &_buffer);
}

Synopsis

#include <src/pugixml.hpp>

xml_parse_result load_file(const wchar_t *path, unsigned int options=parse_default, xml_encoding encoding=encoding_auto)

Description

No description yet.

Mentioned in

Source

Lines 7210-7218 in src/pugixml.cpp. Line 1070 in src/pugixml.hpp.

PUGI__FN xml_parse_result xml_document::load_file(const wchar_t* path_, unsigned int options, xml_encoding encoding)
{
    reset();
    using impl::auto_deleter; // MSVC7 workaround
    auto_deleter<FILE> file(impl::open_file_wide(path_, L"rb"), impl::close_file);
    return impl::load_file_impl(static_cast<impl::xml_document_struct*>(_root), file.data, options, encoding, &_buffer);
}





Add Discussion as Guest

Log in