I trying write some code with the DOM parser. I can getElementsByTagName and something.. but i am so new in Java, and i do not know how can i get the Attributes (i know the getAttributes() method, but how can i use, and where?)..
Well i would like to ask any help with somebody who has a little time, and who could show me how I could to print the results to console like this:
BookID: 1097# Tittle: IMAGINE# Written by: Jonah Lehrer# ISBN: 1413494-413-54# Price: 37 (USD)# Publisher ID: K641#
BookID: 1010# Tittle: PRAGUE WINTER# Written by: Madeleine Albright, Bill Woodward# ISBN: 1156521-568-87# Price: 55 (EUR)# Publisher ID: K354#
BookID: 1063# Tittle: THE INNOCENT# Written by: David Baldacci# ISBN: 1052071-518-27# Price: 23 (GPB)# Publisher ID: K211#
Does someone have little time for it?
Thank you in advance for any help you can provide.
Unfortunately i have to do another things, therefore i cannot write any row in this theme. When i'll have time for it again (i hope as soon as possible), i Will be trying write a code with your logic.
Thanks for your patience.
subject: Printing the results to console (xml elements, attributes, nodes..)