| Crates.io | my_xml_parser |
| lib.rs | my_xml_parser |
| version | 0.1.2 |
| created_at | 2023-11-14 20:26:38.788947+00 |
| updated_at | 2023-11-14 20:26:38.788947+00 |
| description | XML 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 | |
| id | 1035375 |
| size | 12,914 |
XML parser, which can be used to parse XML to pairs of tokens
To bring this crate into your repository, either add my_xml_parser to your
Cargo.toml, or run cargo add my_xml_parser.
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)])])])]
-cargo run xml "your xml"
-"cargo run info."