473,402 Members | 2,046 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

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

Jul 17 '05 #1
2 4912
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: J Krugman | last post by:
This question refers to the DOM. I would like to dynamically append some small amount of text to the all-text content of a <pre> node. I suppose that I could extract the existing content, and...
2
by: Scott | last post by:
hi friend's, i m new in both things php and in this group. but i have some basic knowledge of php and DOM in php. here is my problem, i have one textfield for add a new main node (not main like:...
3
by: Jonathan Buckland | last post by:
Can someone give me an example how to append data without having to load the complete XML file. Is this possible? Jonathan
10
by: Rich Wallace | last post by:
I'm sure there's a very weasy way to do this, I've been running hard and fast on several things at once and just may be at the point of overthinking this... I receive an incoming XML document...
3
by: David Elliott | last post by:
I wrote an application to scrape a database and create an XSD file which will be annotated by a map file in order to create a Typed DataSet. I was wondering if I could do the annotation using...
4
by: glbdev | last post by:
Hi, I posted this in "microsoft.public.xml.msxml-webrelease" but now realize it should probably have been in the ASP group. Sorry if that causes any problems. I have an XML document like:...
2
by: Freddy Coal | last post by:
Hi, I would like append a new node with elements in a existing XML file, how make that?. For example: <?xml version="1.0" encoding="utf-8" ?> - <Configuracion> - <Estaciones>...
7
by: vunet.us | last post by:
I cannot append a node from XML into the HTML dom (textarea field) in IE. But I can for the text input html elements! Is anyone aware of this and what is the possible solution? Thanks.
2
by: kvnil | last post by:
Cheers, I've been struggling all day today with this, maybe you could give me some useful pointers. I would like to (elegantly) concatenate a string out of all node values in a map. I have to...
1
by: Aswanth | last post by:
I'm Using Asp.Net with C#.. & Using XML Files.. Please check this.. <Page_Details> <Page="HomePage.aspx" Time="10:30:20:32636" Type="S" ID = "1" Category_ID="41" /> <Page="HomePage.aspx"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.