Vise XML på hjemmeside ud fra URL
Hej eksperterJeg har søgt og søgt på eksterten, men mangler overblik over, hvordan jeg får vist XML-indhold ud fra en URL. Det er vedr. Kelkoo API, hvor URL´en f.eks. er:
http://dk.shoppingapis.kelkoo.com/V2/productSearch?query=ipod&sort=default_ranking&start=1&results=1&show_products=1&show_subcategories=0&show_refinements=0&aid=xxxxxx×tamp=1291902109&hash=96ZS6wyY_QlxTGpNzN7G1Q--
og indholdet af URL´en er:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <ProductSearch xmlns="urn:yahoo:prods">
- <Products firstResultPosition="1" totalResultsAvailable="4579" totalResultsReturned="1">
- <Product type="Offer">
- <Offer id="fe81e2f75ac9423cf0be152fce9ded10">
<Url>http://ecs-dk.kelkoo.dk/ctl/go/sitesearchGo?.ts=1291902496077&.sig=YTTlbCkVq0cvDuXHSOl.5xnWJLI-&offerId=fe81e2f75ac9423cf0be152fce9ded10&searchId=107611478_1291902496077_1840937382&affiliationId=xxxxxxxx&country=dk&wait=true&ecs=ok&contextLevel=1&merchantid=7484723&comId=7484723&catId=122701</Url>
<CompareUrl>http://www.kelkoo.dk/p-mp3afspillere-multimedieafspillere-122701/apple-ipod-nano-8-gb-fjerde-generation-solv-19570186?partnerId=xxxxxxxx</CompareUrl>
<ProductName>Apple iPod nano 8GB - sølv</ProductName>
<Price currency="dkk">1199.00</Price>
<DeliveryCost>0</DeliveryCost>
<DeliveryTime>2-4 dage</DeliveryTime>
<Availability>Lagerstatus: PÃ¥ lager</Availability>
<Used>false</Used>
- <ListImage>
<Url>http://r.kelkoo.com/r/dk/7484723/122701/90/90/http%3A%2F%2Fimages.pricerunner.com%2Fproduct%2Fimage%2F152125632%2FApple-iPod-Nano-8GB-Silver-%286th-Generation%29.jpg/JNQ.KOgowS2O.kj9kgAYxe58KdqoGq2Ntg8.gdTYrQI-</Url>
<Height>90</Height>
<Width>90</Width>
</ListImage>
- <GridImage>
<Url>http://r.kelkoo.com/r/dk/7484723/122701/90/90/http%3A%2F%2Fimages.pricerunner.com%2Fproduct%2Fimage%2F152125632%2FApple-iPod-Nano-8GB-Silver-%286th-Generation%29.jpg/JNQ.KOgowS2O.kj9kgAYxe58KdqoGq2Ntg8.gdTYrQI-</Url>
<Height>90</Height>
<Width>90</Width>
</GridImage>
<Summary>Multi-touch Perfekt størrelse</Summary>
- <Merchant id="7484723">
<Name>Wupti.com</Name>
</Merchant>
<CatalogID>122701-19570186</CatalogID>
- <Category id="122701">
<Name>MP3-afspillere & Multimedieafspillere</Name>
</Category>
</Offer>
</Product>
</Products>
- <Warnings>
<Warning>The "merchantId" parameter is not given. The default value "-1" is used.</Warning>
<Warning>The "logicalType" parameter is not given. The default value "and" is used.</Warning>
</Warnings>
</ProductSearch>
I hvilken kode skal jeg indsætte URL´en? XMLparser? XML javascript?
Virkelig på forhånd tak !