my_xml_parser 0.1.2

XML parser, which can be used to parse XML to pairs of tokens. See source https://github.com/giginfee/my_parser
Documentation
  • Coverage
  • 6.67%
    1 out of 15 items documented0 out of 4 items with examples
  • Size
  • Source code size: 12.43 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.83 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 21s Average build duration of successful builds.
  • all releases: 21s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • giginfee

My XML parser

XML parser, which can be used to parse XML to pairs of tokens

crates.io

USAGE

To bring this crate into your repository, either add my_xml_parser to your Cargo.toml, or run cargo add my_xml_parser.

EXAMPLE

 use my_xml_parser::*;
  

pub fn main() -> anyhow::Result <()>{

    let successful_parse = parse_xml("<r><a></a></r>")?;
    println!("{:?}", successful_parse);
    Ok(())
  }

Result will be like this:

[xml(0, 14, [entity(0, 14, [field(3, 10, [empty_entity(3, 10)])])])]

Console use

-cargo run xml "your xml"

-"cargo run info."