• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Xml parsing using common digester

 
Anish Kuti
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • 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
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic