| Crates.io | xml_magic |
| lib.rs | xml_magic |
| version | 1.0.0 |
| created_at | 2024-12-29 02:54:16.926842+00 |
| updated_at | 2024-12-29 02:54:16.926842+00 |
| description | A reasonably fast XML formatter. |
| homepage | |
| repository | https://github.com/bolli24/xml_magic |
| max_upload_size | |
| id | 1497907 |
| size | 15,095 |
A reasonably fast command-line XML formatter with proper indentation and comment preservation.
cargo binstall xml_magic
cargo install xml_magic
# Clone the repository
git clone https://github.com/bolli24/xml_magic
cd xml_magic
# Build and install
cargo install --path .
# Format in-place using tabs (default)
xml_magic path/to/file.xml
# Output to a different file
xml_magic path/to/file.xml --output path/to/output.xml
# Output to stdout instead of modifying files
xml_magic --stdout path/to/file.xml
# Customize indentation style
xml_magic --indent tab path/to/file.xml # Use tabs (default)
xml_magic --indent two path/to/file.xml # Use 2 spaces
xml_magic --indent four path/to/file.xml # Use 4 spaces