从XML创建HTML表单 [英] Create HTML form from XML

查看:119
本文介绍了从XML创建HTML表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有许多不同的xml文件,我需要从html表单进行编辑。我希望动态生成表单(这些文件可以是任何有效的xml结构),并且我希望将修改后的xml内容保存回到数据库中。



当你知道xml的结构时,我已经看到了一些使用XSLT的例子,但在这种情况下,我不这样做。

所以,有两个真正的观点: / p>


  1. 如何从未知的xml结构动态创建html表单

  2. 如何保存修改后的内容返回到相同的XML结构


解决方案

,也许这就是你要找的...



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



祝你好运!


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

解决方案

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

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

Good Luck!

这篇关于从XML创建HTML表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆