Hi Jan,
use quotes around your xml snippet:
add as doc1 "<root att='att'/>"
Kind regards, Andreas
Am 10.02.2011 um 15:18 schrieb Jan Vlčinský (CAD):
Hi I need to insert documents into BaseX collection. As data are not always available directly as files and as sometime my server is remote to me, I need a method to add documents remotely.
With older BaseX (I think BaseX 6.4) I was able to use add commend in the way
add as doc1 <root/>
This works now. But I am unable to insert anything, what has any attribute in this manner
add as doc1 <root att="att"/>
This keeps complaining and prints back help on the console.
I am using basexclient.bat and Python API.
What am I doing wrong?
Thanks for any advice.
Jan
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk