{"id":42899904,"url":"https://github.com/tonis2/xml.c3","last_synced_at":"2026-01-30T15:21:12.408Z","repository":{"id":254009780,"uuid":"841140912","full_name":"tonis2/xml.c3","owner":"tonis2","description":"XML parser in c3","archived":false,"fork":false,"pushed_at":"2026-01-29T16:03:32.000Z","size":283,"stargazers_count":3,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-30T04:43:27.707Z","etag":null,"topics":["c3","c3lang","xml"],"latest_commit_sha":null,"homepage":"","language":"C3","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tonis2.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":"2024-08-11T18:56:51.000Z","updated_at":"2026-01-29T16:03:35.000Z","dependencies_parsed_at":"2026-01-29T18:13:34.712Z","dependency_job_id":null,"html_url":"https://github.com/tonis2/xml.c3","commit_stats":null,"previous_names":["tonis2/xml.c3"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tonis2/xml.c3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonis2%2Fxml.c3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonis2%2Fxml.c3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonis2%2Fxml.c3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonis2%2Fxml.c3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tonis2","download_url":"https://codeload.github.com/tonis2/xml.c3/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonis2%2Fxml.c3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28914902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T12:13:43.263Z","status":"ssl_error","status_checked_at":"2026-01-30T12:13:22.389Z","response_time":66,"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":["c3","c3lang","xml"],"created_at":"2026-01-30T15:21:11.871Z","updated_at":"2026-01-30T15:21:12.400Z","avatar_url":"https://github.com/tonis2.png","language":"C3","funding_links":[],"categories":["Encoding"],"sub_categories":[],"readme":"# xml.c3\nXML parser in C3\n\n-----\n#### Installing\nAdd this [file](https://github.com/tonis2/xml.c3/raw/refs/heads/main/xml.c3l) to C3 dependencies folder\n\nAnd then `xml` to project.json like below\n\n`\"dependencies\": [\"xml\"]`\n\n\nCheck tests for examples\n\n\n\n----\n#### Using in code\n\nXML nodes can be searched like below\n\n```c  \n  xml::Parser parser = xml::load_file(\"assets/test.xml\")!!;\n  defer parser.free();\n\n  Node node = parser.root;\n\n  NodeList members;\n  defer members.free();\n  \n  NodeList types;\n  defer types.free();\n\n  node.find(fn (node) =\u003e node.name == \"member\", \u0026members);\n  node.find(fn (node) =\u003e node.name == \"type\" \u0026\u0026 node.attributes.has_key(\"category\"), \u0026types);\n  \n  NodeList command_nodes;\n  defer command_nodes.free();\n\n  node.find(fn (node) {\n      if (node.name == \"command\" \u0026\u0026 node.children.len() \u003e 0) {\n          if (node.attributes.has_key(\"api\") \u0026\u0026 node.attributes[\"api\"]!! == \"vulkansc\") {\n               return false;\n          };\n          return true;\n      }\n      return false;\n  }, \u0026command_nodes);\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftonis2%2Fxml.c3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftonis2%2Fxml.c3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftonis2%2Fxml.c3/lists"}