https://github.com/hubgit/table-xml-editor
Edit simple XML files in HTML
https://github.com/hubgit/table-xml-editor
Last synced: 8 months ago
JSON representation
Edit simple XML files in HTML
- Host: GitHub
- URL: https://github.com/hubgit/table-xml-editor
- Owner: hubgit
- Created: 2010-05-11T09:06:01.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2010-05-12T09:50:33.000Z (almost 16 years ago)
- Last Synced: 2025-06-02T14:39:30.284Z (8 months ago)
- Language: PHP
- Homepage:
- Size: 96.7 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
This project is a demonstration of using the "contenteditable" attribute to edit an XML file in a web browser.
When index.php is loaded, it reads an XML file ('data.xml' is included as an example) and converts it to an HTML table.
The cells of the table are made editable using the contenteditable attribute.
When the HTML table is saved, it is converted back to XML and saved to the original file ('data.xml').
Future possibilities:
* Use XSL for the transformations.
* Perform the transformations in Javascript.
* Allow an XML file to be uploaded for editing, then output when saved.