{"id":37029481,"url":"https://github.com/codemonstur/simplexml","last_synced_at":"2026-01-14T03:32:41.482Z","repository":{"id":53982316,"uuid":"103437792","full_name":"codemonstur/simplexml","owner":"codemonstur","description":"A standalone Java XML parser and serializer","archived":false,"fork":false,"pushed_at":"2025-02-14T18:48:47.000Z","size":291,"stargazers_count":23,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-14T19:35:24.777Z","etag":null,"topics":["annotations","serializer","xml","xml-parser"],"latest_commit_sha":null,"homepage":"","language":"Java","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/codemonstur.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}},"created_at":"2017-09-13T18:45:41.000Z","updated_at":"2025-02-14T18:48:51.000Z","dependencies_parsed_at":"2024-04-28T17:29:00.778Z","dependency_job_id":"5796ffc0-47b9-4161-be19-8f77ad0470b6","html_url":"https://github.com/codemonstur/simplexml","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/codemonstur/simplexml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemonstur%2Fsimplexml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemonstur%2Fsimplexml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemonstur%2Fsimplexml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemonstur%2Fsimplexml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codemonstur","download_url":"https://codeload.github.com/codemonstur/simplexml/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemonstur%2Fsimplexml/sbom","scorecard":{"id":296919,"data":{"date":"2025-08-11","repo":{"name":"github.com/codemonstur/simplexml","commit":"2f52c7cb31c2d2eafe9377b50b29573e03c9dc47"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"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":"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":"Maintained","score":7,"reason":"8 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 7","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"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:0","Info: FSF or OSI recognized license: MIT License: LICENSE: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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact simplexml-3.3.0 not signed: https://api.github.com/repos/codemonstur/simplexml/releases/230945532","Warn: release artifact simplexml-3.2.0 not signed: https://api.github.com/repos/codemonstur/simplexml/releases/161807797","Warn: release artifact simplexml-3.1.2 not signed: https://api.github.com/repos/codemonstur/simplexml/releases/161139012","Warn: release artifact simplexml-2.10.1 not signed: https://api.github.com/repos/codemonstur/simplexml/releases/161142049","Warn: release artifact simplexml-3.1.1 not signed: https://api.github.com/repos/codemonstur/simplexml/releases/153576897","Warn: release artifact simplexml-3.3.0 does not have provenance: https://api.github.com/repos/codemonstur/simplexml/releases/230945532","Warn: release artifact simplexml-3.2.0 does not have provenance: https://api.github.com/repos/codemonstur/simplexml/releases/161807797","Warn: release artifact simplexml-3.1.2 does not have provenance: https://api.github.com/repos/codemonstur/simplexml/releases/161139012","Warn: release artifact simplexml-2.10.1 does not have provenance: https://api.github.com/repos/codemonstur/simplexml/releases/161142049","Warn: release artifact simplexml-3.1.1 does not have provenance: https://api.github.com/repos/codemonstur/simplexml/releases/153576897"],"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 'master'"],"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":"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"}}]},"last_synced_at":"2025-08-17T19:46:58.761Z","repository_id":53982316,"created_at":"2025-08-17T19:46:58.761Z","updated_at":"2025-08-17T19:46:58.761Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408843,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["annotations","serializer","xml","xml-parser"],"created_at":"2026-01-14T03:32:40.905Z","updated_at":"2026-01-14T03:32:41.470Z","avatar_url":"https://github.com/codemonstur.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![GitHub Release](https://img.shields.io/github/release/codemonstur/simplexml.svg)](https://github.com/codemonstur/simplexml/releases) \n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.codemonstur/simplexml/badge.svg)](http://mvnrepository.com/artifact/com.github.codemonstur/simplexml)\n[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)\n\n# SimpleXml\n\nAfter a number of bad experiences with XML parsing in Java I decided to write my own parser.\n\nThis project has the following characteristics; correct XML parsing, small, few dependencies, \nthread-safe, user friendly API, secure.\n\nVersion 3.x depends on Java 19. \nFor Java 8 support you have to use 2.x versions.\n\n## How to use\n\nThe unit tests in [src/test/java/unittests](https://github.com/codemonstur/simplexml/tree/master/src/test/java/unittests) can give you a good idea of the capabilities of SimpleXml.\nThere are also a number of small example programs in [src/test/java/example](https://github.com/codemonstur/simplexml/tree/master/src/test/java/example) that showcase various features.\n\n### Examples\n\n* [Builder.java](https://github.com/codemonstur/simplexml/blob/master/src/test/java/example/Builder.java)\n* [Compress.java](https://github.com/codemonstur/simplexml/blob/master/src/test/java/example/Compress.java)\n* [Deserialize.java](https://github.com/codemonstur/simplexml/blob/master/src/test/java/example/Deserialize.java)\n* [PrettyPrint.java](https://github.com/codemonstur/simplexml/blob/master/src/test/java/example/PrettyPrint.java)\n* [RawStream.java](https://github.com/codemonstur/simplexml/blob/master/src/test/java/example/RawStream.java)\n* [Serialize.java](https://github.com/codemonstur/simplexml/blob/master/src/test/java/example/Serialize.java)\n\n## Implemented annotations\n\n- [@XmlAbstractClass](https://github.com/codemonstur/simplexml/blob/master/src/main/java/xmlparser/annotations/XmlAbstractClass.java)\n- [@XmlAttribute](https://github.com/codemonstur/simplexml/blob/master/src/main/java/xmlparser/annotations/XmlAttribute.java)\n- [@XmlEnumValue](https://github.com/codemonstur/simplexml/blob/master/src/main/java/xmlparser/annotations/XmlEnumValue.java)\n- [@XmlFieldDeserializer](https://github.com/codemonstur/simplexml/blob/master/src/main/java/xmlparser/annotations/XmlFieldDeserializer.java)\n- [@XmlMapTagIsKey](https://github.com/codemonstur/simplexml/blob/master/src/main/java/xmlparser/annotations/XmlMapTagIsKey.java)\n- [@XmlMapWithAttributes](https://github.com/codemonstur/simplexml/blob/master/src/main/java/xmlparser/annotations/XmlMapWithAttributes.java)\n- [@XmlMapWithChildNodes](https://github.com/codemonstur/simplexml/blob/master/src/main/java/xmlparser/annotations/XmlMapWithChildNodes.java)\n- [@XmlName](https://github.com/codemonstur/simplexml/blob/master/src/main/java/xmlparser/annotations/XmlName.java)\n- [@XmlNameFromClass](https://github.com/codemonstur/simplexml/blob/master/src/main/java/xmlparser/annotations/XmlNameFromClass.java)\n- [@XmlNoExport](https://github.com/codemonstur/simplexml/blob/master/src/main/java/xmlparser/annotations/XmlNoExport.java)\n- [@XmlNoImport](https://github.com/codemonstur/simplexml/blob/master/src/main/java/xmlparser/annotations/XmlNoImport.java)\n- [@XmlObjectValidator](https://github.com/codemonstur/simplexml/blob/master/src/main/java/xmlparser/annotations/XmlObjectValidator.java)\n- [@XmlPath](https://github.com/codemonstur/simplexml/blob/master/src/main/java/xmlparser/annotations/XmlPath.java)\n- [@XmlTextNode](https://github.com/codemonstur/simplexml/blob/master/src/main/java/xmlparser/annotations/XmlTextNode.java)\n- [@XmlWrapperTag](https://github.com/codemonstur/simplexml/blob/master/src/main/java/xmlparser/annotations/XmlWrapperTag.java)\n\n## How to get\n\nIt's in maven central.\n\n    \u003cdependency\u003e\n        \u003cgroupId\u003ecom.github.codemonstur\u003c/groupId\u003e\n        \u003cartifactId\u003esimplexml\u003c/artifactId\u003e\n        \u003cversion\u003e3.2.0\u003c/version\u003e\n    \u003c/dependency\u003e\n\n### Serializing\n\nThe simplest case possible:\n\n    import xmlparser.XmlParser;\n\n    public class MyObject {\n        String name;\n    }\n    \n    MyObject object = new MyObject();\n    object.name = \"test\";\n\n    final XmlParser parser = new XmlParser();\n    System.out.println(parser.toXml(object));\n\nThis code will output:\n\n    \u003cmyobject\u003e\n      \u003cname\u003etest\u003c/name\u003e\n    \u003c/myobject\u003e\n\nThere are more serialization options\n- Renaming fields\n- Fields as attributes\n- Field as text node\n- Skipping fields\n- etc...\n\nFor more documentation on serializing look in [src/docs/serialize.md](https://github.com/codemonstur/simplexml/tree/master/src/docs/serialize.md).\n\n### Deserializing\n\nThe simplest case possible:\n\n    import xmlparser.XmlParser;\n\n    public class MyObject {\n        String name;\n    }\n\n    final XmlParser parser = new XmlParser();\n    final MyObject object = parser.fromXml(\"\u003cmyobject\u003e\u003cname\u003etest\u003c/name\u003e\u003c/myobject\u003e\", MyObject.class);\n    System.out.println(object.name);\n\nThis code will output:\n\n    test\n\nThe deserializer will respect the same annotations as the serializer\n- Renamed fields\n- Attributes\n- Text nodes\n- Skipped fields\n- etc...\n\nIf there is a feature you would like to have, but doesn't exist, please let me know.\n\n## License\n\nThe MIT license. And I left out the copyright notice everywhere because I just don't care.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemonstur%2Fsimplexml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodemonstur%2Fsimplexml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemonstur%2Fsimplexml/lists"}