• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Xml parsing using common digester

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to pares a xml file using apache common -digester and put in a class.
XML file is like
---------------------
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<orders>
<orderID>10292</orderID>
<devDate>23-Jun-2008</devDate>
<order>
<item>apple</order>
<price>111</price>
</order>
<order>
<item>orange</order>
<price>334</price>
</order>
<order>
<item>asd</order>
<price>334</price>
</order>
</orders>

please provide code to parse and store in a class using digester .

thanks,
Kanis
 
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As per the ranch policy, DoYourOwnHomework and ShowSomeEffort

If you tell us what you have tried so far and what not works. We can help you further.
 
Anish Kuti
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have do this do n't found as per my req
Can any body HELP(no Advise please) me
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here are a couple of introductory articles regarding Digester that should get you going: http://www.onjava.com/pub/a/onjava/2002/10/23/digester.html and http://www.javaworld.com/javaworld/jw-10-2002/jw-1025-opensourceprofile.html
 
Forget Steve. Look at this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic