aspose file tools*
The moose likes Other Open Source Projects and the fly likes Digester not able to convert xml file into java object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Digester not able to convert xml file into java object" Watch "Digester not able to convert xml file into java object" New topic
Author

Digester not able to convert xml file into java object

raj malhotra
Ranch Hand

Joined: Feb 22, 2007
Posts: 285
Hi i have simple files i know i am not able to map the xml elements with the class properties.Can somebody point me out where i am doing wrong?
My code is as follow:-

shop.xml



DigesterDemo.java



Shop.java



Book.java

[ February 26, 2008: Message edited by: raj malhotra ]
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18985
    
    8

i know i am not able to map the xml elements
How do you know this? Have you run that code? Does it produce error messages, and if so what are they? Or does it just do something different than what you expect? If so, what?
raj malhotra
Ranch Hand

Joined: Feb 22, 2007
Posts: 285
In DigesterDemo.java i am trying to print the Shop instance and its toString() method is invoking but its printing -

I think i should get book instance in Shop so i said that there is some problem with mapping.
Thanks
Raj
Neha Kathuriaa
Greenhorn

Joined: Sep 16, 2008
Posts: 25
I am also facing the same problem.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hi there Neha,

Please DontWakeTheZombies

Can you start a new thread with your code sample and problem please.

Thanks!


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Digester not able to convert xml file into java object