• 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

Counting child nodes

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
We are developing an application which will compare two xml files and update the new xml file in case of changes. We are considering two scenarios here, update and add. For parsing new xml file we are using DOM parser, so that we can move back and forth and for parsing old xml file we are using Stax parser. We were able to incoroporate update functianolity. But while implementing add functionality, we are not able to count the number of child nodes for each parent node. Is there a way to count number of child nodes (means breadth of parent node) using Stax parser. Thanks in advance for your help

Regards
Sai Korada
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic