Skip to main content

atomize

Function atomize 

Source
pub fn atomize(value: &XmlValue) -> Result<XmlValue, XPathError>
Expand description

Atomize an XmlValue, returning its atomic representation.

For atomic values, this returns a clone of the value. For union values, this unwraps and atomizes the inner value. For list values, this returns an error (multiple items).

§Arguments

  • value - The value to atomize

§Returns

  • Ok(XmlValue) - The atomized value
  • Err(XPathError) - If atomization fails