outputting XML from PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Aarron

    outputting XML from PHP

    Today I decided to teach myself both PHP and XML ... so I decided to
    make a little address book. After I finished it I found this:
    http://www.tonymarston.net/php-mysql/sablotron.html which describes more
    or less what I did.

    The main difference is that users are able to add entries into my
    address book. When an entry is added I get all of the address book info
    as post data. I take this data then print out a whole new xml file.

    Is there a better way to do this? Right now 95% of the PHP I wrote
    saves a new XML file ... the other 4 lines transform the XML with some
    XSL and displays the results.

    I suppose Im too used to working with databases where I can (more or
    less) write "Insert Whatever into AddressBook"

  • Tony Marston

    #2
    Re: outputting XML from PHP

    Aarron <spaceboy_2001@ hotmail.com> wrote in message news:<4PNSa.474 100$3C2.1290434 3@news3.calgary .shaw.ca>...[color=blue]
    > Today I decided to teach myself both PHP and XML ... so I decided to
    > make a little address book. After I finished it I found this:
    > http://www.tonymarston.net/php-mysql/sablotron.html which describes more
    > or less what I did.[/color]

    I wonder who wrote that?
    [color=blue]
    > The main difference is that users are able to add entries into my
    > address book. When an entry is added I get all of the address book info
    > as post data. I take this data then print out a whole new xml file.
    >
    > Is there a better way to do this? Right now 95% of the PHP I wrote
    > saves a new XML file ... the other 4 lines transform the XML with some
    > XSL and displays the results.
    >
    > I suppose Im too used to working with databases where I can (more or
    > less) write "Insert Whatever into AddressBook"[/color]

    I would suggest storing your data in a database, such as MySQL, and
    using XML after extracting portions for inclusion in a web page. XML
    is not a DBMS therefore it does not have the power and flexibility of
    a DBMS.

    Tony Marston
    This is Tony Marston's web site, containing personal information plus pages devoted to the Uniface 4GL development language, XML and XSL, PHP and MySQL, and a bit of COBOL

    Comment

    Working...