Hi Christian
I kept running into encoding issues when trying to send the data from Perl to BaseX through the `create` method (even after `use utf8`, a valid XML header with encoding, a verified UTF-8 XML document. The issues do not occur when simple `execute`-ing a CREATE DB command. So I'll do it like that.
Thanks!
Bram
-----Oorspronkelijk bericht----- Van: Christian Grün [mailto:christian.gruen@gmail.com] Verzonden: dinsdag 4 oktober 2016 13:24 Aan: Bram Vanroy bram.vanroy1@student.kuleuven.be CC: BaseX basex-talk@mailman.uni-konstanz.de Onderwerp: Re: [basex-talk] Content is not allowed in prolog
Hi Bram,
Thanks for the reply! That's true, but I thought you were to send an absolute path to the XML file, as is the case when using the basexclient from the terminal? Could you direct me to the documentation of the Session object in the Perl client? I cannot find it (and I find a lot of Java examples).
I assume there is no such documentation for the Perl client, but as the client is very light-weight, you can have a direct look into the implementation (I hope it’s self-explanatory) [1].
In the Clients article, I have readded a link to the Server Protocol [2], which gives some more information on the available commands.
Cheers Christian
[1] https://github.com/BaseXdb/basex/blob/master/basex-api/src/main/perl/BaseXCl... [2] http://docs.basex.org/wiki/Clients