Modifying the data in the XML data island in IE is much easier than imagined.
First you need to bind the field to the HTML control with editing function. The HTML control with editing function mentioned here is the input box (input type="text"), the selection box ( select), check box (input type=checkbox), radio button (input type=radio), etc. The binding method is as follows:
<inputtype="text"datasrc="#XMLData"datafld="title">
This means that the input box is bound to the "title" field in the data island named "XMLData". When the user enters data in this input box, the customer will be changed immediately. The field value on the end (there is no actual writing back to the XML file).
If you want to add data, you can call the recorddataset.adNew method in the data island object .
<inputtype="button"value="NewRecord"onclick="XMLData.recordset.addNew">
The above is the detailed content of Data modification and addition of XML data island. For more information, please follow other related articles on the PHP Chinese website!