From 5012e50dc16bfd2e0cc89ba1670f55b7ffa4f9cd Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Mon, 5 Jan 2009 22:22:52 +0000 Subject: Minor documentation update git-svn-id: http://pugixml.googlecode.com/svn/trunk@98 99668b35-9821-0410-8761-19e4c4f06640 --- docs/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/index.html b/docs/index.html index 421af95..9295147 100644 --- a/docs/index.html +++ b/docs/index.html @@ -386,7 +386,8 @@ an XML file were measured. // <?xml version="1.0"?><!--This is a test comment--><application><module name="A" folder="/work/app/module_a" status="85.4">Module A description</module><module name="B" folder="/work/app/module_b" /><module name="C" folder="/work/app/module_c" /></application> // Finally, you can print a subtree to any output stream (including cout) - doc.child("application").child("module").print(cout); + xml_writer_stream writer(cout); + doc.child("application").child("module").print(writer); // Output: // <module name="A" folder="/work/app/module_a" status="85.4">Module A description</module> @@ -549,9 +550,8 @@ off. The test system is AMD Sempron 2500+, 512 Mb RAM.

A: There is an undocumented define PUGIXML_NO_STL. If you uncomment the relevant line in pugixml header file, it will compile without any STL classes. The reason it is undocumented are that it will make some documented functions not available (specifically, xml_document::load, that -operates on std::istream, xml_node::path function, saving functions (xml_node::print, xml_document::save), -XPath-related functions and classes and as_utf16 and as_utf8 conversion functions). Otherwise, it will -work fine.

+operates on std::istream, xml_node::path function, XPath-related functions and classes and as_utf16/as_utf8 +conversion functions). Otherwise, it will work fine.

Q: Do paths that are accepted by first_element_by_path have to end with delimiter?

A: Either way will work, both /path/to/node/ and /path/to/node is fine.

-- cgit v1.2.3