java and xml problems
I have 2 questions:
1) how can I apply a XML Schema to an XML fragment obtained through an HTML form?
the XML schema covers only that form fields (is a proper schema to validate a record of a simple xml database)
2) how can I add a new record of my database? I input the fields through an HTML form and I must add my record to my database. The XML database is like this:
my html form "fills" the record fields, that must be validated with a given (and proper) xml schema. I must add the "record" tag, with the counter attribute "id".
I'm using Tomcat, Xerces and many other XML/Java related technologies...
I appreciate any suggestion, tip or anything that help me to understand how to do and what is the best way to do this job!
Thank you in advance.