From: <and...@am...> - 2003-05-23 16:57:52
|
> For begin(), just a mistake of me. What I wanted to write is : > > for( xmlpp::NodeIterator i = node.children_begin(), How different is this from for( xmlpp::NodeIterator i = node.children().begin(), Or for( xmlpp::NodeSet::iterator i = node.get_children().begin(), ? What you are trying to avoid is iterating, constructing the NodeSet, and then reiterating. I suggest the way to do that is to make node.get_children() (or node.children(), or...) return, not an STL set(node),. In other words, I am agreeing with Murray that it is a separate class. Or, rather, a separate API, that might just delegate to the node class. |