• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Digester not able to convert xml file into java object

 
raj malhotra
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20725
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am also facing the same problem.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there Neha,

Please DontWakeTheZombies

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

Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic