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
  • Coverage
  • 9.09%
    1 out of 11 items documented0 out of 9 items with examples
  • Size
  • Source code size: 7.15 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.45 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • dhbradshaw/xml-paths
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • dhbradshaw

xml-paths

If you have a large xml file, it can be useful to try to understand the structure by getting a map of all the possible element paths.

An easy way to do that is by using this tool.

Installation

cargo install xml-paths

Usage

Just run the command and give it a file to parse.

For example, if we have an xml file at path/to/my/xml_file.xml that looks like

<notes>
    <note>
        <to>Gina</to>
        <from>Doug</from>
        <heading>Thanks</heading>
        <body>Lunch was amazing!</body>
    </note>
    <note>
        <to>Doug</to>
        <from>Gina</from>
        <heading>Thanks</heading>
        <body>Thanks Doug! I liked it too -- that's a definite repeat!</body>
    </note>
</notes>

,

we run

xml-paths path/to/my/xml_file.xml

to get

/
/notes
/notes/note
/notes/note/body
/notes/note/from
/notes/note/heading
/notes/note/to