This is a discussion on XML append node without DOM within the PHP Language forums, part of the PHP Programming Forums category; Note: I'm not using the xmldom functions because I need to maintain compatibility with current typical installs. Say I ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Note: I'm not using the xmldom functions because I need to maintain
compatibility with current typical installs. Say I have an XML file like this on my disk: <list> <item>foo</item> <item>bar</item> </list> What's the best way to add another <item /> to this file without using a dom? I'm open to any suggestions that'll work well on a typical 4.1.2 install. thank you! :) drew |
|
|||
|
DrewM wrote:
> I'm open to any suggestions that'll work well on a typical 4.1.2 install. If you have a look in the group archive, someone suggested a library to me about 3 days ago, which is an XML library completly in PHP. Also, look at pear.php.net for thier XML stuff, Ian P. Christian |
|
|||
|
DrewM wrote on Thursday 16 October 2003 12:49:
> Note: I'm not using the xmldom functions because I need to maintain > compatibility with current typical installs. > > Say I have an XML file like this on my disk: > > <list> > <item>foo</item> > <item>bar</item> > </list> > > What's the best way to add another <item /> to this file without using a > dom? ActiveLink PHP XML Package. :) http://www.active-link.com/intranet/software.php http://sourceforge.net/projects/php-xml/ OR your favorite source. The latest version is 0.3.2 Note, that you don't need _any_ of PHP's XML packages to use ActiveLink PHP XML Package since it's purely implemented in PHP (as Ian pointed out too). It's available under LGPL, comes with full class documentation, and a useful example/tutorial script to get you started. Good luck! -- Business Web Solutions ActiveLink, LLC www.active-link.com/intranet/ |