Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

parse xml

 
angelin precilla
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am getting null value for xmldoc and Root.
I think my xml file is not reading correctly from the location....

Refer to my xml also....


Can anyone help me in parsing this file

[ UD: added linebreaks to preserve layout, and turned off smilies ]
[ March 11, 2008: Message edited by: Ulf Dittmer ]
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting null value for xmldoc and Root.


You need to consult the truly marvelous table in the org.w3c.dom.Node documentation. There you will find that Document elements and Element objects return null as the nodeValue() - that is why your output says "null"
Your Document is getting created, you are just using the wrong method to look at it.

Bill
 
angelin precilla
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to this parsing....
Can you help me to solve this this problem...
could you please provide me the solution
 
angelin precilla
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting the exception
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic