xml_id {thredds} | R Documentation |
Retrieve an ID value for a node from it's attributes.
xml_id(x, atts = c("name", "title", "ID", "urlPath", "href"))
x |
xml node or a named character vector as per |
atts |
character, ordered vector of attribute names to use as an ID value As the list is stepped through if an attribute is missing or empty character then advance to the next, otherwise return that value |
character identifier, possibly an empty character (character()
)