Skip to content

brendanzab/sax-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sax-rs

Wrapper for libxml2's SAX parser.

A simple example

let parser = sax::parse_str(XML_DATA);
for result in parser.iter() {
    match result {
        Ok(sax::StartDocument) => (),
        Ok(sax::EndDocument) => break,
        Ok(event) => println!("{}", event),
        Err(err) => println!("{}", err),
    }
}

Documentation

The API docs are hosted on Rust CI.

Compile

make

Run tests

make check

Todo

  • Messages for start/end element namespace callbacks

License

This project is licensed under Apache License Version 2.0.

Please see the LICENSE file for more information.