Xml?!

Discussion in 'HTML & Website Design' started by Ape, Jun 6, 2007.

  1. #1
    I am very confused on how to get information from xml although I have researched online for a long time. I want to, for example, display the information between the tags of an XML file into a php or html page.

    How could I get this from an xml file specifically:

    <comment_count>254</comment_count>


    If any of you are familiar with the Youtube API, that is what I am trying to use. But I have no experience with xml at all. How do I use it?
     
    Ape, Jun 6, 2007 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You're going to have to use a server-side programming language to parse the XML data into plain HTML. If you're going to use PHP for this, try checking the PHP Manual at www.php.net or ask on the PHP boards here. :)
     
    Dan Schulz, Jun 6, 2007 IP
  3. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Well, that could be parsed and transformed on client side too. It's like AJAX but with XSLT transformations on browser, but for advanced users only.
     
    ajsa52, Jun 6, 2007 IP
  4. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Oh, I know, but the use of AJAX really turns me off to it. I prefer to use as little JavaScript as possible (which is what AJAX really is, when you think about it) to ensure that the content gets delivered regardless of support (or the lack thereof) for JavaScript - as well as those users who are paranoid enough to turn it off.
     
    Dan Schulz, Jun 6, 2007 IP