# Getting attribute from CDATA-formatted XML

**URL:** <https://forum.kirupa.com/t/getting-attribute-from-cdata-formatted-xml/312693>\
**Category:** flash\
**Created:** [August 10, 2010, 6:34pm UTC](https://forum.kirupa.com/t/getting-attribute-from-cdata-formatted-xml/312693 "2010-08-10T18:34:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nhilez](https://avatars.discourse-cdn.com/v4/letter/n/51bf81/32.png) [@nhilez](https://forum.kirupa.com/u/nhilez)\
**Post date:** [August 10, 2010, 6:34pm UTC](https://forum.kirupa.com/t/getting-attribute-from-cdata-formatted-xml/312693/1 "2010-08-10T18:34:35Z")

</div>

I have an XML with a node formatted as follows:  
\<headline2 width=“500”\>\<![CDATA[\<spane class=‘Headline’\>\<span class=‘LinkTo’\>\<a href="/us/success/collateral.aspx"\>your collateral\<br /\>\<span class=‘HeadlineSmall’\>get info about it here\</span\>\</a\>\</span\>\</span\>]]\>

How would I retrieve the URL contained in the a href attribute? I have tried a number of ways: @a, @ahref, @href, as well as CDATA.@a, CDATA.@ahref, CDATA.@href and am stumped.
