# Convert string to XML - how?

**URL:** <https://forum.kirupa.com/t/convert-string-to-xml-how/253474>\
**Category:** flash\
**Created:** [March 1, 2008, 7:15pm UTC](https://forum.kirupa.com/t/convert-string-to-xml-how/253474 "2008-03-01T19:15:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![slindberg](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@slindberg](https://forum.kirupa.com/u/slindberg)\
**Post date:** [March 1, 2008, 7:15pm UTC](https://forum.kirupa.com/t/convert-string-to-xml-how/253474/1 "2008-03-01T19:15:27Z")

</div>

I want to take the following information, which I have as a string in Flash, and convert it into an XML object in AS3:

// information  
\<list\>  
\<a\>  
\<pageTitle\>What is a Change Request?\</pageTitle\>  
\<keyword1\>Change request\</keyword1\>  
\<keyword2\>CR\</keyword2\>  
\<keyword3\>\</keyword3\>  
\</a\>  
\</list\>

// my information as a string  
var myStr:String = “\<list\>\<a\>\<pageTitle\>What is a Change Request?\</pageTitle\>\<keyword1\>Change request\</keyword1\>\<keyword2\>CR\</keyword2\>\<keyword3\>\</keyword3\>\</a\>\</list\>”

// How to convert this string to an XML object?  
var myXML:XML = do what with myStr from above ???

Any input is greatly appreciated!
