Thread
:
Extracting contents of CDATA section in XML using Javascript
View Single Post
02-11-2011, 12:09 PM
PM User
|
#
8
Kor
Red Devil Mod
Join Date: Apr 2003
Location: Bucharest, ROMANIA
Posts: 8,478
Thanks: 58
Thanked 379 Times in 375 Posts
CDATA sections are also nodes of the DOM. You must simply circle through nodes and see which one has the property
nodeType==4
and retrieve the text inside as being its
firstChild.NodeValue
__________________
KOR
Offshore programming
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Kor
View Public Profile
Find More Posts by Kor