21 #ifndef _LibXmlDomWriter_hxx_
22 #define _LibXmlDomWriter_hxx_
25 #include <libxml++/document.h>
47 mShouldCanonicalize=
false;
50 void write(std::ostream & target, xmlpp::Node * node)
52 xmlpp::Document document;
53 document.create_root_node_by_import(node);
54 write(target, &document);
57 void write(std::ostream & target, xmlpp::Document * node)
60 node->write_to_stream_formatted(target,
"UTF-8");
62 node->write_to_stream(target,
"UTF-8");
67 mShouldCanonicalize=shouldDo;
71 mShouldIndent=shouldDo;
75 bool mShouldCanonicalize;
81 #endif//_LibXmlDomWriter_hxx_