my_xml_parser

Crates.iomy_xml_parser
lib.rsmy_xml_parser
version0.1.2
sourcesrc
created_at2023-11-14 20:26:38.788947
updated_at2023-11-14 20:26:38.788947
descriptionXML parser, which can be used to parse XML to pairs of tokens. See source https://github.com/giginfee/my_parser
homepage
repository
max_upload_size
id1035375
size12,914
(giginfee)

documentation

README

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."

Commit count: 0

cargo fmt