# Xml + webservices = no filtering?

**URL:** <https://forum.kirupa.com/t/xml-webservices-no-filtering/262474>\
**Category:** Uncategorized\
**Created:** [June 6, 2008, 9:25am UTC](https://forum.kirupa.com/t/xml-webservices-no-filtering/262474 "2008-06-06T09:25:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lone\_wolf](https://avatars.discourse-cdn.com/v4/letter/l/839c29/32.png) [@Lone\_wolf](https://forum.kirupa.com/u/Lone_wolf)\
**Post date:** [June 6, 2008, 9:25am UTC](https://forum.kirupa.com/t/xml-webservices-no-filtering/262474/1 "2008-06-06T09:25:44Z")

</div>

Greetings!

I have the following situation:

I use a webservice to get my information. This returns an xml in the following state:

```auto
<getBronnenResult xmlns="[http://tempuri.org/" xmlns:soap="[URL="http://schemas.xmlsoap.org/soap/envelope/"]http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="[URL="http://www.w3.org/2001/XMLSchema-instance"]http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="[URL="http://www.w3.org/2001/XMLSchema"]http://www.w3.org/2001/XMLSchema">](http://tempuri.org/)
  <Bronnen>
    <id>81</id>
    <sCount>260</sCount>
    <title>Plant grown from cell culture tissue in test tube</title>
    <number>100121</number>
    <width>180</width>
    <height>134</height>
    <croptype/>
    <growthstage/>
    <source>BASF</source>
    <photographer/>
    <photocredit>Print free of charge. Please use following photo credit "Copyright © BASF".</photocredit>
    <region>Europe</region>
    <country>Germany</country>
    <city/>
    <disease/>
    <captionnotes/>
    <numberofpeople>0</numberofpeople>
    <nameofmodel/>
    <resolution>72</resolution>
    <bitdepth>24</bitdepth>
    <colourspace>RGB</colourspace>
    <filetype>JPEG</filetype>
    <filesize>47725</filesize>
    <subject>Health,Integrated pest management (IPM),Research and development</subject>
    <category>Biotechnology,Crop protection,Science</category>
  </Bronnen>

```

I already added the tempuri namespace to my project.

when I do the following code

```auto
trace("=> " + tempResult.id);

```

I get this result  
\<id xmlns="[http://tempuri.org/" xmlns:soap="[URL=“http://schemas.xmlsoap.org/soap/envelope/”]http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="[URL=“http://www.w3.org/2001/XMLSchema-instance”]http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="[URL=“http://www.w3.org/2001/XMLSchema”]http://www.w3.org/2001/XMLSchema"\>83](http://tempuri.org/)

But I can’t seem to filter it…

so this doesn’t seem to work

```auto
trace("=> " + tempResult.(child(id)=='83'));

```

or any variation on this code…

does someone have a solution for this problem???

---

<div class="post-metadata">

**Author:** ![Lone\_wolf](https://avatars.discourse-cdn.com/v4/letter/l/839c29/32.png) [@Lone\_wolf](https://forum.kirupa.com/u/Lone_wolf)\
**Post date:** [June 6, 2008, 9:03pm UTC](https://forum.kirupa.com/t/xml-webservices-no-filtering/262474/2 "2008-06-06T21:03:53Z")

</div>

After 14h of searching: the solution (i think)

**[U][SIZE=2][LEFT]public**[/U] [/SIZE]**[SIZE=2][COLOR=#339966]function**[/COLOR][/SIZE][SIZE=2] photoDataHandler(event:ResultEvent):[/SIZE]**[SIZE=2][COLOR=#0033ff]void**[/COLOR][/SIZE][SIZE=2]{  
[/SIZE]**[SIZE=2][COLOR=#6699cc]var**[/COLOR][/SIZE][SIZE=2] xml:XML = [/SIZE]**[SIZE=2][COLOR=#0033ff]new**[/COLOR][/SIZE][SIZE=2] XML(event.result.toString());  
[/SIZE]**[SIZE=2][COLOR=#6699cc]var**[/COLOR][/SIZE][SIZE=2] lijst:XMLList = xml.getBronnenResult;  
[/SIZE]**[SIZE=2][COLOR=#6699cc]var**[/COLOR][/SIZE][SIZE=2] tmp:XMLList = lijst.Bronnen.(child([/SIZE]**[SIZE=2][COLOR=#990000]“id”**[/COLOR][/SIZE][SIZE=2]).toString() == [/SIZE]**[SIZE=2][COLOR=#990000]“1764”**[/COLOR][/SIZE][SIZE=2]);  
[/SIZE]**[SIZE=2][COLOR=#cc6666]trace**[/COLOR][/SIZE][SIZE=2]([/SIZE]**[SIZE=2][COLOR=#990000]"temp = "**[/COLOR][/SIZE][SIZE=2] + tmp);[/LEFT]  
}  
[/SIZE]
