1 Reply Latest reply on Jun 6, 2008 2:05 PM by dilbertje

    XML + webservices = no filtering??

    dilbertje Level 1
      Greetings!

      I have the following situation:

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

      [code]<getBronnenResult xmlns=" http://tempuri.org/" xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd=" http://www.w3.org/2001/XMLSchema">
      <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>[/code]

      I already added the tempuri namespace to my project.

      when I do the following code

      [code]trace("=> " + tempResult.id);[/code]

      I get this result
      <id xmlns=" http://tempuri.org/" xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd=" http://www.w3.org/2001/XMLSchema">83</id>

      But I can't seem to filter it...

      so this doesn't seem to work

      [code]trace("=> " + tempResult.(child(id)=='83'));[/code]

      or any variation on this code...


      does someone have a solution for this problem???