xpathiterator currentposition problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • gigs

    xpathiterator currentposition problem

    how can i set position to the beginning for another loop_
  • Peter Duniho

    #2
    Re: xpathiterator currentposition problem

    On Sat, 31 May 2008 10:51:05 -0700, gigs <gigs@hi.t-com.hrwrote:
    how can i set position to the beginning for another loop_
    What's XPathIterator? Do you mean XPathNodeIterat or? You just need to
    get another instance, retrieved the same way you got it the first time.

    If that's not what you mean, you'll need to elaborate, by explaining
    exactly what you're talking about and posting some actual code showing
    exactly what you're doing now and how you want to change it.

    Pete

    Comment

    • gigs

      #3
      Re: xpathiterator currentposition problem

      Peter Duniho wrote:
      On Sat, 31 May 2008 10:51:05 -0700, gigs <gigs@hi.t-com.hrwrote:
      >
      >how can i set position to the beginning for another loop_
      >
      What's XPathIterator? Do you mean XPathNodeIterat or? You just need to
      get another instance, retrieved the same way you got it the first time.
      >
      If that's not what you mean, you'll need to elaborate, by explaining
      exactly what you're talking about and posting some actual code showing
      exactly what you're doing now and how you want to change it.
      >
      Pete
      yes it is XpathNodeIterat or, i have some descendant in iterator. i need to go
      trough them and change value if current have attribute id = 1. than i need to go
      again trough iterator and write all nodes to file. but i cannot set position to
      first after changing some nodes in it. or maybe is there better way?

      Comment

      Working...