Hi Jan,
in BaseX you should use the add command, see http://docs.basex.org/wiki/Commands. XQuery Update has no functionality for adding or deleting documents.
-- Andreas
Am 23.02.2011 um 18:10 schrieb Jan Vlčinský (CAD):
Hi Is there any method, how to add new doc into existing collection? I studied XQUF and it seems, like it can only update existing nodes. Options I was thinking about are fn:put() - it is supposed for publishing into external documents, but if I could use uri of collection in BaseX and BaseX would accept it... using database functions, but also here I do not see anything, what would add a doc The motivation is simple - if I could add docs by XQuery, I can save some roundtrips of data to insert Workaround is also not so difficult - simply using some sort of container doc in target collection and then modifying its nodes (putting here content of complete logical doc) instead of adding complete doc.
Any comments are welcome.
Jan _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk