Skip to main content

Module xml_utils

Module xml_utils 

Source
Expand description

XML parsing utilities for Sonos UPnP event processing.

This module provides reusable XML parsing components that were consolidated from the sonos-parser crate. It includes namespace stripping, attribute parsing, and DIDL-Lite metadata structures.

Structs§

DidlItem
Individual item in DIDL-Lite metadata containing track information.
DidlLite
DIDL-Lite root structure for media metadata.
DidlResource
Resource element in DIDL-Lite containing media resource information.
NestedAttribute
Represents an XML element with a val attribute containing nested XML.
ValueAttribute
Represents an XML element with a val attribute.

Functions§

deserialize_nested
Custom deserializer for nested XML content.
deserialize_zone_group_state
Deserialize ZoneGroupState from nested XML string.
parse
Parse XML string into a deserializable type with namespace stripping.
strip_namespaces
Strip namespace prefixes from XML content to simplify parsing.