Hi Shaun,
The following exception is thrown:
Hm, not on my machine. A reproducible example would be welcome.
Thanks in advance, Christian
run: Jan 26, 2017 5:03:17 PM basextesting.BaseXTesting main SEVERE: null org.basex.core.BaseXException: "BaseXTarget.xml" (Line 1): No text allowed before root element. at org.basex.api.client.ClientSession.receive(ClientSession.java:191) at org.basex.api.client.ClientSession.execute(ClientSession.java:160) at org.basex.api.client.ClientSession.execute(ClientSession.java:165) at org.basex.api.client.Session.execute(Session.java:36) at basextesting.BaseXTesting.main(BaseXTesting.java:36)
BUILD SUCCESSFUL (total time: 0 seconds)
It could be me being daft, but both pieces of code should achieve the same thing as they point to the same file, but when classes are used instead of command strings, the BaseXException is thrown.
I have checked my data for the byte order mark, and have the ensure it is enoced using UTF-8.
Help!
Shaun