xml_converter
Version, currently 0.3.03 versions
- 0.4.0latestMar 26, 2021
- 0.3.0not indexedMar 26, 2021
- 0.2.0not indexedMar 26, 2021
github.com/mamantoha/xml_converter
Create hashes from XML documents easily.
9 stars
2 dependents
License: MIT
Nothing has been indexed for 0.3.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
xml_converter:
github: mamantoha/xml_converter
version: ~> 0.3.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.3.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
# XMLConverter
[](https://github.com/mamantoha/xml_converter/actions/workflows/crystal.yml)
Create hashes from XML documents easily.
`xml_converter` is heavily inspired by [ActiveSupport::XMLConverter](https://api.rubyonrails.org/classes/ActiveSupport/XMLConverter.html).
## Installation
1. Add the dependency to your `shard.yml`:
```yaml
dependencies:
xml_converter:
github: mamantoha/xml_converter
```
2. Run `shards install`
## Usage
```crystal
require "xml_converter"
xml = <<-XML
<person id="1">
<firstName preferredName="Jane">Jehanne</firstname>
<lastName>Doe</lastname>
</person>
XML
document = XML.parse(xml)
hash = XMLConverter.new(document).to_h
# => {"person" => {"id" => "1", "firstName" => {"preferredName" => "Jane", :value => "Jehanne"}, "lastName" => "Doe"}}
```
## Contributing
1. Fork it (<https://github.com/mamantoha/xml_converter/fork>)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [Anton Maminov](https://github.com/mamantoha) - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.3.0- Tagged
- Mar 26, 2021
- Commit
38baf0e90201- Indexed
- not yet
Dependents
Repository
github.com/mamantoha/xml_converter
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 3