{"id":13718264,"url":"https://github.com/edjcase/motoko_xml","last_synced_at":"2026-01-23T19:33:11.732Z","repository":{"id":96425323,"uuid":"587147015","full_name":"edjCase/motoko_xml","owner":"edjCase","description":"XML encoding/decoding library in motoko","archived":false,"fork":false,"pushed_at":"2025-09-06T20:27:27.000Z","size":135,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-06T22:20:56.304Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Motoko","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/edjCase.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-01-10T04:10:12.000Z","updated_at":"2025-09-06T20:27:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"ae6cbbdc-efd0-467e-a46f-185079db9f8e","html_url":"https://github.com/edjCase/motoko_xml","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/edjCase/motoko_xml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edjCase%2Fmotoko_xml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edjCase%2Fmotoko_xml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edjCase%2Fmotoko_xml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edjCase%2Fmotoko_xml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edjCase","download_url":"https://codeload.github.com/edjCase/motoko_xml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edjCase%2Fmotoko_xml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28698894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T17:25:48.045Z","status":"ssl_error","status_checked_at":"2026-01-23T17:25:47.153Z","response_time":59,"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":[],"created_at":"2024-08-03T00:08:23.446Z","updated_at":"2026-01-23T19:33:11.727Z","avatar_url":"https://github.com/edjCase.png","language":"Motoko","funding_links":[],"categories":["Libraries"],"sub_categories":["Encoding"],"readme":"# Funding\n\nThis library was originally incentivized by ICDevs. You can view more about the bounty on the forum or website. The bounty was funded by The ICDevs.org commuity and the award paid to @Gekctek. If you use this library and gain value from it, please consider a donation to ICDevs.\n\n# Overview\n\nThis is a library that handles XML serialization and deserialization with UTF8 bytes and text\n\n# Package installation\n\n## MOPS\n\n### CLI\n\nRun `mops add xml`\n\n### Or manually:\n\nModify the `mops.toml` file to add:\n\n```\n[dependencies]\nxml = \"{version}\"\n```\n\nwhere `{version}` is the version number you want to use\n\nSee detailed MOPS documentation [here](https://mops.one/docs/install)\n\n# Usage\n\n```motoko\nimport Xml \"mo:xml\"\n...\n\nlet element : Xml.Element = {\n    name = \"root\";\n    attributes = [{ name = \"attr1\"; value=?\"value1\" }];\n    children = #open([\n        {\n            name = \"br\";\n            attributes = [];\n            children = #selfClosing;\n        }\n    ])\n}\n// To/from text\n\nlet serializedXml : Text = Xml.toText(element); // \u003croot attr1=\"value1\"\u003e\u003cbr/\u003e\u003c/root\u003e\n\nlet xmlObj : Xml.Element = Xml.fromText(\"\u003croot attr1=\\\"value1\\\"\u003e\u003cbr/\u003e\u003c/root\u003e\".chars())\n\n// OR to/from bytes\n\nlet xmlBytes : Iter.Iter\u003cNat8\u003e = Xml.toBytes(element);\n\nlet xmlObj2 : Xml.Element = Xml.fromBytes(xmlBytes);\n```\n\n# First time setup\n\nTo build the library, the `MOPS` library must be installed. It is used to pull down packages and running tests.\n\nMOPS install instructions: https://mops.one/docs/install\n\n# Testing\n\nTo run tests, use the `make test` command or run manually with `mops test`.\nThe tests use MOPS test framework\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedjcase%2Fmotoko_xml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedjcase%2Fmotoko_xml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedjcase%2Fmotoko_xml/lists"}