summaryrefslogtreecommitdiff
path: root/src/xml.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml.h')
-rw-r--r--src/xml.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xml.h b/src/xml.h
index ff4b1e67..3ff3e360 100644
--- a/src/xml.h
+++ b/src/xml.h
@@ -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)));