put {RBaseX}R Documentation

Put

Description

Adds or replaces a resource with the specified input.

Usage

put(session, path, input)

Arguments

session

BasexClient instance-ID

path

Path where to store the data

input

Add or replacement

Details

The input can be a UTF-8 encoded XML document, a binary resource, or any other data (such as JSON or CSV) that can be successfully converted to a resource by the server. This method returns self invisibly, thus making it possible to chain together multiple method calls.

Value

A list with two items

Examples

## Not run: 
put(Session, "test", "<xml>Create test</xml>")

## End(Not run)


[Package RBaseX version 1.1.2 Index]