Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

urgent pls help!

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • 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
  • 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 ??
    Bookmark Topic Watch Topic
  • New Topic