hello
I have a xml like this:
<book>
<Publication> myPublication0</Publication>
<Publication> myPublication<bookName> my book</bookName></Publication>
<Publication> myPublication1</Publication>
<Publication> myPublication2<bookName> my book2</bookName>asd</Publication>
</book>
and i want to read through java program and want output like
myPublication0
myPublication<bookName> my book</bookName>
myPublication1
myPublication2<bookName> my book2</bookName>asd
please tell how to get given output