Replace: Replace

View source: R/Replace.R

ReplaceR Documentation

Replace

Description

Replaces a resource with the specified input.

Usage

Replace(session, path, input)

Arguments

session

BasexClient instance-ID

path

Path where to store the data

input

Replacement

Details

The 'Replace' command is deprecated and has been renamed to 'Put'. 'Replace' is being kept as convenience.

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

  • info Aditional info

  • success A boolean, indicating if the command was completed successfull

Examples

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

## End(Not run)


RBaseX documentation built on Dec. 2, 2022, 5:10 p.m.

Related to Replace in RBaseX...