Skip to main content

read_str_attr

Function read_str_attr 

Source
fn read_str_attr(document: &Document, id: NodeId, key: &str) -> Option<String>
Expand description

Read a string attribute off a node by id, cloning it out. None if the node is missing or the attribute is absent or non-string.