• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

urgent pls help!

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
this could be very urgent and important to me. if anyone of u know this, pls help! how to i parse and read the tag "<wickets>" (at line 12) because at line 8 already has the tag "<wickets>". i tried to parse it but it always return me the "<wickets>" at line 8.
<result>
<team>
<bowler order="0">
<bowlerno>5</bowlerno>
<overs>4</overs>
<maidens>0</maidens>
<runsoff>18</runsoff>
<wickets>0</wickets>
<wides>0</wides>
<noballs>0</noballs>
</bowler>
<wickets> <!-- this line 12 -->
<fow order="0">
<whoout>1</whoout>
<runs>6</runs>
<overs>2.4</overs>
</fow>
</wickets>
</team>
</result>
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess You are using XPATH,
If so you can hardcode it like /wickets[2] or you can use FOR LOOP to go through all wickets nodes(the best way)..
Are you using DOM/SAX/XSLT ??
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic