{"id":23416214,"url":"https://github.com/bluk/maybe_xml","last_synced_at":"2026-03-10T09:03:11.988Z","repository":{"id":57637139,"uuid":"289990171","full_name":"bluk/maybe_xml","owner":"bluk","description":"A non-validating XML pull parser.","archived":false,"fork":false,"pushed_at":"2025-08-25T18:04:11.000Z","size":8220,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"trunk","last_synced_at":"2025-10-01T20:59:23.647Z","etag":null,"topics":["parser","pull-parser","rust","xml","xml-parser"],"latest_commit_sha":null,"homepage":"https://docs.rs/maybe_xml/","language":"Rust","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/bluk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","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}},"created_at":"2020-08-24T17:09:54.000Z","updated_at":"2025-08-25T15:54:59.000Z","dependencies_parsed_at":"2023-11-22T03:26:01.600Z","dependency_job_id":"f339f486-147a-4d35-aa78-75b957596758","html_url":"https://github.com/bluk/maybe_xml","commit_stats":{"total_commits":24,"total_committers":2,"mean_commits":12.0,"dds":"0.33333333333333337","last_synced_commit":"e80eda13994d0c9a8a17e6135476a5a10cedc50d"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/bluk/maybe_xml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluk%2Fmaybe_xml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluk%2Fmaybe_xml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluk%2Fmaybe_xml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluk%2Fmaybe_xml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bluk","download_url":"https://codeload.github.com/bluk/maybe_xml/tar.gz/refs/heads/trunk","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluk%2Fmaybe_xml/sbom","scorecard":{"id":245065,"data":{"date":"2025-08-11","repo":{"name":"github.com/bluk/maybe_xml","commit":"eb70fc1429fe9caf3e5f72ad4e40048974e13e25"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.9,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Info: topLevel 'contents' permission set to 'read': .github/workflows/audit.yml:4","Info: topLevel 'contents' permission set to 'read': .github/workflows/ci.yml:4","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE-APACHE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE-APACHE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'trunk'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/audit.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/bluk/maybe_xml/audit.yml/trunk?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/audit.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/bluk/maybe_xml/audit.yml/trunk?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:113: update your workflow using https://app.stepsecurity.io/secureworkflow/bluk/maybe_xml/ci.yml/trunk?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:117: update your workflow using https://app.stepsecurity.io/secureworkflow/bluk/maybe_xml/ci.yml/trunk?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:134: update your workflow using https://app.stepsecurity.io/secureworkflow/bluk/maybe_xml/ci.yml/trunk?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:142: update your workflow using https://app.stepsecurity.io/secureworkflow/bluk/maybe_xml/ci.yml/trunk?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:161: update your workflow using https://app.stepsecurity.io/secureworkflow/bluk/maybe_xml/ci.yml/trunk?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:165: update your workflow using https://app.stepsecurity.io/secureworkflow/bluk/maybe_xml/ci.yml/trunk?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:171: update your workflow using https://app.stepsecurity.io/secureworkflow/bluk/maybe_xml/ci.yml/trunk?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/bluk/maybe_xml/ci.yml/trunk?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/bluk/maybe_xml/ci.yml/trunk?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/bluk/maybe_xml/ci.yml/trunk?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/bluk/maybe_xml/ci.yml/trunk?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:90: update your workflow using https://app.stepsecurity.io/secureworkflow/bluk/maybe_xml/ci.yml/trunk?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:94: update your workflow using https://app.stepsecurity.io/secureworkflow/bluk/maybe_xml/ci.yml/trunk?enable=pin","Info:   0 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   8 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":9,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/bluk/.github/SECURITY.md:1","Info: Found linked content: github.com/bluk/.github/SECURITY.md:1","Warn: One or no descriptive hints of disclosure, vulnerability, and/or timelines in security policy","Info: Found text in security policy: github.com/bluk/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}}]},"last_synced_at":"2025-08-17T07:25:47.207Z","repository_id":57637139,"created_at":"2025-08-17T07:25:47.208Z","updated_at":"2025-08-17T07:25:47.208Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30328274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"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":["parser","pull-parser","rust","xml","xml-parser"],"created_at":"2024-12-22T22:14:03.205Z","updated_at":"2026-03-10T09:03:11.921Z","avatar_url":"https://github.com/bluk.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MaybeXml\n\nMaybeXml is a library to scan and evaluate [XML][xml]-like data into tokens. In\neffect, the library provides a non-validating parser. The interface is similar to\nmany XML pull parsers.\n\n* [Latest API Documentation][api_docs]\n\n## Purpose\n\nThe purpose of the library is to provide a way to read XML documents including\noffice suite documents, RSS/Atom feeds, config files, SVG, and web service\nmessages.\n\n## Examples\n\n### Using `tokenize()`\n\n```rust\nuse maybe_xml::{Reader, token::{Characters, EndTag, StartTag, Ty}};\n\nlet input = \"\u003cid\u003e123\u003c/id\u003e\";\n\nlet reader = Reader::from_str(input);\nlet mut pos = 0;\n\nlet token = reader.tokenize(\u0026mut pos);\nif let Some(Ty::StartTag(tag)) = token.map(|t| t.ty()) {\n    assert_eq!(\"id\", tag.name().local().as_str());\n    assert_eq!(None, tag.name().namespace_prefix());\n} else {\n    panic!();\n}\nassert_eq!(4, pos);\n\nlet token = reader.tokenize(\u0026mut pos);\nif let Some(Ty::Characters(chars)) = token.map(|t| t.ty()) {\n    assert_eq!(\"123\", chars.content().as_str());\n} else {\n    panic!();\n}\nassert_eq!(7, pos);\n\nlet token = reader.tokenize(\u0026mut pos);\nif let Some(Ty::EndTag(tag)) = token.map(|t| t.ty()) {\n    assert_eq!(\"\u003c/id\u003e\", tag.as_str());\n    assert_eq!(\"id\", tag.name().local().as_str());\n} else {\n    panic!();\n}\nassert_eq!(12, pos);\n\nlet token = reader.tokenize(\u0026mut pos);\nassert_eq!(None, token);\n\n// Verify that `pos` is equal to `input.len()` to ensure all data was\n// processed.\n```\n\n### Using `Iterator` functionality\n\n```rust\nuse maybe_xml::{Reader, token::Ty};\n\nlet input = \"\u003cid\u003e123\u003c/id\u003e\u003cname\u003eJane Doe\u003c/name\u003e\";\n\nlet reader = Reader::from_str(input);\nlet mut iter = reader.into_iter().filter_map(|token| {\n    match token.ty() {\n        Ty::StartTag(tag) =\u003e Some(tag.name().as_str()),\n        _ =\u003e None,\n    }\n});\n\nlet name = iter.next();\nassert_eq!(Some(\"id\"), name);\n\nlet name = iter.next();\nassert_eq!(Some(\"name\"), name);\n\nassert_eq!(None, iter.next());\n```\n\n## Installation\n\n```sh\ncargo add maybe_xml\n```\n\nBy default, the `std` feature is enabled.\n\n### Alloc only\n\nIf the host environment has an allocator but does not have access to the Rust\n`std` library:\n\n```sh\ncargo add --no-default-features --features alloc maybe_xml\n```\n\n### No allocator / core only\n\nIf the host environment does not have an allocator:\n\n```sh\ncargo add --no-default-features maybe_xml\n```\n\n## License\n\nLicensed under either of [Apache License, Version 2.0][LICENSE_APACHE] or [MIT\nLicense][LICENSE_MIT] at your option.\n\n### Contributions\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n\n[LICENSE_APACHE]: LICENSE-APACHE\n[LICENSE_MIT]: LICENSE-MIT\n[xml]: https://www.w3.org/TR/2006/REC-xml11-20060816/\n[api_docs]: https://docs.rs/maybe_xml/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluk%2Fmaybe_xml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluk%2Fmaybe_xml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluk%2Fmaybe_xml/lists"}