xml to html

Discussion in 'HTML & Website Design' started by nozero, Oct 29, 2009.

  1. #1
    I want to use the google base api and code it into my site.

    maybe i got this all wrong but i read about google base api which basically i can call a url like this http://www.google.com/base/feeds/snippets?q=%22mp3+player%22

    what i would like to do is have the results show in my web page but designed defrently.

    so my question is does anyone know where i can read about how to do this?
     
    nozero, Oct 29, 2009 IP
  2. m30

    m30 Guest

    Messages:
    116
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You want to use the API, for what? maps? search results? etc
     
    m30, Oct 29, 2009 IP
  3. CodedCaffeine

    CodedCaffeine Peon

    Messages:
    130
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    What you'll need is some type of scripting language to parse through the XML feed. If I was making the page described, it would be made with PHP (but it's just my preference).

    So this is how I'd go about it:

    You'd make a PHP file that handles the URL parsing and displays the data out. There is a PHP library (built in) called SimpleXML
    http://php.net/manual/en/book.simplexml.php

    You can use that to parse through all the data on the XML page, then create a custom 'viewing' file or build it into the same php page to display it how you want. Then from there it can be styled with CSS or whatever needed.

    It's also possible to do XML parsing with Javascript, but I'm not familiar with it.

    I hope this helps you get an idea of how it's done. :)
     
    CodedCaffeine, Oct 29, 2009 IP
  4. forextrendalerts

    forextrendalerts Guest

    Messages:
    132
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I need to convert a receiving xml into html and save it as html.
    This has to be done as the application where it later shall be used does not support xml format....So with the xsl I need to run through a directory, and convert all xml into html.
    Is there a freeware out there that handles this?
     
    forextrendalerts, Oct 30, 2009 IP
  5. nozero

    nozero Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks for the info, we are using classic asp, do you know where there are tutorials for this kind of thing? I am trying to use the google base api
     
    nozero, Nov 2, 2009 IP