XML append node without DOM

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


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-16-2003
DrewM
 
Posts: n/a
Default XML append node without DOM

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

Reply With Quote
  #2 (permalink)  
Old 10-16-2003
Ian P. Christian
 
Posts: n/a
Default Re: XML append node without DOM

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
Reply With Quote
  #3 (permalink)  
Old 10-17-2003
Zurab Davitiani
 
Posts: n/a
Default Re: XML append node without DOM

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/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:31 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0