• XML to webpage

    Author
    Topic
    #490273

    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.

    Viewing 3 reply threads
    Author
    Replies
    • #1403578

      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

    • #1403587

      Here is the header and first product from the XML file – few bits changed to xxx

      184Gxxx Cottage, Newton Upon Rawcliffe, North York Moors & Coast (Ref 184)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 'upside down' 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.http://www.awin1.com/pclick.php?p=126197359&a=33493&m=3317http://images.productserve.com/preview/3317/126197359.jpghttp://www.xxxxxx.co.uk/cottages/184.phphttp://cottageimages.xxxxxxxxxxxx.co.uk/184_10.jpg332.000.00629AccommodationAccommodation

    • #1403809

      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

    • #1404402

      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

    Viewing 3 reply threads
    Reply To: XML to webpage

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: