diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-01-25 20:49:53 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-01-25 20:49:53 +0000 |
commit | 46da814b4287f34d668f38779947e6941837079b (patch) | |
tree | 066b6844a9744dc25e0ca4d287c74e4d8155400f /src/pugixml.cpp | |
parent | 600c3814e991c12c2526a670eb9968f4c866d5d8 (diff) |
Added xml_node::print for stream to make migration easier
git-svn-id: http://pugixml.googlecode.com/svn/trunk@112 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixml.cpp')
-rw-r--r-- | src/pugixml.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp index ba25058..b6a1dd8 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -2647,6 +2647,13 @@ namespace pugi node_output(buffered_writer, *this, indent, flags, depth);
}
+ void xml_node::print(std::ostream& stream, const char* indent, unsigned int flags, unsigned int depth)
+ {
+ xml_writer_stream writer(stream);
+
+ print(writer, indent, flags, depth);
+ }
+
int xml_node::offset_debug() const
{
xml_node_struct* r = root()._root;
|