Skip to main content

read_records

Function read_records 

Source
pub fn read_records<'a, R: AsyncBufRead + Unpin + Send + 'a>(
    input: R,
    schema: XmlSchema,
    record_path: &str,
    options: ReaderOptions,
) -> Result<BoxStream<'a, Result<XmlRecord>>>
Expand description

Stream complete XML records without converting field values to Arrow.

Uses the same path matching, namespaces, document validation and input limits as XmlReader. Construction does not read input. The first error ends the stream. Batch size and projection are validated but do not change record XML; consumers can use crate::XmlBatchBuilder::new_projected for conversion.