Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get text using DOM parser  RSS feed

 
kapil Gupta
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am parsing the following XML using a DOM parser, how do i get the text from the xml below ("some text here")



Thanks,
Kapil
 
kapil Gupta
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
got it:
if nodeType == 3 then the value is contained in that node
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!