{"id":13509756,"url":"https://github.com/pwoolcoc/exmerl","last_synced_at":"2025-10-21T19:02:11.174Z","repository":{"id":16992433,"uuid":"19755481","full_name":"pwoolcoc/exmerl","owner":"pwoolcoc","description":"Elixir wrapper for xmerl_*","archived":false,"fork":false,"pushed_at":"2017-01-23T15:07:02.000Z","size":11,"stargazers_count":12,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-01T10:34:56.808Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pwoolcoc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-13T20:52:10.000Z","updated_at":"2022-12-04T21:46:29.000Z","dependencies_parsed_at":"2022-09-04T13:23:05.071Z","dependency_job_id":null,"html_url":"https://github.com/pwoolcoc/exmerl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwoolcoc%2Fexmerl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwoolcoc%2Fexmerl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwoolcoc%2Fexmerl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwoolcoc%2Fexmerl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pwoolcoc","download_url":"https://codeload.github.com/pwoolcoc/exmerl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246332199,"owners_count":20760435,"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":[],"created_at":"2024-08-01T02:01:12.507Z","updated_at":"2025-10-21T19:02:11.079Z","avatar_url":"https://github.com/pwoolcoc.png","language":"Elixir","funding_links":[],"categories":["XML"],"sub_categories":[],"readme":"# Exmerl\n\nA wrapper for the xmerl\\_\\* suite of modules, though at the moment all\nyou can do is parse and use xpaths to select nodes.\n\n## Usage\n\nCurrently it is possible to parse XML from a file or string using either `from_file/1,2`,\n`from_string/1,2` or `parse/1,2`. They all accept an optional Keyword\nlist as the second argument. Possible options can be found in the erlang\ndocumentation for the xmerl\\_\\* modules.\n\n    iex(1)\u003e # you can pass parse/1,2 a filename or an xml string\n    iex(2)\u003e Exmerl.parse(\"test.xml\")\n    {{:xmlElement, :root, :root, [], {:xmlNamespace,...\n    ...\n    ...\n    iex(3)\u003e {doc, rest} = Exmerl.from_string(\"\"\"\u003c?xml version=\"1.0\" encoding=\"utf-8\" ?\u003e\u003crootnode\u003eTest\u003c/rootnode\u003e\"\"\")\n    {{:xmlElement, :root, :root, [], {:xmlNamespace,...\n    ...\n    ...\n\nYou can traverse the document by using xpath selectors, and the\nExmerl.XPath.find function. `find/2,3,4,5` takes an XML document (or a\n`{doc, rest}` pair as shown above), an xpath selector, and optional\n`node`, `parent`, and a Keyword list of options. `find` will accept a\n`{doc,rest}` pair to make it easier to pipe the output of `parse` into\n`find`:\n\n    iex(1)\u003e Exmerl.parse(\"test.xml\") |\u003e\n    ...(1)\u003e   Exmerl.XPath.find(\"//some-node-name\")\n    {[{:xmlElement, ...\n    ...\n    ...\n\nIn this case, instead of returning `[result_term]`, it will return\n`{[result_term], [rest]}`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpwoolcoc%2Fexmerl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpwoolcoc%2Fexmerl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpwoolcoc%2Fexmerl/lists"}