Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create HTML form from XML

I have a number of different xml files that I need to edit from an html form. I want the form to be generated dynamically (the files could any valid xml structure) and I want to save the modified xml content back to the database in the same structure.

I've seen a few examples of using XSLT when you know the structure of the xml, but in this case I don't.

So, two real points:

  1. How do I dynamically create an html form from an unknown xml structure
  2. How do I save the modified content back to the same xml structure
like image 888
Mark Pope Avatar asked Sep 17 '10 15:09

Mark Pope


People also ask

How do I display XML content in HTML?

To view raw XML source, try to select "View Page Source" or "View Source" from the browser menu. Note: In Safari 5 (and earlier), only the element text will be displayed. To view the raw XML, you must right click the page and select "View Source".

How is XML used in HTML?

XML Separates Data from HTML When displaying data in HTML, you should not have to edit the HTML file when the data changes. With XML, the data can be stored in separate XML files. With a few lines of JavaScript code, you can read an XML file and update the data content of any HTML page.

What are XML forms?

Extensible Markup Language (XML) is a standard for creating markup languages that describe the structure and meaning of data in a document. XML separates the content of a document from its presentation and provides a common format for transferring data across the World Wide Web (WWW) or company intranet.


1 Answers

I JUST ran across this site the other day, maybe it's what you're looking for...

http://www.datamech.com/XMLForm/

Good Luck!

like image 149
Troy Moon Avatar answered Nov 15 '22 09:11

Troy Moon