Changes

Jump to navigation Jump to search
216 bytes added ,  02:54, 27 June 2014
==db:add==
 
{{Mark|Updated with Version 7.9}}: Support for parsing and XML parsing options added.
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|db:add|$db as xs:string, $input as item()|empty-sequence()}}<br/>{{Func|db:add|$db as xs:string, $input as item(), $path as xs:string|empty-sequence()}}<br/>{{Func|db:add|$db as xs:string, $input as item(), $path as xs:string, $options as item()|empty-sequence()|empty-sequence()}}
|-
| '''Summary'''
|Adds documents specified by {{Code|$input}} to the database {{Code|$db}} and the specified {{Code|$path}}. A document with the same path may occur than once in a database. If this is unwanted, [[#db:replace|db:replace]] can be used.<br/>{{Code|$input}} may be a string or a node different than attribute. If the {{Code|$input}} source is not a file or a folder, {{Code|$path}} must be specified.<br/>
The {{Code|$options}} argument can be used to control parsing. The syntax is identical to the [[#db:create|db:create]] function. Allowed options are all [[Options#Parsing|parsing]] and [[Options#XML Parsing|XML parsing]] options in lower case. The syntax is identical to the [[#db:create|db:create]] function.
|-
| '''Errors'''
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu