Skip to main content

parse_slicer_cache

Function parse_slicer_cache 

Source
pub fn parse_slicer_cache(xml: &str) -> Option<SlicerCacheDefinition>
Expand description

Parse a SlicerCacheDefinition from XML.

Uses namespace-aware event parsing, so element prefixes are irrelevant and attribute values are entity-decoded with either quote style. The root must be a slicerCacheDefinition element with unprefixed name and sourceName attributes. The first tableSlicerCache element that is not bound to a foreign namespace supplies the table link. Returns None for malformed XML or a missing required attribute.