插入xml [英] insertion in to xml
本文介绍了插入xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有以下格式的xml文件.问题是如何从UI页面/表单向该文件插入多个值?我有查看页面,其中包含应用程序,模块,表,列,数据库等的文本框,并带有一个插入按钮,单击该按钮应将其插入此文件.所以,请告诉我该怎么做
I have a xml file in the below format. The problem is that how can I insert multiple values to this file from the UI page/form? I have View page which contains textbox for application,module,table,colums,database etc)with one insert button on click it should insert in to this file. So, please tell me how to do that one
<applications>
<application id="1" name="XYZ">
<module id="101" name="XYZ">
<tablename id="1011" name="XYZ">
<columnname id="10111">XYZ</columnname>
<columnname id="10112">XYZ</columnname>
</tablename>
</module>
<module id="201" name="XYZ">
<tablename id="2011" name="XYZ">
<columnname id="10111">XYZ</columnname>
</tablename>
<tablename id="2012" name="XYZ">
<columnname id="20121">XYZ</columnname>
<columnname id="20122">XYZ</columnname>
</tablename>
<tablename id="2013" name="XYZ">
<columnname id="10111">XYZ</columnname>
</tablename>
</module>
</application>
<databases>
<database>XYZ</database>
<database>XYZ</database>
</databases>
<connections>
<connection>XYZ</connection>
<connection>sdfasdfasd</connection>
</connections>
</applications>
推荐答案
我相信您正在尝试执行以下操作:
面向初学者和专家的XML [
I believe you are trying to do something like below:
XML for beginners and experts[^]
这篇关于插入xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文