Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML parse

Status
Not open for further replies.

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
 
The load method or equivalent requires a valid url only, not necessarily of .xml. You can feed the load with the including the query parameters, and that is what a valid url means as well.
 
It worked on the live preview of dreamweaver, but when i preview on firefox or ie, it does not work.
i made a research and for security purpose broswers do not allow to make a xmlrequest on another server.
any suggestion on how i can resolve this problem???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top