Skip to main content

is_streamable

Function is_streamable 

Source
pub fn is_streamable(xpath: &str) -> bool
Expand description

Returns true if the XPath can be processed in streaming mode.

This is a convenience function for quickly checking streamability.

ยงExample

use fastxml::transform::is_streamable;

assert!(is_streamable("//item[@id='1']"));
assert!(!is_streamable("//item[last()]"));