Hi Martin,
thanks for your feedback. The problem should be solved with Version 7.8 of BaseX. The official version will be out soon, but you are invited to check out the latest stable snapshot [1].
If you want to use BaseX 7.7.2, you can also switch to Java’s default parser (via SET INTPARSE false, or by deactivating "Use internal XML parser" in the "Database" → "New…" dialog and the "Parsing" tab).
Hope this helps, Christian
[1] http://files.basex.org/releases/latest/
On Tue, Jan 28, 2014 at 6:36 PM, Martin Reckziegel reckziegel@informatik.uni-leipzig.de wrote:
Hello everybody,
i'm using basex 7.7.2 in a university based project. I'm trying to store TEI XML files in the database but there is an error storing certain valid files. Using a rest PUT request to store a file starting like this:
<?xml version="1.0"?>
<!DOCTYPE TEI.2 PUBLIC "-//TEI P4//DTD Main DTD Driver File//EN" "http://www.tei-c.org/Guidelines/DTD/tei2.dtd" [ <!ENTITY % TEI.XML "INCLUDE">
<!ENTITY % PersProse PUBLIC "-//Perseus P4//DTD Perseus Prose//EN" "http://www.perseus.tufts.edu/DTD/1.0/PersProse.dtd" >
%PersProse; ]> <TEI.2>
<teiHeader type="text" status="new"> ....
results in this error:
"tlg0003.xml.xml" (Line 5): ']' expected, '<' found.
(Line 5 is %PersProse;) I have no clue how to interpret the error since non of the mention characters are in that line. Maybe this is resulting in some internal replacement? Anyway deleting line 5 resolves the error (but of course does not solve my problem since i don't want to alter the files) The problematic files are all valid, at least according to http://www.validome.org/xml/validate/ and http://validator.w3.org/check so i wonder why they are rejected by basex?
kind regards, Martin Reckziegel
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk