Click here to Skip to main content
15,922,584 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
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
XML
<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>
Posted
Updated 30-Jan-11 19:54pm
v2
Comments
JF2015 31-Jan-11 1:54am    
Added code formatting.
Abhinav S 31-Jan-11 2:01am    
Which programming language are you using?

1 solution

I believe you are trying to do something like below:
XML for beginners and experts[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900