Get the XML opening tag

get_xml_opening_tag(text)

Arguments

text

text to be determined to be valid

Value

the opening tag if found, else NA

Author

Richèl J.C. Bilderbeek

Examples

# my_tag
get_xml_opening_tag("<my_tag text=something/>")
#> [1] "my_tag"

# NA when there is no opening tag
get_xml_opening_tag("no_xml")
#> [1] NA