1)
I've a form that takes some input (various fields)
I must use those fields as fields of a record of a simple XML database file.
Mi xml file is like:
<database>
<record id="1">
...my fields...
</record>
<record id="2">
...my fields...
</record>
...
</database>
I simply must add a "new record" after the last one.
How I can do this thing? I'm using Tomcat & Xerces
-------------------------------------------------
2)
I must validate the XML fragment, created from the HTML form, despite a given xml schema, how I can do this job?
Thank you in advance, and sorry for my poor English!