xml parsing for an open project

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

    xml parsing for an open project

    Hi,

    I'm coding an open project.
    The configuration is stored in an XML file.
    Should I,

    1. parse this XML file with the PHP XML parsing expat library

    2. parse this XML file with an Pear package included

    I'm not sure everybody running php 4.x have the XML expat library...
    including a pear package for that could be a solution.
    What do you think ?

    TIA,

    --
    ben


  • Ian Collins

    #2
    Re: xml parsing for an open project

    ben wrote:[color=blue]
    > Hi,
    >
    > I'm coding an open project.
    > The configuration is stored in an XML file.
    > Should I,
    >
    > 1. parse this XML file with the PHP XML parsing expat library
    >
    > 2. parse this XML file with an Pear package included
    >
    > I'm not sure everybody running php 4.x have the XML expat library...
    > including a pear package for that could be a solution.
    > What do you think ?
    >[/color]
    Use the parser if it is there, depending on how big he XML files is,you
    could save significant runtime. Provide a Pear package as a fall-back.

    How common is it not to have the XML parser?

    --
    Ian Collins.

    Comment

    Working...