diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-07-31 00:07:08 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-07-31 00:07:08 +0100 |
| commit | d8c9cbec9d87f28da338350880b7618b94f4da81 (patch) | |
| tree | c1e853ab494ac3731982c075046215f670153232 /src/xml.h | |
| parent | 9a9d4e014c16be88d72914a9480343445bc785a5 (diff) | |
Bits.
Diffstat (limited to 'src/xml.h')
| -rw-r--r-- | src/xml.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -48,8 +48,9 @@ protected: } template <class T> - std::list<boost::shared_ptr<T> > sub_nodes (std::string name) { - std::list<xmlpp::Node*> n = xml_nodes (name); + std::list<boost::shared_ptr<T> > sub_nodes (std::string name, std::string sub) { + XMLNode p (xml_node (name)); + std::list<xmlpp::Node*> n = p.xml_nodes (sub); std::list<boost::shared_ptr<T> > r; for (typename std::list<xmlpp::Node*>::iterator i = n.begin(); i != n.end(); ++i) { r.push_back (boost::shared_ptr<T> (new T (*i))); |
