Hi Ando,
- Can I have an example query of how I could insert another book node into
this file?
XQuery Update will help you here [1]:
insert node <book>...</book> into /bookstore
- 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?
The functions of the BaseX Validation Module [2] can be used to validate XML documents and nodes.
Hope this helps, Christian
[1] http://docs.basex.org/wiki/XQuery_Update [2] http://docs.basex.org/wiki/Validation_Module
<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
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk