#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2002
    Posts
    5
    Rep Power
    0

    need some xml clarification


    Hi All,

    I've been trying to understand xml, can you kind souls out there help to clarify some concepts for me:

    1) XML only represents data
    2) XSL/XSLT are the stylesheets used to present the XML data
    3) What is a parser? What does it do in regards to XML?
    4) Why do I need expat parser and sablotron? why doesn't the xml display in explorer 6?
    5) I'm trying to grab XML feeds with PHP and convert them into html files, do I still need the expat parser and sablotron to run on the server?

    TQ, woktoc
  2. #2
  3. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Oct 2001
    Location
    New Zealand
    Posts
    1,774
    Rep Power
    25
    1) XML only represents data

    Essentially yes, data in a flat file.

    2) XSL/XSLT are the stylesheets used to present the XML data

    Yup.

    3) What is a parser? What does it do in regards to XML?

    A parser is something that converts one thing to another, in javascript parseInt uses a parser to convert something to an integer. In XML terms a parser is a tool used to convert the XML markup into something more managable. It's pretty much something that extracts the data.

    4) Why do I need expat parser and sablotron? why doesn't the xml display in explorer 6?

    You don't need them, there is a variety of parsers available. XML does show in IE6 but as a collapsable tree. You could use XSLT in IE6 to generate something formatted. A parser allows the data to be put into variables and dealt with in the same way you could deal with database data. The Adobe SVG plugin is acted upon parsed data, and that's nothing like a collapsable tree.

    5) I'm trying to grab XML feeds with PHP and convert them into html files, do I still need the expat parser and sablotron to run on the server?

    You should be able to use the standard XML parser on the standard XML installation, with Expat (and not sablotron):

    http://www.php.net/manual/en/ref.xml.php

    Note the bit that says to not Apache now comes with expat as standard.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2002
    Posts
    5
    Rep Power
    0
    Thanks Binky, that helps a lot - woktoc

IMN logo majestic logo threadwatch logo seochat tools logo