wood burning stoves*
The moose likes XML and Related Technologies and the fly likes Xml parsing using common digester Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Xml parsing using common digester" Watch "Xml parsing using common digester" New topic
Author

Xml parsing using common digester

Anish Kuti
Greenhorn

Joined: May 12, 2008
Posts: 29
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

Joined: Feb 25, 2007
Posts: 1638

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.


apigee, a better way to API!
Anish Kuti
Greenhorn

Joined: May 12, 2008
Posts: 29
I have do this do n't found as per my req
Can any body HELP(no Advise please) me
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41034
    
  43
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


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Xml parsing using common digester
 
Similar Threads
How to get over DOM?
Mapping a qualified association with Hibernate
normalize( ) in DOM
writing Java client for web service based on XSD
i have written code for dom but output given from the exception caught in the code