Greetings,
I've just started reading through the materials on XQJ and would like to ask the following:
Let's say I have a simple XML file (I'll use the W3Schools Xquery tutorial):
1. Can I have an example query of how I could insert another book node into this file? 2. If I would like to perform schema validation through XSD, how should I change the code? - eg. (if I have set the maxOccurs attribute set as 1), will XQJ throw some exception?
<bookstore> <book category="COOKING"> <title lang="en">Everyday Italian</title> <author>Giada De Laurentiis</author> <year>2005</year> <price>30.00</price> </book> </bookstore>
Regards, Roy