1

It gives me blanks instead of "Strengthened leadership in Poland and in Portugal" text when i am trying to get text inside of CDATA from tag using below code?

Code:

var story = item.getElementsByTagName("HighLightedResume").item(0).text;

My XML is as below:

<Items>
<Item>
<HighLightedResume><![CDATA[Strengthened leadership in Poland and in Portugal]]></HighLightedResume>
</Item>
</Items> 
user2672420
  • 303
  • 2
  • 4
  • 14
  • already here http://stackoverflow.com/questions/652159/parsing-xml-with-cdata-with-jquery – Brij Raj Singh - MSFT Nov 13 '13 at 12:48
  • Thanks Brij..but there was to much said and i am not able to understand that...Can you please indicate directly what is missing in my code? – user2672420 Nov 13 '13 at 13:12
  • I have also tried to send response by settings xhr.setRequestHeader('content-type', 'text/xml'); but still getting same result.. – user2672420 Nov 13 '13 at 13:15
  • 1
    You are basically saying *"The other thread contains too much text so I did not read it. Please write down the code for me."* Think about that for a moment. – Tomalak Nov 13 '13 at 14:09

0 Answers0