flaviocm
Programmer
- Mar 23, 2009
- 3
Let me try to explain what i am trying to do:
i subscribed to a service where i can search for good quality aerial pictures. The way it works i have to use a html form that submits all my search criteria to their server using the get method and returns me a xml code.
The problem i am having is that url of the new window is not a file.xml aAnd most of the parse samples i found online works just for a file that is on my server.
i dont want to save manually the code in a file for every single search.
So how can i parse this code?
the url of the new window looks like this:
"
and the xml like this:
<?xml version="1.0" encoding="UTF-8"?>
<search type="address" latitude="30.149830" longitude="-95.404401" precision="parcel">
<images count="5" views="NESWO" format="jpeg">
<image>
<view>N</view>
<heading>349.43</heading>
<level>N</level>
<day>17</day>
<month>02</month>
<year>2008</year>
<imagepolygon>
<ul latitude="30.153050" longitude="-95.407370"/>
<ur latitude="30.153653" longitude="-95.401062"/>
<lr latitude="30.148766" longitude="-95.400931"/>
<ll latitude="30.148217" longitude="-95.405345"/>
</imagepolygon>
<thumbnail>
<url>
</url>
</thumbnail>
<clip>
<width>400</width>
<height>400</height>
<imagepolygon>
<ul latitude="30.150133" longitude="-95.404756"/>
<ur latitude="30.150192" longitude="-95.404241"/>
<lr latitude="30.149544" longitude="-95.404064"/>
<ll latitude="30.149486" longitude="-95.404554"/>
</imagepolygon>
<url>
</url>
</clip>
<preview>
<width>401</width>
<height>267</height>
<url>
</url>
</preview>
<fullimage>
<width>4008</width>
<height>2672</height>
<url>
</url>
</fullimage>
</image>
</images>
</search>
Thanks
i subscribed to a service where i can search for good quality aerial pictures. The way it works i have to use a html form that submits all my search criteria to their server using the get method and returns me a xml code.
The problem i am having is that url of the new window is not a file.xml aAnd most of the parse samples i found online works just for a file that is on my server.
i dont want to save manually the code in a file for every single search.
So how can i parse this code?
the url of the new window looks like this:
"
and the xml like this:
<?xml version="1.0" encoding="UTF-8"?>
<search type="address" latitude="30.149830" longitude="-95.404401" precision="parcel">
<images count="5" views="NESWO" format="jpeg">
<image>
<view>N</view>
<heading>349.43</heading>
<level>N</level>
<day>17</day>
<month>02</month>
<year>2008</year>
<imagepolygon>
<ul latitude="30.153050" longitude="-95.407370"/>
<ur latitude="30.153653" longitude="-95.401062"/>
<lr latitude="30.148766" longitude="-95.400931"/>
<ll latitude="30.148217" longitude="-95.405345"/>
</imagepolygon>
<thumbnail>
<url>
</url>
</thumbnail>
<clip>
<width>400</width>
<height>400</height>
<imagepolygon>
<ul latitude="30.150133" longitude="-95.404756"/>
<ur latitude="30.150192" longitude="-95.404241"/>
<lr latitude="30.149544" longitude="-95.404064"/>
<ll latitude="30.149486" longitude="-95.404554"/>
</imagepolygon>
<url>
</url>
</clip>
<preview>
<width>401</width>
<height>267</height>
<url>
</url>
</preview>
<fullimage>
<width>4008</width>
<height>2672</height>
<url>
</url>
</fullimage>
</image>
</images>
</search>
Thanks