How to identify the error when create database is unsuccessful
Friday, 13 October 2017 · 2 messages
DD
Dave Day13 Oct 2017 19:40 #
Greetings list,
I'm getting the following error when I try to create a new database using the Basex gui on windows.
"No text allowed before root element."
This is the error I get if I set the parsing option to 'use internal XML parser'.
If I uncheck that, I get
"Content is not allowed in prolog."
The file I am using as input does not have a prolog statement.
If I look at the .log folder, there is nothing in there.
I suspect that the FTP process I used (microsoft ftp command from a dos window) to move the data from an IBM mainframe to my desktop has done something to the file.
Isn't there some way to turn on a diagnostic feature to see exactly what the parsing issue is? I don't see anything in the file before the root element using Notepad.
Thanks for any help,
-- Dave Day
DD
Dave Day13 Oct 2017 20:37 #
Nothing like answering your own posts, right?:-)
Doing a bunch of different google searches, I was able to find one or two that was close to what it looked like I was encountering.
Before doing the ftp get on the windoze box, if I issue a 'quote site sbd=(ibm-1047,iso8859-1)'
I get much further.
At least now it is parsing the file, as it is spitting out an error with one of the xml elements that I can readily see.
-- Dave
Quoted text · Dave Day · 1 line
On 10/13/2017 10:40 AM, Dave Day wrote:
Greetings list,
Quoted text · Dave Day · 38 lines
> > I'm getting the following error when I try to create a new > database using the Basex gui on windows. > > "No text allowed before root element." > > This is the error I get if I set the parsing option to 'use > internal XML parser'. > > > If I uncheck that, I get > > "Content is not allowed in prolog." > > The file I am using as input does not have a prolog statement. > > > If I look at the .log folder, there is nothing in there. > > > I suspect that the FTP process I used (microsoft ftp command from > a dos window) to move the data from an IBM mainframe to my desktop > has done something to the file. > > Isn't there some way to turn on a diagnostic feature to see > exactly what the parsing issue is? I don't see anything in the file > before the root element using Notepad. > > > Thanks for any help, > > -- Dave Day > > > > > >
Written for BaseX 8.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery