{"id":17988539,"url":"https://github.com/heyvito/exml","last_synced_at":"2026-02-12T23:32:15.662Z","repository":{"id":57632305,"uuid":"411482811","full_name":"heyvito/exml","owner":"heyvito","description":"🧑‍💻 Go XML generator without Structs™","archived":false,"fork":false,"pushed_at":"2022-11-15T21:35:45.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"trunk","last_synced_at":"2025-04-06T14:06:40.394Z","etag":null,"topics":["golang","xml","xml-document"],"latest_commit_sha":null,"homepage":"","language":"Go","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/heyvito.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":"2021-09-29T00:48:46.000Z","updated_at":"2022-11-15T20:40:10.000Z","dependencies_parsed_at":"2022-08-31T16:31:19.846Z","dependency_job_id":null,"html_url":"https://github.com/heyvito/exml","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/heyvito/exml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyvito%2Fexml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyvito%2Fexml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyvito%2Fexml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyvito%2Fexml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heyvito","download_url":"https://codeload.github.com/heyvito/exml/tar.gz/refs/heads/trunk","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyvito%2Fexml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29386217,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T22:07:52.078Z","status":"ssl_error","status_checked_at":"2026-02-12T22:07:49.026Z","response_time":55,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["golang","xml","xml-document"],"created_at":"2024-10-29T19:11:57.513Z","updated_at":"2026-02-12T23:32:15.649Z","avatar_url":"https://github.com/heyvito.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# exml\n\n🧑‍💻 Go XML generator without Structs™\n\nPackage `exml` allows XML documents to be generated without the usage of structs or maps. It is not intended for\nevery-day usage, since package `xml` will probably be a better option.\n\n## Installing\n\nYou probably already know the drill:\n\n```\ngo get github.com/heyvito/exml\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\n\t\"github.com/heyvito/exml\"\n)\n\nfunc main() {\n\tdoc := exml.Document{\n\t\tProcessingInstruction: exml.XML10ProcessingInstruction,\n\t}\n\n\tns := doc.AddNamespace(\"foo\", \"https://tempuri.org\")\n\troot := exml.MakeNode(\"root\", exml.WithNamespace(ns), exml.WithAttribute(\"attr\", \"value\"))\n\tdoc.SetRoot(root)\n\n\troot.AddChild(\"child\", exml.WithInnerText(\"Some value here\"))\n\tchild := root.AddChild(\"other-child\", exml.WithAttribute(\"len\", \"1\"))\n\tchild.AddChild(\"other-tag\", exml.WithInnerText(\"More text\\nWith line breaks.\"))\n\n\tfmt.Println(doc.String())\n}\n```\n\nThe code above will print the following XML document:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cfoo:root attr=\"value\" xmlns:foo=\"https://tempuri.org\"\u003e\n    \u003cchild\u003eSome value here\u003c/child\u003e\n    \u003cother-child len=\"1\"\u003e\n        \u003cother-tag\u003e\n            More text\n            With line breaks.\n        \u003c/other-tag\u003e\n    \u003c/other-child\u003e\n\u003c/foo:root\u003e\n```\n\n## License\n\n```\nCopyright (c) 2021, 22 - Victor Gama\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheyvito%2Fexml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheyvito%2Fexml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheyvito%2Fexml/lists"}