summaryrefslogtreecommitdiff
path: root/src/xml.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml.cc')
-rw-r--r--src/xml.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xml.cc b/src/xml.cc
index 83d28c78..4d4db5d6 100644
--- a/src/xml.cc
+++ b/src/xml.cc
@@ -116,11 +116,11 @@ const char * document_t::lookup_name(int id) const
}
}
-void document_t::write(std::ostream& out) const
+void document_t::print(std::ostream& out) const
{
if (top) {
out << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
- top->write(out);
+ top->print(out);
}
}
@@ -222,19 +222,19 @@ void parent_node_t::add_child(node_t * node)
_last_child = node;
}
-void parent_node_t::write(std::ostream& out, int depth) const
+void parent_node_t::print(std::ostream& out, int depth) const
{
for (int i = 0; i < depth; i++) out << " ";
out << '<' << name() << ">\n";
for (node_t * child = children(); child; child = child->next)
- child->write(out, depth + 1);
+ child->print(out, depth + 1);
for (int i = 0; i < depth; i++) out << " ";
out << "</" << name() << ">\n";
}
-void terminal_node_t::write(std::ostream& out, int depth) const
+void terminal_node_t::print(std::ostream& out, int depth) const
{
for (int i = 0; i < depth; i++) out << " ";