AJAX Forums

How do I add elements to an xml document with the php xml dom?

This is a discussion on How do I add elements to an xml document with the php xml dom? within the XML and XSLT forums, part of the Beginners AJAX category; For example, given the xml file below: <?xml version="1.0" encoding="utf-8"?> <root> <child>abcdefgh</child> &...


Go Back   AJAX Forums > Beginners AJAX > XML and XSLT

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
Old 11-24-2007, 09:17 PM   #1 (permalink)
Junior Member
 
Join Date: Nov 2007
Posts: 1
Rep Power: 0 John C is on a distinguished road
How do I add elements to an xml document with the php xml dom?

For example, given the xml file below:

<?xml version="1.0" encoding="utf-8"?>
<root>
<child>abcdefgh</child>
<secondchild>ijklm</secondchild>
</root>

How would I add an element <thirdchild> after <secondchild> with the php xml dom?
__________________
John C is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Hiding/Showing form elements jamfitz001 AJAX Questions 0 06-20-2008 12:50 PM
When parsing XML in PHP how is it possible to skip tag elements that I don't want.? For once please answer. XML and XSLT 0 11-12-2007 03:45 PM
Is it possible to Remove all CSS Elements and Encoding from a Page using Elliot N XHTML and CSS 1 06-23-2007 11:39 AM
A document that describes what elelments exist in an XML document and shelia.boswell XML and XSLT 1 06-21-2007 10:10 PM
XML Schema: Can we use simple type and complex type elements in a same document? maddy005 XML and XSLT 0 05-22-2007 12:32 PM


All times are GMT -4. The time now is 06:41 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5
Copyright ©2006 - 2008, AJAXwith.com