From 687ee1a7c34f7484b715ac6d88b84a980247f6ac Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 14 May 2007 11:09:35 +0000 Subject: document_builder_t is now working. --- src/node.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/node.h') diff --git a/src/node.h b/src/node.h index 86b468e8..20e741c7 100644 --- a/src/node.h +++ b/src/node.h @@ -102,8 +102,9 @@ public: return *polymorphic_downcast(this); } - virtual value_t to_value() const = 0; + virtual value_t to_value() const = 0; virtual void print(std::ostream& out) const = 0; + virtual void print_attributes(std::ostream& out) const; const char * name() const; nameid_t name_id() const { @@ -168,6 +169,7 @@ public: T * create_child(nameid_t _name_id) { T * child = new T(_name_id, document(), *this); children.push_back(child); + return child; } void delete_child(node_t * child) { -- cgit v1.2.3