From 0a97bad6608a2b1ea01ae6ce18bab63abf0c9210 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Wed, 21 Feb 2007 19:41:31 +0000 Subject: Merged 0.3 in trunk git-svn-id: http://pugixml.googlecode.com/svn/trunk@68 99668b35-9821-0410-8761-19e4c4f06640 --- docs/html/classpugi_1_1xml__document.html | 365 ++++++++++++++++++++++++++++++ 1 file changed, 365 insertions(+) create mode 100644 docs/html/classpugi_1_1xml__document.html (limited to 'docs/html/classpugi_1_1xml__document.html') diff --git a/docs/html/classpugi_1_1xml__document.html b/docs/html/classpugi_1_1xml__document.html new file mode 100644 index 0000000..c3a4bd4 --- /dev/null +++ b/docs/html/classpugi_1_1xml__document.html @@ -0,0 +1,365 @@ + + +pugixml: pugi::xml_document Class Reference + + + + +
+
+
+
+ +

pugi::xml_document Class Reference

Inheritance diagram for pugi::xml_document:

Inheritance graph
+ + + +
[legend]
Collaboration diagram for pugi::xml_document:

Collaboration graph
+ + + +
[legend]
List of all members.

Detailed Description

+Document class (DOM tree root). +

+This class has noncopyable semantics (private copy ctor/assignment operator). +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

xml_document ()
 Default ctor, makes empty document.
~xml_document ()
 Dtor.
bool load (std::istream &stream, unsigned int options=parse_default)
 Load document from stream.
bool load (const char *contents, unsigned int options=parse_default)
 Load document from string.
bool load_file (const char *name, unsigned int options=parse_default)
 Load document from file.
bool parse (char *xmlstr, unsigned int options=parse_default)
 Parse the given XML string in-situ.
bool parse (const transfer_ownership_tag &, char *xmlstr, unsigned int options=parse_default)
 Parse the given XML string in-situ (gains ownership).
bool save_file (const char *name, const char *indent="\t", unsigned int flags=format_default)
 Save XML to file.
+void precompute_document_order ()
 Compute document order for the whole tree Sometimes this makes evaluation of XPath queries faster.
+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + + + + + + + + + +
bool pugi::xml_document::load std::istream &  stream,
unsigned int  options = parse_default
+
+ + + + + +
+   + + +

+Load document from stream. +

+

Parameters:
+ + + +
stream - stream with xml data
options - parsing options
+
+
Returns:
success flag
+
+

+ + + + +
+ + + + + + + + + + + + + + + + + + +
bool pugi::xml_document::load const char *  contents,
unsigned int  options = parse_default
+
+ + + + + +
+   + + +

+Load document from string. +

+

Parameters:
+ + + +
contents - input string
options - parsing options
+
+
Returns:
success flag
+
+

+ + + + +
+ + + + + + + + + + + + + + + + + + +
bool pugi::xml_document::load_file const char *  name,
unsigned int  options = parse_default
+
+ + + + + +
+   + + +

+Load document from file. +

+

Parameters:
+ + + +
name - file name
options - parsing options
+
+
Returns:
success flag
+
+

+ + + + +
+ + + + + + + + + + + + + + + + + + +
bool pugi::xml_document::parse char *  xmlstr,
unsigned int  options = parse_default
+
+ + + + + +
+   + + +

+Parse the given XML string in-situ. +

+The string is modified; you should ensure that string data will persist throughout the document's lifetime. Although, document does not gain ownership over the string, so you should free the memory occupied by it manually.

+

Parameters:
+ + + +
xmlstr - readwrite string with xml data
options - parsing options
+
+
Returns:
success flag
+
+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
bool pugi::xml_document::parse const transfer_ownership_tag,
char *  xmlstr,
unsigned int  options = parse_default
+
+ + + + + +
+   + + +

+Parse the given XML string in-situ (gains ownership). +

+The string is modified; document gains ownership over the string, so you don't have to worry about it's lifetime. Call example: doc.parse(transfer_ownership_tag(), string, options);

+

Parameters:
+ + + +
xmlstr - readwrite string with xml data
options - parsing options
+
+
Returns:
success flag
+
+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
bool pugi::xml_document::save_file const char *  name,
const char *  indent = "\t",
unsigned int  flags = format_default
+
+ + + + + +
+   + + +

+Save XML to file. +

+

Parameters:
+ + + + +
name - file name
indent - indentation string
flags - formatting flags
+
+
Returns:
success flag
+
+


Generated on Wed Feb 21 22:19:52 2007 for pugixml by  + +doxygen 1.4.6-NO
+ + -- cgit v1.2.3