Hi Tim,

When specifying a node as second argument, you’ll have to specify a target path as t third argument (because it cannot be derived from the input). See [1] for more information.

Cheers
Christian

[1] http://docs.basex.org/wiki/Database_Module#db:create



Tim Thompson <timathom@gmail.com> schrieb am Mi., 28. Feb. 2018, 19:27:
Hello,

The two argument signature of the db:add function does not seem to work (http://docs.basex.org/wiki/Database_Module#db:add). Is this still valid in BaseX?

When I try something like db:add("test", <test/>), I get an error:

[FODC0007] Resource path '' is invalid.

Thanks!

--
Tim A. Thompson
Discovery Metadata Librarian
Yale University Library