Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 11th, 2011, 05:28 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default update a XML document with PHP

Hi,

I am looking for a way to edit a XML document with PHP. My investigations so far have led to me to the proposal of using XSLTProcessor to output the XML file with values being editable in textboxes that the user can edit. Then I can write a parser to take the input and update the XML file and save it.

However, it is the mechanism of parsing the input fields and saving them that i'm unsure about. Has anyone done something like this before and what is the best way of doing this?

The XML document is fairly simple from a structural point of view, e.g.:

Code:
<root>
    <stadiums>
        <stadium>
            <name>Ibrox Stadium</name>
            <team>Glasgow Rangers</team>
            <capacity>50149</capacity>
        </stadium>
        <stadium>
            <name>Somerset Park</name>
            <team>Ayr United</team>
            <capacity>12000</capacity>
        </stadium>
        ....and so on....
    </stadiums>
</root>
Thanks,
Picco
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk





Similar Threads
Thread Thread Starter Forum Replies Last Post
Faster way to update external links in a large document utilityplayer469 Word VBA 7 March 30th, 2011 10:40 AM
Split xml file with result document and javax.xml.transform.Transformer. nisargmca XSLT 3 January 12th, 2010 06:26 AM
UpdateListItem Web Service to Update Sharepoint Document Library ismailc C# 2005 0 January 7th, 2010 03:10 AM
document.LastModified not working correctly in php Annoyamouse PHP How-To 1 December 7th, 2004 10:04 AM
xml document androger XML 2 November 19th, 2003 05:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.