Hi Jiri,
you may set the properties for the given Context by simply calling:
// set CHOP to false CONTEXT.prop.set("CHOP",false);
If you are looking at the Example at [1] & [2]: http://www.inf.uni-konstanz.de/dbis/basex/code.php?code=DatabaseExample You would want to put the Prop change right before calling the CreateDB statement.
Hope this works out for you, don't hesitate to ask for more :-).
Kind Regards Michael
[1] http://www.inf.uni-konstanz.de/dbis/basex/code.php?code=DatabaseExample
[2] You may check your DB either via console, by open <dbname> and then info or in the GUI with help of the OPEN Dialog
Am 31.03.2010 um 16:38 schrieb Jiří Kadlec:
Hi Guys,
How can I preserve whitespaces in XML document, when i'm using new CreateDB(..) object for creating new database from Java code. When I export data with new Export(..) I get document with choped whitespaces. I found out, that there is a possibility to preserve whitespaces when I create DB from BaseX gui. There is a possibility to uncheck option chop whitespaces which gives me required result. Is there any way how to do this from Java.
Thank you
Jiri _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk