>>> Hello everyone !
>>> 
>>> Can someone tell me why BaseX could not parse my xml ?
>>> 
>>> "ICN-A350-A-291157-A-FAPE3-00015-A-001-01.CGM" in the doctype could not be 
>>> parsed....
>>> 
>>> 
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <!DOCTYPE dmodule [
>>> <!NOTATION cgm PUBLIC "-//USA-DOD//NOTATION Computer Graphics Metafile//EN">
>>> <!ENTITY ICN-A350-A-291157-A-FAPE3-00015-A-001-01 SYSTEM 
>>> "ICN-A350-A-291157-A-FAPE3-00015-A-001-01.CGM" NDATA cgm>
>>> ]>
>>> 
>>> <xmlContent>
>>> 
>>> ....
>>> 
>>> 
>>> </xmlContent>
>>> 
>>> 
>>> Thank you !

>> Hi Johann,
>> 
>> BaseX expects the file 'ICN-A350-A-291157-A-FAPE3-00015-A-001-01.CGM' to be 
>> present.
>> 
>> $ basex -itest.xml
>> Creating Database...
>> java.io.FileNotFoundException: 
>> /private/tmp/ICN-A350-A-291157-A-FAPE3-00015-A-001-01.CGM (No such file or 
>> directory)
>> "/private/tmp/test.xml" (Line 4): 
>> "ICN-A350-A-291157-A-FAPE3-00015-A-001-01.CGM" could not be parsed.
>> $ touch ICN-A350-A-291157-A-FAPE3-00015-A-001-01.CGM
>> $ basex -itest.xml
>> Creating Database...
>> Indexing Text...
>> Indexing Attributes...
>> $
>> 
>> Hope this helps,
>>      Alex

> Thanks for your reply Alexander !
> 
> Is there a way not to parse the doctype because If I let my .CGM file in my 
> directory, baseX could not parse the .CGM file ? Or is there a way to take 
> into account only xml files when creatinf the database ?
> 
> Thanks again

Hi Johann,

it is related to the parser.  Switching the internal parser off helps:

On command line:

$ basex -c 'set intparse false; create database db data.xml' 
Creating Database...
. 158.93 ms (1108 KB)
Indexing Text...
. 103.98 ms (1457 KB)
Indexing Attributes...
. 102.86 ms (1588 KB)

In GUI:

http://cl.ly/272M3V3g28081y1X2i0d

HTH,
        Alex
_______________________________________________
BaseX-Talk mailing list
[email protected]
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

Reply via email to