{"id":37205586,"url":"https://github.com/bluestorm001/xmlread","last_synced_at":"2026-01-14T23:41:07.450Z","repository":{"id":64305466,"uuid":"483892450","full_name":"BlueStorm001/xmlread","owner":"BlueStorm001","description":"High performance XML reader","archived":false,"fork":false,"pushed_at":"2022-04-21T07:15:09.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-21T07:51:34.498Z","etag":null,"topics":["xml","xml-reader","xmlreader"],"latest_commit_sha":null,"homepage":"","language":"Go","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/BlueStorm001.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":"2022-04-21T03:27:13.000Z","updated_at":"2022-04-21T07:02:44.000Z","dependencies_parsed_at":"2023-01-15T10:30:20.966Z","dependency_job_id":null,"html_url":"https://github.com/BlueStorm001/xmlread","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/BlueStorm001/xmlread","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlueStorm001%2Fxmlread","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlueStorm001%2Fxmlread/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlueStorm001%2Fxmlread/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlueStorm001%2Fxmlread/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BlueStorm001","download_url":"https://codeload.github.com/BlueStorm001/xmlread/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlueStorm001%2Fxmlread/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28439495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"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":["xml","xml-reader","xmlreader"],"created_at":"2026-01-14T23:41:06.850Z","updated_at":"2026-01-14T23:41:07.434Z","avatar_url":"https://github.com/BlueStorm001.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xml read\n\n\n``` golang\nimport (\n    \"fmt\"\n    \"github.com/BlueStorm001/xmlread\"\n)\n```\n``` golang\nvar str = `\u003c?xml version=\"1.0\" encoding=\"utf-8\" ?\u003e\n            \u003ca\u003e\n                \u003ca1 id=\"a1id\"\u003ea321\u003c/a1\u003e\n                \u003cbb/\u003e\n                \u003cb\u003e\n                    \u003ca:Code\u003eUO\u003c/a:Code\u003e\n                    \u003ccs\u003e\n                        \u003cc\u003e\n                            \u003cname\u003e\"\u0026/'\u003e'\u003c/name\u003e\n                            \u003cage\u003e18\u003c/age\u003e\n                        \u003c/c\u003e\n                        \u003cc\u003e\n                            \u003cname\u003e\u003c\u003e\u003e\u0026\u0026''\"\"\u003c/name\u003e\n                            \u003cage\u003e19\u003c/age\u003e\n                        \u003c/c\u003e\n                    \u003c/cs\u003e\n                \u003c/b\u003e\n            \u003c/a\u003e`\n            \nvar xml = xmlread.New()\n```\n``` golang\nfunc main() {\n    var r = xml.Load([]byte(str))\n    //循环读取\n    for {\n        read := r.Read()\n        if read.Finish {\n            break\n        }\n        if read.Name == \"\" {\n            continue\n        }\n        if read.StartElement \u0026\u0026 read.Name == \"a1\" {\n            fmt.Println(read.Name, r.Text(), read.Attr[\"id\"])\n        }\n        if read.StartElement \u0026\u0026 read.Name == \"a:Code\" {\n            fmt.Println(read.Name, r.Text())\n        }\n        if read.StartElement \u0026\u0026 read.Name == \"name\" {\n            fmt.Println(read.Name, r.Text())\n        }\n        if read.StartElement \u0026\u0026 read.Name == \"age\" {\n            fmt.Println(read.Name, r.Text())\n        }\n    }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluestorm001%2Fxmlread","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluestorm001%2Fxmlread","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluestorm001%2Fxmlread/lists"}