Results 1 to 5 of 5

Thread: XML to webpage

  1. #1
    Star Lounger
    Join Date
    Dec 2010
    Location
    Scotland
    Posts
    74
    Thanks
    0
    Thanked 2 Times in 2 Posts

    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?

    Thanks.

  2. Subscribe to our Windows Secrets Newsletter - It's Free!

    Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #2
    Platinum Lounger
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    3,551
    Thanks
    7
    Thanked 225 Times in 213 Posts
    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.

    cheers, Paul

  4. #3
    Star Lounger
    Join Date
    Dec 2010
    Location
    Scotland
    Posts
    74
    Thanks
    0
    Thanked 2 Times in 2 Posts
    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">
    <merchantProductFeed>
    <merchant id="1111" name="xxxxxxxx">
    <prod id="126197359"><pId>184</pId><text><name>Gxxx Cottage, Newton Upon Rawcliffe, North York Moors &amp;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 &amp;#39;upside down&amp;#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&amp;a=33493&amp;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>

  5. #4
    Platinum Lounger
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    3,551
    Thanks
    7
    Thanked 225 Times in 213 Posts
    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.

    cheers, Paul

  6. #5
    New Lounger
    Join Date
    Jan 2010
    Location
    Phoenix, AZ, USA
    Posts
    4
    Thanks
    4
    Thanked 0 Times in 0 Posts
    XML is data. It doesn't auto-magically become a web page. Somehow, it has to be read as input by the HTML page using HTML 5 with JavaScript placing the data where it needs to go on the page, or by constructing a web page on the fly using an XSL transform and then being displayed. You need to find out more about the how this is done on the destination site today. For HTML5 and other web technologies, you might want to take a look at w3schools.com. Hope this makes sense to you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •