1

I am trying to retrieve particular object value to print in my console, I was able to print the entire XML. But I just need to get only few particular node values which I would like to save in my database.

informatik01
  • 15,174
  • 9
  • 67
  • 100
tom
  • 3,894
  • 5
  • 22
  • 34
  • 1
    If, as you say, you were able to unmarshal an XML file, which should mean you now have an object, representing this XML file, printing some of the properties of the object, would be as easy as just `System.out.println("Some value of my object: " + myObject.getSomeValue())`. Read this post: [Mapping XML to an object in Java](http://stackoverflow.com/a/16755094/814702). There is a link to the "JAXB hello world example", which is short and easy to understand. Hope this helps. – informatik01 Nov 08 '13 at 21:20

0 Answers0