By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,729 Members | 1,433 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,729 IT Pros & Developers. It's quick & easy.

XML append node without DOM

P: n/a
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

Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
Jul 17 '05 #2

P: n/a
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/
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.