blob: d1e58b583b79cb890794146258c8b74213c33d8d (
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 TransformXmlToHttpStream : 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(TransformXmlToHttpStream);
|