xml-paths 0.1.2

Tool to quickly see the structure of an xml file by listing all the tag paths present in the file.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use xml_paths::paths;

fn main() {
    // Read in path to xml file from the command line
    let path = std::env::args()
        .nth(1)
        .expect("Please provide a path to an xml file");
    let paths = paths(&path).expect("Failed to read xml file");
    for path in paths {
        println!("{}", path);
    }
}