{"id":15044489,"url":"https://github.com/fluentxml4j/fluentxml4j","last_synced_at":"2025-09-09T19:32:43.019Z","repository":{"id":44619624,"uuid":"84974822","full_name":"fluentxml4j/fluentxml4j","owner":"fluentxml4j","description":"A fluent API for XML parsing, serialization, XPath querying and transformation in Java.","archived":false,"fork":false,"pushed_at":"2024-10-03T18:46:22.000Z","size":316,"stargazers_count":15,"open_issues_count":19,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T00:42:58.056Z","etag":null,"topics":["dom","fluent","fluentxml4j","java","java8","lambda","parsing","query","serialization","transformations","xml","xml-parsing","xpath"],"latest_commit_sha":null,"homepage":"","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/fluentxml4j.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-03-14T16:55:11.000Z","updated_at":"2024-05-31T16:14:59.000Z","dependencies_parsed_at":"2025-02-16T05:32:29.175Z","dependency_job_id":"b7505a18-1087-468c-9a8f-a3ffc7694b95","html_url":"https://github.com/fluentxml4j/fluentxml4j","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluentxml4j%2Ffluentxml4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluentxml4j%2Ffluentxml4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluentxml4j%2Ffluentxml4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluentxml4j%2Ffluentxml4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluentxml4j","download_url":"https://codeload.github.com/fluentxml4j/fluentxml4j/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137998,"owners_count":21053775,"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":["dom","fluent","fluentxml4j","java","java8","lambda","parsing","query","serialization","transformations","xml","xml-parsing","xpath"],"created_at":"2024-09-24T20:50:38.821Z","updated_at":"2025-04-10T00:43:03.397Z","avatar_url":"https://github.com/fluentxml4j.png","language":"Java","readme":"# FluentXML4J - a fluent API for XML in Java\n[![Build Status](https://github.com/fluentxml4j/fluentxml4j/workflows/build/badge.svg)](https://github.com/fluentxml4j/fluentxml4j/actions) [![Code Coverage](https://codecov.io/gh/fluentxml4j/fluentxml4j/branch/master/graph/badge.svg)](https://codecov.io/gh/fluentxml4j/fluentxml4j) [![Maven Central](https://img.shields.io/maven-central/v/com.github.fluentxml4j/fluentxml4j-core.svg)](https://search.maven.org/#search%7Cga%7C1%7Cfluentxml4j-core) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0.txt)\n\n#### XML parsing, serialization XPath querying and transformation without boilerplate code\n\n## Features\n* Simple, fluent API but full flexibility\n* Parse from java.io inputs to org.w3c.dom.Document\n* Serialize org.w3c.dom.Document to any java.io output\n* Transform from java.io, SAX, StAX, JAXB input to any of them\n  with XSLT and custom filters support\n* Query org.w3c.dom.Document via XPath for String, Boolean, Number, org.w3c.dom.Element or Node,\n  get the results as collections or process with the Java 8 Streaming API\n* Validate document against schemas\n* No (required) dependencies\n\n## Requirements\nFluentXML4J uses the builtin JDK XML parser and XPath API, but Java 8 is required because of streaming API and Optional support.\n\n## Maven Dependency\n\n```\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.fluentxml4j\u003c/groupId\u003e\n  \u003cartifactId\u003efluentxml4j-core\u003c/artifactId\u003e\n  \u003cversion\u003e2.2.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Examples\n\n### Parsing\n```\nDocument doc = parse(getClass().getResourceAsStream(\"example.xml\"))\n    .document();\n```\n\n[More parsing examples...](doc/examples/parsing-examples.md)\n\n\n### Serialization\n```\nserialize(document).to(System.err);\n```\n\n[More serialization examples...](doc/examples/serialization-examples.md)\n\n### Transformation\n```\nDocument resultDoc = transform(inputDoc)\n        .withStylesheet(xsltInputStream)\n        .toDocument();\n```\n\n[More transformation examples...](doc/examples/transformation-examples.md)\n\n### XPath Querying\n```\nList\u003cElement\u003e elements = from(doc)\n    .selectElements(\"//*\")\n    .asList();\n```\n\n[More xpath examples...](doc/examples/xpath-examples.md)\n\n## Similar and related Projects\n* [xmltool](http://code.mycila.com/xmltool) - another fluent API for XML\n* [dom4j](https://dom4j.github.io/) - alternative DOM implementation\n* [jdom](http://www.jdom.org/) - alternative DOM implementation\n* [XMLDog](https://code.google.com/archive/p/jlibs/wikis/XMLDog.wiki) - a XML stream sniffer\n\n## Contributing\nFluentXML4J is an open source project, and contributions are welcome! Feel free to raise an issue or submit a pull request.\n\n## License\nCopyright (c) 2017 by [Cornelius Buschka](https://github.com/cbuschka).\n\n[Apache License, Version 2.0](license)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluentxml4j%2Ffluentxml4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluentxml4j%2Ffluentxml4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluentxml4j%2Ffluentxml4j/lists"}