XML to webpage
I know it must be possible but can I find an answer !
I've been given an XML file about 33Mb which contains the content to a multi page web site. I'm told if I use this correctly it will load in from the host site keeping the new site up to date.
Good theory if it works, just struggling on getting it to do so!
Can anyone point in the right direction a good starting point?
XML files are converted to HTML using style sheets (XSL), but you may have a file containing individual web pages packed into an XML format. You may also have a site that runs directly from that XML file, in which case you copy the file to the server in one piece.
We need to view some of the info to be able to tell you which one you have. To view the file open it in Notepad, copy a few lines from the top and post them here.
Here is the header and first product from the XML file - few bits changed to xxx
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE merchantProductFeed SYSTEM "http://www.xxxxx.com/DTD/affiliate/datafeed.1.3.dtd">
<merchant id="1111" name="xxxxxxxx">
<prod id="126197359"><pId>184</pId><text><name>Gxxx Cottage, Newton Upon Rawcliffe, North York Moors &amp; Coast (Ref 184)</name><desc>Gateside is a former threshing barn which has been sympathetically converted to a high standard and is located in the Yorkshire village of Newton upon Rawcliffe near to Pickering. The property is an &#39;upside down&#39; house and has three bedrooms (one double, one twin and one single) which with the addition of a family bathroom makes it suitable for five people. Also in the cottage is a fitted kitchen with a dining area and a sitting room with a woodburning stove. Outside the cottage is a courtyard with furniture and off road parking for two cars. Gateside is a charming base to discover the wide variety of attractions on offer in this beautiful part of Britain.</desc></text><uri><awTrack>http://www.awin1.com/pclick.php?p=126197359&a=33493&m=3317</awTrack><awImage>http://images.productserve.com/preview/3317/126197359.jpg</awImage><mLink>http://www.xxxxxx.co.uk/cottages/184.php</mLink><mImage>http://cottageimages.xxxxxxxxxxxx.co.uk/184_10.jpg</mImage></uri><price><buynow>332.00</buynow><delivery>0.00</delivery></price><cat><awCatId>629</awCatId><awCat>Accommodation</awCat><mCat>Accommodation</mCat></cat><brand/></prod>
Looks to me like the web site runs from the XML file, in which case you copy the whole file over the top of the existing XML file - after making a backup, of course. To confirm this look at the files on the web site and you should see an XML file with the same name.