Connecting Tech Pros Worldwide Forums | Help | Site Map

xml parsing for an open project

ben
Guest
 
Posts: n/a
#1: Mar 19 '06
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
Guest
 
Posts: n/a
#2: Mar 19 '06

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.
Closed Thread