{"id":32172740,"url":"https://github.com/belloq/xml_mapper","last_synced_at":"2026-02-22T14:43:49.301Z","repository":{"id":57557658,"uuid":"81721953","full_name":"belloq/xml_mapper","owner":"belloq","description":"A simple XML mapper for Elixir.","archived":false,"fork":false,"pushed_at":"2018-06-18T11:16:46.000Z","size":13,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-21T18:44:39.632Z","etag":null,"topics":["elixir","xml"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/belloq.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}},"created_at":"2017-02-12T11:44:13.000Z","updated_at":"2018-07-19T11:36:35.000Z","dependencies_parsed_at":"2022-08-28T11:41:30.136Z","dependency_job_id":null,"html_url":"https://github.com/belloq/xml_mapper","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/belloq/xml_mapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/belloq%2Fxml_mapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/belloq%2Fxml_mapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/belloq%2Fxml_mapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/belloq%2Fxml_mapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/belloq","download_url":"https://codeload.github.com/belloq/xml_mapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/belloq%2Fxml_mapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29716358,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T13:30:57.152Z","status":"ssl_error","status_checked_at":"2026-02-22T13:30:28.561Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["elixir","xml"],"created_at":"2025-10-21T18:43:02.546Z","updated_at":"2026-02-22T14:43:49.291Z","avatar_url":"https://github.com/belloq.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XMLMapper\n\nA simple XML mapper for Elixir.\n\n## Installation\n\n```elixir\ndef deps do\n  [{:xml_mapper, \"~\u003e 1.0.0\"}]\nend\n```\n\n## Example\n```elixir\ndefmodule Category do\n  use XMLMapper\n\n  element :id, :integer, tag: \"ID\"\n  has_many :products, Product\nend\n\ndefmodule Product do\n  use XMLMapper\n\n  tag \"ProductItem\"\n\n  element :id, :integer, tag: \"ID\"\n  element :name, :text\nend\n\nCategory.to_xml(%{id: 1, products: [%{id: 1, name: \"Product1\"}, %{id: 2, name: \"Product2\"}]})\n#=\u003e \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cCategory\u003e\u003cID\u003e1\u003c/ID\u003e\u003cProducts\u003e\u003cProductItem\u003e\u003cID\u003e1\u003c/ID\u003e\u003cName\u003eProduct1\u003c/Name\u003e\u003c/ProductItem\u003e\u003cProductItem\u003e\u003cID\u003e2\u003c/ID\u003e\u003cName\u003eProduct2\u003c/Name\u003e\u003c/ProductItem\u003e\u003c/Products\u003e\u003c/Category\u003e\"\n\nProduct.to_struct(\"\u003cProductItem\u003e\u003cID\u003e2\u003c/ID\u003e\u003cName\u003eProduct2\u003c/Name\u003e\u003c/ProductItem\u003e\")\n#=\u003e %{id: 2, name: \"Product2\"}\n```\n\n## TODO\n- [ ] default values\n- [ ] value parser callback\n- [x] escape html characters\n- [ ] cdata\n- [ ] prefixes\n- [ ] override tag name of sub-items in has_many\n- [ ] rename no_escape flag to escape\n- [ ] add escape flag to modules \u0026 global settings\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbelloq%2Fxml_mapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbelloq%2Fxml_mapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbelloq%2Fxml_mapper/lists"}