purephaser
Technical User
I want to select company name text for every company that has a campaign/media/print element. I'm using flash and am able to do this.
var company = XPath.selectNodes(this,"portfolio/company/name/text()");
and retrieve all companies.
Here is a snippet of the xml file
<portfolio>
<company ID = "106">
<name>ALPINE</name>
<campaign ID ="1">
<name>1</name>
<media>
<print>001.jpg</print>
</media>
</campaign>
</company>
</portfolio>
I tried to use
var company = XPath.selectNodes(this,"portfolio/company[campaign/media/print]");
but this returns a complete XML text not the company names.
var company = XPath.selectNodes(this,"portfolio/company/name/text()");
and retrieve all companies.
Here is a snippet of the xml file
<portfolio>
<company ID = "106">
<name>ALPINE</name>
<campaign ID ="1">
<name>1</name>
<media>
<print>001.jpg</print>
</media>
</campaign>
</company>
</portfolio>
I tried to use
var company = XPath.selectNodes(this,"portfolio/company[campaign/media/print]");
but this returns a complete XML text not the company names.