Hello All,
I have a XML file that looks like this...
<?xml version="1.0" encoding="ISO-8859-1" ?>
<Forms>
<entry>
<FormName>data0</FormName>
<FileName>data0.txt</FileName>
<FormGroup>1</FormGroup>
</entry>
<entry>
<FormName>data1</FormName>
<FileName>data1.txt</FileName>
<FormGroup>1</FormGroup>
</entry>
<entry>
<FormName>data33</FormName>
<FileName>data_33.doc</FileName>
<FormGroup>5</FormGroup>
</entry>
</Forms>
I'm not sure how to crrectly read it into an ASP/Form... and then write it back to an XML file.
Let me add more details
Currently I load the XML above into a form using XSL, here is a sample...
<xsl:for-each select="ITVCForms/entry">
<tr>
<td>
<table border="1" width="100%" cellspacing="0" cellpadding="3">
<tr>
<td width="100%"><font face="Arial" size="3">
<xsl:element name="INPUT">
<xsl:attribute name="TYPE">text</xsl:attribute>
<xsl:attribute name="NAME">FormName</xsl:attribute>
<xsl:attribute name="VALUE"><xsl:value-of select="FormName"/></xsl:attribute>
<xsl:attribute name="SIZE">55</xsl:attribute>
</xsl:element>
</font></td>
</tr>
</table>
</td>
</tr>
</xsl:for-each>
Now when I submit and process this page I just end up with the original 3 FormName values in 1, and the structure has changed.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<Forms>
<FormName>data0 data1 data33</FormName>
</Forms>
I am loading and submitting Filename & FileGroup, but they are not written to the new XML file for some reason... Your help is very much appreciated (at least stear me to a good example if you could)
~Thanks, Jim
I have a XML file that looks like this...
<?xml version="1.0" encoding="ISO-8859-1" ?>
<Forms>
<entry>
<FormName>data0</FormName>
<FileName>data0.txt</FileName>
<FormGroup>1</FormGroup>
</entry>
<entry>
<FormName>data1</FormName>
<FileName>data1.txt</FileName>
<FormGroup>1</FormGroup>
</entry>
<entry>
<FormName>data33</FormName>
<FileName>data_33.doc</FileName>
<FormGroup>5</FormGroup>
</entry>
</Forms>
I'm not sure how to crrectly read it into an ASP/Form... and then write it back to an XML file.
Let me add more details
Currently I load the XML above into a form using XSL, here is a sample...
<xsl:for-each select="ITVCForms/entry">
<tr>
<td>
<table border="1" width="100%" cellspacing="0" cellpadding="3">
<tr>
<td width="100%"><font face="Arial" size="3">
<xsl:element name="INPUT">
<xsl:attribute name="TYPE">text</xsl:attribute>
<xsl:attribute name="NAME">FormName</xsl:attribute>
<xsl:attribute name="VALUE"><xsl:value-of select="FormName"/></xsl:attribute>
<xsl:attribute name="SIZE">55</xsl:attribute>
</xsl:element>
</font></td>
</tr>
</table>
</td>
</tr>
</xsl:for-each>
Now when I submit and process this page I just end up with the original 3 FormName values in 1, and the structure has changed.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<Forms>
<FormName>data0 data1 data33</FormName>
</Forms>
I am loading and submitting Filename & FileGroup, but they are not written to the new XML file for some reason... Your help is very much appreciated (at least stear me to a good example if you could)
~Thanks, Jim