blob: 618765d85523203abdc990654791d49ba7a4815b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright Vespa.ai. 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();
}
}
|