Learn R Programming

RBaseX (version 0.3.0)

Add: Add

Description

Adds a new resource to the opened database.

Usage

Add(session, path, input)

Arguments

session

BasexClient instance-ID

path

Path

input

Additional input (optional)

Value

A list with two items

  • info Aditional info

  • success Boolean, indicating if the command was completed successfull

Details

The 'input' can be a length-1 character vector which describes an element, a file-descriptor, an URL or a stream. The utility-function input_to_raw can be used to convert an arbitrary character vector to a stream. This method returns self invisibly, thus making it possible to chain together multiple method calls.

Examples

Run this code
# NOT RUN {
Add(Session, "test", "<xml>Add</xml>")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab