From a73424aeffa5bbdf36c610dae96cd28dc81f4e66 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Sun, 31 Oct 2010 07:26:31 +0000 Subject: docs: Minor quickstart cleanup (add changes from manual, add links to manual sections) git-svn-id: http://pugixml.googlecode.com/svn/trunk@785 99668b35-9821-0410-8761-19e4c4f06640 --- docs/manual.qbk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/manual.qbk') diff --git a/docs/manual.qbk b/docs/manual.qbk index db81f96..4b85cf6 100644 --- a/docs/manual.qbk +++ b/docs/manual.qbk @@ -1208,7 +1208,7 @@ This is a simple example of saving XML document to file ([@samples/save_file.cpp [section:stream Saving document to C++ IOstreams] [#xml_document::save_stream] -To enhance interoperability pugixml provides functions for saving document to any object which implements C++ std::ostream interface. This allows you to save documents to any standard C++ stream (i.e. file stream) or any third-party compliant implementation (i.e. Boost Iostreams). Most notably, this allows for easy debug output, since you can use `std::cout` stream as saving target. There are two functions, one works with narrow character streams, another handles wide character ones: +To enhance interoperability pugixml provides functions for saving document to any object which implements C++ `std::ostream` interface. This allows you to save documents to any standard C++ stream (i.e. file stream) or any third-party compliant implementation (i.e. Boost Iostreams). Most notably, this allows for easy debug output, since you can use `std::cout` stream as saving target. There are two functions, one works with narrow character streams, another handles wide character ones: void xml_document::save(std::ostream& stream, const char_t* indent = "\t", unsigned int flags = format_default, xml_encoding encoding = encoding_auto) const; void xml_document::save(std::wostream& stream, const char_t* indent = "\t", unsigned int flags = format_default) const; @@ -1252,7 +1252,7 @@ This is a simple example of custom writer for saving document data to STL string [section:subtree Saving a single subtree] [#xml_node::print][#xml_node::print_stream] -While the previously described functions saved the whole document to the destination, it is easy to save a single subtree. The following functions are provided: +While the previously described functions save the whole document to the destination, it is easy to save a single subtree. The following functions are provided: void xml_node::print(std::ostream& os, const char_t* indent = "\t", unsigned int flags = format_default, xml_encoding encoding = encoding_auto, unsigned int depth = 0) const; void xml_node::print(std::wostream& os, const char_t* indent = "\t", unsigned int flags = format_default, unsigned int depth = 0) const; -- cgit v1.2.3