return n.front ();
}
+list<shared_ptr<cxml::Node> >
+cxml::Node::node_children () const
+{
+ xmlpp::Node::NodeList c = _node->get_children ();
+
+ list<shared_ptr<cxml::Node> > n;
+ for (xmlpp::Node::NodeList::iterator i = c.begin (); i != c.end(); ++i) {
+ n.push_back (shared_ptr<Node> (new Node (*i)));
+ }
+
+ return n;
+}
+
list<shared_ptr<cxml::Node> >
cxml::Node::node_children (string name) const
{
boost::shared_ptr<Node> node_child (std::string) const;
boost::shared_ptr<Node> optional_node_child (std::string) const;
+ std::list<boost::shared_ptr<Node> > node_children () const;
std::list<boost::shared_ptr<Node> > node_children (std::string) const;
xmlpp::Node* node () const {