This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes How to get text using DOM parser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to get text using DOM parser" Watch "How to get text using DOM parser" New topic
Author

How to get text using DOM parser

kapil Gupta
Ranch Hand

Joined: Dec 17, 2001
Posts: 89
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

Joined: Dec 17, 2001
Posts: 89
got it:
if nodeType == 3 then the value is contained in that node
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get text using DOM parser
 
Similar Threads
Need help in modifying XML text value using DOm parser
How to read XML content by Java?
Invalid/Special XML characters such as &, ', "
Help needed with DOJO and JSP
while-loop