• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

parse xml

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am getting the exception
 
reply
    Bookmark Topic Watch Topic
  • New Topic