This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Retreiving the CDATA section in XML with DOM Parser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Retreiving the CDATA section in XML with DOM Parser" Watch "Retreiving the CDATA section in XML with DOM Parser" New topic
Author

Retreiving the CDATA section in XML with DOM Parser

sn omen
Greenhorn

Joined: May 23, 2013
Posts: 6
Sample XML



Main.java



Parser.java



With the above code I'm able to extract 'title', 'link' and 'pubDate'.
How can I extract 'href' value and the Text (IMF chief Christine Lagarde arrives at a Paris......) within the 'description' tag?
g tsuji
Ranch Hand

Joined: Jan 18, 2011
Posts: 499
    
    3
How can I extract 'href' value and the Text (IMF chief Christine Lagarde arrives at a Paris......) within the 'description' tag?

This is one way how you can do.
sn omen
Greenhorn

Joined: May 23, 2013
Posts: 6
Thanks.It worked fine.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Retreiving the CDATA section in XML with DOM Parser
 
Similar Threads
Parsing XML <media:content> tag problem.
Parse CDATA with XMLParser in this specific case for Android