7.5.1 beta XMLDB api issues
Sunday, 13 January 2013 · 2 messages · last reply 14 Jan 2013
JH
Jason Harrop13 Jan 2013 23:25 #
https://github.com/BaseXdb/basex-examples/blob/master/src/main/java/org/basex/examples/xmldb/XMLDBInsert.java is not working for me.
I'm using source code from github (7.5.1 beta). Is it just me?
Also, any update on the status of March 2011 regarding the questions: Is it possible to create child Collections within a database through the XMLDB API? And is it possible to insert XMLResources in a child Collection through the XMLDB API?
thanks .. Jason
XMLDBInsert returns:
=== XMLDBInsert ===
* Get collection.
* Create new resource.
Exception in thread "main" java.lang.NullPointerException
at com.plutext.basex.samples.XMLDBInsert.main(XMLDBInsert.java:52)
==============
[basex-talk] xmldb api and child collections
Andreas Weiler andreas.weiler at uni-konstanz.de
Sun Mar 27 14:10:31 CEST 2011
Previous message: [basex-talk] xmldb api and child collections Next message: [basex-talk] BaseX 6.6 Update - Soft-Files.com Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Sorry, it seems that this is not supported right now. We will have a look into this.
In the meantime, you could use our own API for your scenario.
Kind regards,
Andreas
Quoted text · 10 lines
Am 26.03.2011 um 17:59 schrieb frans at planet: > Is it possible to create child Collections within a database through the XMLDB API? And is it possible to insert XMLResources in a child Collection through the XMLDB API? > > Regards, > Frans > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
CG
Christian Grün14 Jan 2013 13:18 #
Hi Jason,
Quoted text · Jason Harrop · 1 line
> https://github.com/BaseXdb/basex-examples/blob/master/src/main/java/org/basex/examples/xmldb/XMLDBInsert.java
in order to make the example work, you first need to run XMLDBCreate. I have extended the JavaDoc to point to this issue.
Quoted text · Jason Harrop · 3 lines
> Also, any update on the status of March 2011 regarding the questions: > Is it possible to create child Collections within a database through > the XMLDB API?
In BaseX, databases and collections are similar concepts. See e.g. [1] for more information on how we handle databases, collections and documents.
Best,
Christian
[1] http://docs.basex.org/wiki/Databases
Written for BaseX 7.5. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery