blob: fb115f12144c72ac9bd951e514c1af4a5f12824c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <pch.hpp>
#include "transform.h"
#include <libxml++/document.h>
#include "ostreamWrapper.h"
class TransformXmlToStdStream : public TransformImpl<xmlpp::Document, ostreamWrapper> {
public:
void transform(const xmlpp::Document * doc, ostreamWrapper * o) const
{
const_cast<xmlpp::Document *>(doc)->write_to_stream_formatted(o->strm, "UTF-8");
}
};
DECLARE_TRANSFORM(TransformXmlToStdStream);
|