aspose file tools*
The moose likes Java in General and the fly likes parse xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "parse xml" Watch "parse xml" New topic
Author

parse xml

angelin precilla
Ranch Hand

Joined: Sep 11, 2007
Posts: 33
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

Joined: Mar 22, 2000
Posts: 12778
    
    5
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

Joined: Sep 11, 2007
Posts: 33
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

Joined: Sep 11, 2007
Posts: 33
I am getting the exception
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: parse xml