blob: c687609df748b815c77e6003d3bf1fcc79509a90 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "xmlserializable.h"
#include "xmlstream.h"
#include <sstream>
namespace vespalib::xml {
std::string
XmlSerializable::toXml(const std::string& indent) const
{
std::ostringstream ost;
XmlOutputStream xos(ost, indent);
printXml(xos);
return ost.str();
}
}
|