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> 
4
  • already here stackoverflow.com/questions/652159/… Commented Nov 13, 2013 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? Commented Nov 13, 2013 at 13:12
  • I have also tried to send response by settings xhr.setRequestHeader('content-type', 'text/xml'); but still getting same result.. Commented Nov 13, 2013 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. Commented Nov 13, 2013 at 14:09

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.