Question
Trying to create a XML file from an ASP Form
I have an ASP form on my website that generates a XML data
file, but there are a few problems with it. First, when I generate
the file, it creates a new file every time a user clicks on
"Submit" and I would like the data to just be appended to a
particular, existing XML file...how can I append the data to the
XML file? The code I am currently using is shown below.
Secondly, I need to nest/repeat certain fields within the XML file. Basically, I want the XML file to look like this (I simplified the code for ease of writing, so don't bother with the syntax):
<Recipe>
<RecipeName>
<SubmittedBy>
<Ingredients>
<Amount>
<Unit>
<Ingredient>
<Description>
<Directions>
<Recipe>
<RecipeName>
etc...
How would I create a form that would create that type of XML file? Think of a MS Access form with linked subforms, but I don't want to repeat more data than I have to.
Any advice or help would be very appreciated!!! Also, if you know of a 3-party product that might solve this for me, I am open to that also!
Thanks!!!
ASP Page Code:
Secondly, I need to nest/repeat certain fields within the XML file. Basically, I want the XML file to look like this (I simplified the code for ease of writing, so don't bother with the syntax):
<Recipe>
<RecipeName>
<SubmittedBy>
<Ingredients>
<Amount>
<Unit>
<Ingredient>
<Description>
<Directions>
<Recipe>
<RecipeName>
etc...
How would I create a form that would create that type of XML file? Think of a MS Access form with linked subforms, but I don't want to repeat more data than I have to.
Any advice or help would be very appreciated!!! Also, if you know of a 3-party product that might solve this for me, I am open to that also!
Thanks!!!
ASP Page Code:
