Jump to content

CDATA parsed


unreal

Recommended Posts

Hi All,I have used the search function and tried looking for a solution b4 posting. I did obtain some help but i'm still left with one problem.I'm trying to build a custom rss reader from feeds generated from windows sharepoint services. In the description element, they use Cdata..

 <description><![CDATA[<div><b>Body:</b> <div class=ExternalClassBFCE56CD2A8F4E2BAF13C24F0AC00BEF><div>Test 1 2 3</div></div></div>]]></description>

I've tried using many ways (started with http://www.w3schools.com/dom/tryit.asp?fil...dom_cdata_data) to output the contents from CDATA but still failed.Values from all other elements (which are non cdata) worked fine.by using

 document.getElementById("author").innerHTML=xmlDoc.getElementsByTagName("author")[1].childNodes[0].nodeValue;

is there a specific way to do this? Having able to use the id. instead of the document.write in the example given.Any help will be greatly appreciated!!Thanks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...