is_xml | R Documentation |
Check if the provided string is in valid XML format.
is_xml(input_string)
input_string |
A character string to be checked for XML format. |
A logical value. If the input string is in valid XML format, returns TRUE, otherwise returns FALSE.
Ulrich Matter umatter@protonmail.com
is_xml('<?xml version="1.0"?><root><element>value</element></root>')
# TRUE
is_xml('<root><element>value</element></root>')
# FALSE
is_xml('')
# FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.