extract_all_attributes

Function extract_all_attributes 

pub fn extract_all_attributes(tag: &str) -> HashMap<String, String>
Expand description

Extract all attributes from an XML tag

Parses an XML tag and returns a HashMap of attribute names to values.

§Arguments

  • tag - The XML tag to parse (e.g., “<element id="test" class="foo">”)

§Returns

A HashMap containing all attribute name-value pairs