RE: [libxml++] node iterators
- From: andy glew amd com
- To: libxmlplusplus-general lists sourceforge net, Murray Cumming Comneon com
- Subject: RE: [libxml++] node iterators
- Date: Fri, 23 May 2003 09:57:27 -0700
> 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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]