Recommendations for parsing XML with PHP

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

    Recommendations for parsing XML with PHP

    I am a novice with PHP, in fact so novice, that I come from the
    Windows world. I have successfully set up my Slackware distro on my
    laptop, downloaded, compiled and installed Apache 2.x and PHP 5.x. We
    have a configuration file an application of ours uses, that I wish to
    convert to XML and will be writing a WEB UI to change the XML. What
    PHP classes, source, scripts (what ever one calls it and please let me
    know) are there to read in a XML file, manipulate it and write back
    up. I am looking for some sample and hopefully instruction on how to
    install the extension (or what ever it might end up being)'



    Thanks
    Ralph Krausse
  • Kyle Hayes

    #2
    Re: Recommendations for parsing XML with PHP

    From Sams Teach Yourself PHP in 24 hours page 410 -
    "In this section we will examin the mosta stable of PHP's XML tools. The
    parser functions enable us to access XML documents quickly and with minimal
    programming.
    The functions Jim Clarke's Expat Library (XML Parser Toolkit), which is
    available from http://www.jclark.com/xml/expat.html. If you are running
    Apache 1.3.7 or later, you will already have Expat bundled with your server,
    and you may find that the XML functions are available to you without the
    explicit compile options. Otherwise you should install Expat and add
    --with-xml
    to your configure options.....The parser model is 'event-based'. As
    components of the XML document are reached, user-created callback functions
    will be called."

    Hope this helps,
    Kyle

    "Ralph Krausse" <gordingin@cons iliumsoft.com> wrote in message
    news:49eb6317.0 410121325.6885d 14c@posting.goo gle.com...[color=blue]
    >I am a novice with PHP, in fact so novice, that I come from the
    > Windows world. I have successfully set up my Slackware distro on my
    > laptop, downloaded, compiled and installed Apache 2.x and PHP 5.x. We
    > have a configuration file an application of ours uses, that I wish to
    > convert to XML and will be writing a WEB UI to change the XML. What
    > PHP classes, source, scripts (what ever one calls it and please let me
    > know) are there to read in a XML file, manipulate it and write back
    > up. I am looking for some sample and hopefully instruction on how to
    > install the extension (or what ever it might end up being)'
    >
    >
    >
    > Thanks
    > Ralph Krausse[/color]


    Comment

    Working...