Adding non ".xml" file extension XML files

Friday, 13 September 2013 · 2 messages · last reply 15 Sep 2013
JT
Joe Templeman13 Sep 2013 22:37 #
I'm trying to add a collection of files which are all valid XML but when I'm doing the add with this command:
    db:add("db", "/data/xml/docs/", "docs")
where /data/xml/docs contains a number of XML files with a .s9ml file extension, nothing gets added to the database, however if I rename that file.xml, it works. Is there somewhere I can set what file extensions should be used? I can't seem to find anything in any of the docs about this. Thanks, Joe
DP
Dimitar Popov15 Sep 2013 01:07 #
Quoted text · 11:37:28 · 10 lines
Am Freitag, 13. September 2013, 11:37:28 schrieb Joe Templeman: > I'm trying to add a collection of files which are all valid XML but when > I'm doing the add with this command: > > db:add("db", "/data/xml/docs/", "docs") > > where /data/xml/docs contains a number of XML files with a .s9ml file > extension, nothing gets added to the database, however if I rename that > file.xml, it works. Is there somewhere I can set what file extensions > should be used? I can't seem to find anything in any of the docs about this.
Try the CREATEFILTER option [1] like this: set createfilter *.s9ml Best regards, Dimitar [1] http://docs.basex.org/wiki/Options#CREATEFILTER

⚡Generated with XQuery