Modifying a XML element values with data from an HTML form
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Adrian_Brown
Posted On:   Saturday, November 25, 2006 07:53 AM

Hello experts I am new to XML but i am doing efforts to learn it. Here is my problem: I have created an XML using simpleXML. Now I need to parse it somehow and replace the values of some nodes. I made a html form that creates me the XML, but in this way I need to fill in ALL values for ALL nodes which i don't want. I only want to be able to modify just ONE (or two .. ) elements. With my form, if I only fill the attributes for one element, i get a XML file with one element that contain values and 4 empty attribute element nodes. Here is the xml file i created: http://www.bannerslaunge.com/projects/donnasa   More>>

Hello experts

I am new to XML but i am doing efforts to learn it.

Here is my problem:



I have created an XML using simpleXML. Now I need to parse it somehow and replace the values of some nodes.



I made a html form that creates me the XML, but in this way I need to fill in ALL values for ALL nodes which i don't want.



I only want to be able to modify just ONE (or two .. ) elements.



With my form, if I only fill the attributes for one element, i get a XML file with one element that contain values and 4 empty attribute element nodes.



Here is the xml file i created:



http://www.bannerslaunge.com/projects/donnasantander/images.xml



and here is the form that creates it:



http://www.bannerslaunge.com/projects/donnasantander/administrar.html



Can somebody help ???



I would like to be able to modify one element and the rest to remain unchanged. As far as i know it can be done using DOM.



Any help is highly appreciated.



Thank you in advance,

Adrian

   <<Less

Re: Modifying a XML element values with data from an HTML form

Posted By:   Roseanne_Zhang  
Posted On:   Thursday, December 7, 2006 11:09 AM

You can consider to use xslt, a very powerful language to transform XML to anything you want.


Thanks!

About | Sitemap | Contact