Skip to main content

atomize_required

Function atomize_required 

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

Atomize a value, requiring a non-empty result.

This is equivalent to Atomize<T> in C# - it requires the result to exist.

§Arguments

  • value - Optional value to atomize

§Returns

  • Ok(XmlValue) - The atomized value
  • Err(XPathError) - XPTY0004 if empty, or other atomization errors