Learn R Programming

TheOpenAIR (version 0.1.0)

is_xml: Check if the provided string is in valid XML format.

Description

Check if the provided string is in valid XML format.

Usage

is_xml(input_string)

Value

A logical value. If the input string is in valid XML format, returns TRUE, otherwise returns FALSE.

Arguments

input_string

A character string to be checked for XML format.

Author

Ulrich Matter umatter@protonmail.com

Examples

Run this code
is_xml('value')
# TRUE

is_xml('value')
# FALSE

is_xml('')
# FALSE

Run the code above in your browser using DataLab