aspose file tools*
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
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: 544
    
    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