简体   繁体   English

从XML创建HTML表单

[英]Create HTML form from XML

I have a number of different xml files that I need to edit from an html form. 我有许多不同的xml文件,需要从html表单进行编辑。 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. 我希望表单是动态生成的(文件可以是任何有效的xml结构),并且想要将修改后的xml内容以相同的结构保存回数据库。

I've seen a few examples of using XSLT when you know the structure of the xml, but in this case I don't. 当您知道xml的结构时,我已经看到了一些使用XSLT的示例,但是在这种情况下,我没有。

So, two real points: 因此,有两个要点:

  1. How do I dynamically create an html form from an unknown xml structure 如何从未知的xml结构动态创建html表单
  2. How do I save the modified content back to the same xml structure 如何将修改后的内容保存回相同的xml结构

I JUST ran across this site the other day, maybe it's what you're looking for... 我前几天刚浏览了这个网站,也许这就是您想要的...

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

Good Luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM