{"id":13485959,"url":"https://github.com/SvenEwald/xmlbeam","last_synced_at":"2025-03-27T20:31:57.715Z","repository":{"id":6032914,"uuid":"7257127","full_name":"SvenEwald/xmlbeam","owner":"SvenEwald","description":"Java XML library. A really cool one. Obviously.","archived":false,"fork":false,"pushed_at":"2023-09-23T11:52:38.000Z","size":2605,"stargazers_count":73,"open_issues_count":6,"forks_count":12,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-03T00:15:58.261Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://xmlbeam.org","language":"Java","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/SvenEwald.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}},"created_at":"2012-12-20T12:08:30.000Z","updated_at":"2024-03-31T14:13:17.000Z","dependencies_parsed_at":"2024-01-03T01:22:04.252Z","dependency_job_id":"8798dc66-51ae-4065-a8f3-7979c0c27d4e","html_url":"https://github.com/SvenEwald/xmlbeam","commit_stats":null,"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SvenEwald%2Fxmlbeam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SvenEwald%2Fxmlbeam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SvenEwald%2Fxmlbeam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SvenEwald%2Fxmlbeam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SvenEwald","download_url":"https://codeload.github.com/SvenEwald/xmlbeam/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213395779,"owners_count":15580792,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-07-31T18:00:35.078Z","updated_at":"2024-07-31T18:01:54.054Z","avatar_url":"https://github.com/SvenEwald.png","language":"Java","readme":"XMLBeam\n\n This is a Java XML library with an extraordinary expressive API. \n By using XPath for read and write operations, many operations take only one line of Java code.   \n This is how it looks:\n\n```XML\n\u003cxml\u003e\n   \u003cexample\u003e\n      \u003ccontent type=\"foo\" \u003ebar\u003c/content\u003e\n   \u003c/example\u003e\n\u003c/xml\u003e\n```\n\nAccess XML content in an object oriented way:\n```Java\npublic interface Example {\n    \n    // This is a getter for the attribute \"type\"\n    @XBRead(\"/xml/example/content/@type\")\n    String getType();\n    \n    // This is a getter and a setter for the value of the element \"content\"\n    @XBAuto(\"/xml/example/content\")\n    XBAutoValue\u003cString\u003e content();\n}\n\nExample example = new XBProjector().io().file(\"example.xml\").read(Example.class);\nString type = example.getType(); // \"foo\"\nString content = example.content().get(); // \"bar\"\nexample.content().set(\"new value\");\n```\n\nOr, direct access via XPath enabled collection types:\n```Java\nMap\u003cString,String\u003e map = new XBProjector().io().file(\"example.xml\").readAsMapOf(String.class);\nString type = map.get(\"/xml/example/content/@type\");\nString content = map.get(\"/xml/example/content\");\nmap.put(\"/xml/example/content\",\"new value\");\n```\n\nLearn more on [xmlbeam.org](https://xmlbeam.org)\n","funding_links":[],"categories":["Projects","项目"],"sub_categories":["Miscellaneous","杂项"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSvenEwald%2Fxmlbeam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSvenEwald%2Fxmlbeam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSvenEwald%2Fxmlbeam/lists"}