# Display XML as alternative content?

**URL:** <https://forum.kirupa.com/t/display-xml-as-alternative-content/268225>\
**Category:** programming\
**Created:** [August 11, 2008, 3:41pm UTC](https://forum.kirupa.com/t/display-xml-as-alternative-content/268225 "2008-08-11T15:41:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marathon\_ben](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@marathon\_ben](https://forum.kirupa.com/u/marathon_ben)\
**Post date:** [August 11, 2008, 3:41pm UTC](https://forum.kirupa.com/t/display-xml-as-alternative-content/268225/1 "2008-08-11T15:41:05Z")

</div>

I have a full flash site and all the text is located in an XML file. For example:

```auto
<site>
		
<info1>
	<infoTitle1>About Us</infoTitle1>
	<infoText1><![CDATA[<p></p>
			<p>Lorem ipsum dolor sit amet, <a href="http://www.marathonpress.com"><u>consectetur</u></a> adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
	]]>
	</infoText1>
</info1>

</site>

```

I was thinking - wouldn’t it be great to display the text from that xml file as alternative content for viewers without flash? I found a javascript that will grab the data and display it in the html, but it fails once it reaches the CDATA, which is really the heart of the content.

Any suggestions?
