# Structnmap
This is a tool for parsing nmap xml and structing it to files by service name.
**USAGE:** <br/>
`$ structnmap <xml> <output>`
**FLAGS:** <br/>
`-h, --help` - Prints help information <br/>
`-V, --version` - Prints version information <br/>
**ARGS:** <br/>
`<xml>` - Nmap xml file path <br/>
`<output>` - Output directory
**EXAMPLE:** <br/>
`$ structnmap nmap.xml output` <br/>
You can see an output sample in example directory in project repository
**IN-CODE USAGE EXAMPLE:** <br/>
```rust
use structnmap::{Data, Error};
fn main() -> Result<(), Error> {
let test = Data::build("nmap.xml")?;
test.generate("output")?;
Ok(())
}
```