{"id":15690425,"url":"https://github.com/mamantoha/xml_converter","last_synced_at":"2025-06-10T21:08:53.003Z","repository":{"id":66224793,"uuid":"159065028","full_name":"mamantoha/xml_converter","owner":"mamantoha","description":"Create hashes from XML documents easily.","archived":false,"fork":false,"pushed_at":"2021-03-26T10:04:58.000Z","size":15,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T23:38:43.123Z","etag":null,"topics":["crystal","xml"],"latest_commit_sha":null,"homepage":"","language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mamantoha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-25T19:08:31.000Z","updated_at":"2025-02-08T12:07:01.000Z","dependencies_parsed_at":"2023-03-10T23:43:57.341Z","dependency_job_id":null,"html_url":"https://github.com/mamantoha/xml_converter","commit_stats":{"total_commits":26,"total_committers":1,"mean_commits":26.0,"dds":0.0,"last_synced_commit":"b8a0a1b058ce69af5aa6d6f2e74da58f5785357f"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamantoha%2Fxml_converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamantoha%2Fxml_converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamantoha%2Fxml_converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamantoha%2Fxml_converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mamantoha","download_url":"https://codeload.github.com/mamantoha/xml_converter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252973606,"owners_count":21834104,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crystal","xml"],"created_at":"2024-10-03T18:09:17.248Z","updated_at":"2025-05-07T23:38:57.294Z","avatar_url":"https://github.com/mamantoha.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XMLConverter\n\n[![CI](https://github.com/mamantoha/xml_converter/actions/workflows/crystal.yml/badge.svg)](https://github.com/mamantoha/xml_converter/actions/workflows/crystal.yml)\n\nCreate hashes from XML documents easily.\n\n`xml_converter` is heavily inspired by [ActiveSupport::XMLConverter](https://api.rubyonrails.org/classes/ActiveSupport/XMLConverter.html).\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n   ```yaml\n   dependencies:\n     xml_converter:\n       github: mamantoha/xml_converter\n   ```\n\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"xml_converter\"\n\nxml = \u003c\u003c-XML\n  \u003cperson id=\"1\"\u003e\n    \u003cfirstName preferredName=\"Jane\"\u003eJehanne\u003c/firstname\u003e\n    \u003clastName\u003eDoe\u003c/lastname\u003e\n  \u003c/person\u003e\nXML\n\ndocument = XML.parse(xml)\nhash = XMLConverter.new(document).to_h\n# =\u003e {\"person\" =\u003e {\"id\" =\u003e \"1\", \"firstName\" =\u003e {\"preferredName\" =\u003e \"Jane\", :value =\u003e \"Jehanne\"}, \"lastName\" =\u003e \"Doe\"}}\n```\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/mamantoha/xml_converter/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Anton Maminov](https://github.com/mamantoha) - creator and maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmamantoha%2Fxml_converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmamantoha%2Fxml_converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmamantoha%2Fxml_converter/lists"}