{"id":32168498,"url":"https://github.com/rzcastilho/xmlx","last_synced_at":"2026-05-30T22:31:54.194Z","repository":{"id":46421730,"uuid":"71802910","full_name":"rzcastilho/xmlx","owner":"rzcastilho","description":"Elixir native XML parser that enables search by attribute or element names","archived":false,"fork":false,"pushed_at":"2021-10-14T19:20:27.000Z","size":43,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-13T02:12:23.205Z","etag":null,"topics":["elixir","parser","xml"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rzcastilho.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-10-24T15:26:48.000Z","updated_at":"2021-11-12T00:44:57.000Z","dependencies_parsed_at":"2022-08-28T11:41:10.328Z","dependency_job_id":null,"html_url":"https://github.com/rzcastilho/xmlx","commit_stats":null,"previous_names":["rodrigozc/xmlx"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rzcastilho/xmlx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzcastilho%2Fxmlx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzcastilho%2Fxmlx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzcastilho%2Fxmlx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzcastilho%2Fxmlx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rzcastilho","download_url":"https://codeload.github.com/rzcastilho/xmlx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzcastilho%2Fxmlx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33712579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","parser","xml"],"created_at":"2025-10-21T15:54:27.098Z","updated_at":"2026-05-30T22:31:54.173Z","avatar_url":"https://github.com/rzcastilho.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Xmlx\n\n[![ci workflow](https://github.com/rzcastilho/xmlx/actions/workflows/ci.yml/badge.svg)](https://github.com/rzcastilho/xmlx/actions/workflows/ci.yml/badge.svg)\n[![coverage status](https://coveralls.io/repos/github/rzcastilho/xmlx/badge.svg)](https://coveralls.io/github/rzcastilho/xmlx)\n[![hex.pm version](https://img.shields.io/hexpm/v/xmlx.svg)](https://hex.pm/packages/xmlx)\n[![hex.pm downloads](https://img.shields.io/hexpm/dt/xmlx.svg)](https://hex.pm/packages/xmlx)\n[![hex.pm license](https://img.shields.io/hexpm/l/xmlx.svg)](https://github.com/rzcastilho/xmlx/blob/master/LICENSE)\n\nElixir native XML parser that enables search using attribute or element names\n\n## Installation\n\nThe package can be installed by adding `xmlx` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [{:xmlx, \"~\u003e 0.1.1\"}]\nend\n```\n\n## Usage\n\n### XML Example (simple.xml)\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cnote\u003e\n  \u003cto\u003eTove\u003c/to\u003e\n  \u003cfrom\u003eJani\u003c/from\u003e\n  \u003cheading\u003eReminder\u003c/heading\u003e\n  \u003cbody type=\"text\"\u003eDon't forget me this weekend!\u003c/body\u003e\n\u003c/note\u003e\n```\n\n1. Document parse\n\n    ```elixir\n    File.read!(\"simple.xml\")\n    |\u003e Xmlx.parse()\n    ```\n\n    ```elixir\n    [\n      note: [\n        to: [text: \"Tove\"],\n        from: [text: \"Jani\"],\n        heading: [text: \"Reminder\"],\n        body: [\"@type\": \"text\", text: \"Don't forget me this weekend!\"]\n      ]\n    ]\n    ```\n\n2. Find by element name\n\n    ```elixir\n    File.read!(\"simple.xml\")\n    |\u003e Xmlx.parse()\n    |\u003e Xmlx.find(:from)\n    ```\n\n    or\n\n    ```elixir\n    File.read!(\"simple.xml\")\n    |\u003e Xmlx.parse()\n    |\u003e Xmlx.find(\"from\")\n    ```\n\n    result\n\n    ```elixir\n    [from: [text: \"Jani\"]]\n    ```\n\n3. Find by attribute name\n\n    ```elixir\n    File.read!(\"simple.xml\")\n    |\u003e Xmlx.parse()\n    |\u003e Xmlx.find(:\"@type\")\n    ```\n\n    or\n\n    ```elixir\n    File.read!(\"simple.xml\")\n    |\u003e Xmlx.parse()\n    |\u003e Xmlx.find(\"@type\")\n    ```\n\n    result\n\n    ```elixir\n    [\"@type\": \"text\"]\n    ```\n\n### WSDL Example (simple.wsdl)\n\n```xml\n\u003c?xml version=\"1.0\"?\u003e\n\u003cdefinitions name=\"EndorsementSearch\"\n  targetNamespace=\"http://namespaces.snowboard-info.com\"\n  xmlns:es=\"http://www.snowboard-info.com/EndorsementSearch.wsdl\"\n  xmlns:esxsd=\"http://schemas.snowboard-info.com/EndorsementSearch.xsd\"\n  xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\"\n  xmlns=\"http://schemas.xmlsoap.org/wsdl/\"\n\u003e\n\n  \u003c!-- omitted types section with content model schema info --\u003e\n\n  \u003cmessage name=\"GetEndorsingBoarderRequest\"\u003e\n    \u003cpart name=\"body\" element=\"esxsd:GetEndorsingBoarder\"/\u003e\n  \u003c/message\u003e\n\n  \u003cmessage name=\"GetEndorsingBoarderResponse\"\u003e\n    \u003cpart name=\"body\" element=\"esxsd:GetEndorsingBoarderResponse\"/\u003e\n  \u003c/message\u003e\n\n  \u003cportType name=\"GetEndorsingBoarderPortType\"\u003e\n    \u003coperation name=\"GetEndorsingBoarder\"\u003e\n      \u003cinput message=\"es:GetEndorsingBoarderRequest\"/\u003e\n      \u003coutput message=\"es:GetEndorsingBoarderResponse\"/\u003e\n      \u003cfault message=\"es:GetEndorsingBoarderFault\"/\u003e\n    \u003c/operation\u003e\n  \u003c/portType\u003e\n\n  \u003cbinding name=\"EndorsementSearchSoapBinding\"\n           type=\"es:GetEndorsingBoarderPortType\"\u003e\n    \u003csoap:binding style=\"document\"\n                  transport=\"http://schemas.xmlsoap.org/soap/http\"/\u003e\n    \u003coperation name=\"GetEndorsingBoarder\"\u003e\n      \u003csoap:operation\n        soapAction=\"http://www.snowboard-info.com/EndorsementSearch\"/\u003e\n      \u003cinput\u003e\n        \u003csoap:body use=\"literal\"\n          namespace=\"http://schemas.snowboard-info.com/EndorsementSearch.xsd\"/\u003e\n      \u003c/input\u003e\n      \u003coutput\u003e\n        \u003csoap:body use=\"literal\"\n          namespace=\"http://schemas.snowboard-info.com/EndorsementSearch.xsd\"/\u003e\n      \u003c/output\u003e\n      \u003cfault\u003e\n        \u003csoap:body use=\"literal\"\n          namespace=\"http://schemas.snowboard-info.com/EndorsementSearch.xsd\"/\u003e\n      \u003c/fault\u003e\n    \u003c/operation\u003e\n  \u003c/binding\u003e\n\n  \u003cservice name=\"EndorsementSearchService\"\u003e\n    \u003cdocumentation\u003esnowboarding-info.com Endorsement Service\u003c/documentation\u003e\n    \u003cport name=\"GetEndorsingBoarderPort\"\n          binding=\"es:EndorsementSearchSoapBinding\"\u003e\n      \u003csoap:address location=\"http://www.snowboard-info.com/EndorsementSearch\"/\u003e\n    \u003c/port\u003e\n  \u003c/service\u003e\n\n\u003c/definitions\u003e\n```\n\n1. Document parse\n\n    ```elixir\n    File.read!(\"simple.wsdl\")\n    |\u003e Xmlx.parse()\n    ```\n\n    ```elixir\n    [\n      \"{http://schemas.xmlsoap.org/wsdl/}definitions\": [\n        \"@name\": \"EndorsementSearch\",\n        \"@targetNamespace\": \"http://namespaces.snowboard-info.com\",\n        \"{http://schemas.xmlsoap.org/wsdl/}message\": [\n          \"@name\": \"GetEndorsingBoarderRequest\",\n          \"{http://schemas.xmlsoap.org/wsdl/}part\": [\n            \"@name\": \"body\",\n            \"@element\": \"esxsd:GetEndorsingBoarder\"\n          ]\n        ],\n        \"{http://schemas.xmlsoap.org/wsdl/}message\": [\n          \"@name\": \"GetEndorsingBoarderResponse\",\n          \"{http://schemas.xmlsoap.org/wsdl/}part\": [\n            \"@name\": \"body\",\n            \"@element\": \"esxsd:GetEndorsingBoarderResponse\"\n          ]\n        ],\n        \"{http://schemas.xmlsoap.org/wsdl/}portType\": [\n          \"@name\": \"GetEndorsingBoarderPortType\",\n          \"{http://schemas.xmlsoap.org/wsdl/}operation\": [\n            \"@name\": \"GetEndorsingBoarder\",\n            \"{http://schemas.xmlsoap.org/wsdl/}input\": [\n              \"@message\": \"es:GetEndorsingBoarderRequest\"\n            ],\n            \"{http://schemas.xmlsoap.org/wsdl/}output\": [\n              \"@message\": \"es:GetEndorsingBoarderResponse\"\n            ],\n            \"{http://schemas.xmlsoap.org/wsdl/}fault\": [\n              \"@message\": \"es:GetEndorsingBoarderFault\"\n            ]\n          ]\n        ],\n        \"{http://schemas.xmlsoap.org/wsdl/}binding\": [\n          \"@name\": \"EndorsementSearchSoapBinding\",\n          \"@type\": \"es:GetEndorsingBoarderPortType\",\n          \"{http://schemas.xmlsoap.org/wsdl/soap/}binding\": [\n            \"@style\": \"document\",\n            \"@transport\": \"http://schemas.xmlsoap.org/soap/http\"\n          ],\n          \"{http://schemas.xmlsoap.org/wsdl/}operation\": [\n            \"@name\": \"GetEndorsingBoarder\",\n            \"{http://schemas.xmlsoap.org/wsdl/soap/}operation\": [\n              \"@soapAction\": \"http://www.snowboard-info.com/EndorsementSearch\"\n            ],\n            \"{http://schemas.xmlsoap.org/wsdl/}input\": [\n              \"{http://schemas.xmlsoap.org/wsdl/soap/}body\": [\n                \"@use\": \"literal\",\n                \"@namespace\": \"http://schemas.snowboard-info.com/EndorsementSearch.xsd\"\n              ]\n            ],\n            \"{http://schemas.xmlsoap.org/wsdl/}output\": [\n              \"{http://schemas.xmlsoap.org/wsdl/soap/}body\": [\n                \"@use\": \"literal\",\n                \"@namespace\": \"http://schemas.snowboard-info.com/EndorsementSearch.xsd\"\n              ]\n            ],\n            \"{http://schemas.xmlsoap.org/wsdl/}fault\": [\n              \"{http://schemas.xmlsoap.org/wsdl/soap/}body\": [\n                \"@use\": \"literal\",\n                \"@namespace\": \"http://schemas.snowboard-info.com/EndorsementSearch.xsd\"\n              ]\n            ]\n          ]\n        ],\n        \"{http://schemas.xmlsoap.org/wsdl/}service\": [\n          \"@name\": \"EndorsementSearchService\",\n          \"{http://schemas.xmlsoap.org/wsdl/}documentation\": [\n            text: \"snowboarding-info.com Endorsement Service\"\n          ],\n          \"{http://schemas.xmlsoap.org/wsdl/}port\": [\n            \"@name\": \"GetEndorsingBoarderPort\",\n            \"@binding\": \"es:EndorsementSearchSoapBinding\",\n            \"{http://schemas.xmlsoap.org/wsdl/soap/}address\": [\n              \"@location\": \"http://www.snowboard-info.com/EndorsementSearch\"\n            ]\n          ]\n        ]\n      ]\n    ]\n    ```\n\n2. Find by element name\n\n    ```elixir\n    File.read!(\"simple.wsdl\")\n    |\u003e Xmlx.parse()\n    |\u003e Xmlx.find(:\"{http://schemas.xmlsoap.org/wsdl/}port\")\n    ```\n\n    or\n\n    ```elixir\n    File.read!(\"simple.wsdl\")\n    |\u003e Xmlx.parse()\n    |\u003e Xmlx.find(\"{http://schemas.xmlsoap.org/wsdl/}port\")\n    ```\n\n    or\n\n    ```elixir\n    File.read!(\"simple.wsdl\")\n    |\u003e Xmlx.parse()\n    |\u003e Xmlx.find(\"port\")\n    ```\n\n    result\n\n    ```elixir\n    [\n      \"{http://schemas.xmlsoap.org/wsdl/}port\": [\n        \"@name\": \"GetEndorsingBoarderPort\",\n        \"@binding\": \"es:EndorsementSearchSoapBinding\",\n        \"{http://schemas.xmlsoap.org/wsdl/soap/}address\": [\n          \"@location\": \"http://www.snowboard-info.com/EndorsementSearch\"\n        ]\n      ]\n    ]\n    ```\n\n3. Find by attribute name\n\n    ```elixir\n    File.read!(\"simple.wsdl\")\n    |\u003e Xmlx.parse()\n    |\u003e Xmlx.find(:\"@location\")\n    ```\n\n    or\n\n    ```elixir\n    File.read!(\"simple.wsdl\")\n    |\u003e Xmlx.parse()\n    |\u003e Xmlx.find(\"@location\")\n    ```\n\n    result\n\n    ```elixir\n    [\"@location\": \"http://www.snowboard-info.com/EndorsementSearch\"]\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frzcastilho%2Fxmlx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frzcastilho%2Fxmlx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frzcastilho%2Fxmlx/lists"}