# Extract value from xml-tag

**URL:** <https://forum.kirupa.com/t/extract-value-from-xml-tag/233311>\
**Category:** flash\
**Created:** [July 22, 2007, 9:04pm UTC](https://forum.kirupa.com/t/extract-value-from-xml-tag/233311 "2007-07-22T21:04:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rascreek](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@rascreek](https://forum.kirupa.com/u/rascreek)\
**Post date:** [July 22, 2007, 9:04pm UTC](https://forum.kirupa.com/t/extract-value-from-xml-tag/233311/1 "2007-07-22T21:04:22Z")

</div>

Hi there!

I got an xml-file with the following structure:

\<?xml version=“1.0” encoding=“UTF-8”?\>  
\<p:ticker xmlns:p=“[http://www.synyx.de/werbeplattform](http://www.synyx.de/werbeplattform)”  
xmlns:xsi=“[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)”  
xsi:schemaLocation=“[http://www.test.de/](http://www.test.de/) ticker.xsd “\>  
\<p:entry\>  
\<p:headline\>Headline1\</p:headline\>  
\<p:teaser\>teaser1\</p:teaser\>  
[COLOR=Red][COLOR=Black]\<p:content target=[/COLOR]”\_self”[COLOR=Black]\>[http://www.test.de](http://www.test.de)\</p:content\>[/COLOR][/COLOR]  
\</p:entry\>  
\</p:ticker\>

I need to extract the [COLOR=Red]"\_self"[/COLOR] from target somehow. Can anybody help me and tell me how I can access the target value?

Thanks in advance,

ras
