From 5a72d17d026aa6a1bb0cd32f413963ef9f24ab64 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 19 May 2007 03:11:00 +0000 Subject: Node compilation is beginning to work. --- src/node.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/node.cc') diff --git a/src/node.cc b/src/node.cc index 55b388e0..b03f5f5a 100644 --- a/src/node.cc +++ b/src/node.cc @@ -40,7 +40,7 @@ const char * node_t::name() const return *document().lookup_name(name_id()); } -optional node_t::get_attr(const string& _name) const +optional node_t::get_attr(const string& _name) const { optional name_id = document().lookup_name_id(_name); if (name_id) @@ -71,12 +71,11 @@ void output_xml_string(std::ostream& out, const string& str) void node_t::print_attributes(std::ostream& out) const { - if (attributes) { - typedef attributes_t::nth_index<0>::type attributes_by_order; + if (attributes) foreach (const attr_pair& attr, attributes->get<0>()) out << ' ' << *document().lookup_name(attr.first) << "=\"" << attr.second << "\""; - } + IF_VERIFY() out << " type=\"parent_node_t\""; } -- cgit v1.2.3