{"id":36702765,"url":"https://github.com/dataliquid/commons-xml","last_synced_at":"2026-01-12T11:39:48.000Z","repository":{"id":164853926,"uuid":"640260305","full_name":"dataliquid/commons-xml","owner":"dataliquid","description":"Simplifying XML Processing and Manipulation with Java","archived":false,"fork":false,"pushed_at":"2025-12-02T15:21:53.000Z","size":171,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-12-05T12:45:02.160Z","etag":null,"topics":["dom-utils","xml-creation","xml-parsing","xml-utils","xml-validation","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/dataliquid.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":"2023-05-13T14:00:41.000Z","updated_at":"2025-12-02T15:21:51.000Z","dependencies_parsed_at":"2025-11-17T07:04:33.825Z","dependency_job_id":null,"html_url":"https://github.com/dataliquid/commons-xml","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/dataliquid/commons-xml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dataliquid%2Fcommons-xml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dataliquid%2Fcommons-xml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dataliquid%2Fcommons-xml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dataliquid%2Fcommons-xml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dataliquid","download_url":"https://codeload.github.com/dataliquid/commons-xml/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dataliquid%2Fcommons-xml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:58:46.209Z","status":"ssl_error","status_checked_at":"2026-01-12T10:58:42.742Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["dom-utils","xml-creation","xml-parsing","xml-utils","xml-validation","xpath"],"created_at":"2026-01-12T11:39:47.940Z","updated_at":"2026-01-12T11:39:47.987Z","avatar_url":"https://github.com/dataliquid.png","language":"Java","readme":"# commons-xml\n\n[![CI Build](https://github.com/dataliquid/commons-xml/actions/workflows/ci.yml/badge.svg)](https://github.com/dataliquid/commons-xml/actions/workflows/ci.yml)\n[![Maven Central](https://img.shields.io/maven-central/v/com.dataliquid/commons-xml.svg)](https://search.maven.org/artifact/com.dataliquid/commons-xml)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nA lightweight and efficient Java library for XML processing and manipulation. This library provides comprehensive utilities for parsing, creating, validating, and transforming XML documents with a focus on simplicity and performance.\n\n## Features\n\n- **XML Parsing**: Easy-to-use utilities for parsing XML documents from files, resources, or strings\n- **XML Creation**: Programmatic XML document creation with fluent API\n- **XPath Support**: Advanced XPath expression support with namespace handling\n- **Schema Validation**: Validate XML documents against XSD schemas\n- **DOM Manipulation**: Comprehensive DOM utilities for working with XML elements and attributes\n- **Namespace Support**: Built-in namespace context management for complex XML documents\n\n## Requirements\n\n- Java 8 or higher (supports Java 8, 11, 17, and 21)\n- Maven 3.6 or higher\n\n## Installation\n\n### Maven\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.dataliquid\u003c/groupId\u003e\n    \u003cartifactId\u003ecommons-xml\u003c/artifactId\u003e\n    \u003cversion\u003e1.2.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Gradle\n```gradle\nimplementation 'com.dataliquid:commons-xml:1.2.0'\n```\n\n## Quick Start\n\nHere's a simple example demonstrating XML document creation and manipulation:\n\n```java\nimport com.dataliquid.commons.xml.DomUtils;\nimport org.w3c.dom.Document;\nimport org.w3c.dom.Element;\n\npublic class Example {\n    public static void main(String[] args) {\n        // Create an empty XML document using DomUtils\n        Document document = DomUtils.createDocument();\n\n        // Create the root element\n        Element rootElement = DomUtils.createElement(document, \"root\");\n        DomUtils.appendChild(document, rootElement);\n\n        // Add a child element\n        Element childElement = DomUtils.createElement(document, \"child\");\n        DomUtils.setTextContent(childElement, \"Hello, World!\");\n        DomUtils.appendChild(rootElement, childElement);\n\n        // Represent the document as xml string using DomUtils\n        String xml = DomUtils.asXml(document);\n        System.out.println(\"XML: \" + xml);\n    }\n}\n```\n\nFor more detailed examples including XPath queries, namespace handling, and schema validation, see [EXAMPLES.md](EXAMPLES.md).\n\n## Building from Source\n\nTo build the project from source:\n\n```bash\ngit clone https://github.com/dataliquid/commons-xml.git\ncd commons-xml\nmvn clean install\n```\n\n## Running Tests\n\n```bash\nmvn test\n```\n\n## Contributing\n\nWe welcome contributions to the commons-xml project! If you have found a bug, want to propose an improvement, or add a new feature, please follow these steps:\n\n1. Fork the repository\n2. Create a new branch for your changes: `git checkout -b feature/my-feature`\n3. Make your changes and add tests\n4. Run tests to ensure everything works: `mvn test`\n5. Commit your changes: `git commit -m 'Add my feature'`\n6. Push to your fork: `git push origin feature/my-feature`\n7. Create a Pull Request\n\nPlease ensure your code follows the existing code style and includes appropriate tests.\n\n## License\n\nThis project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdataliquid%2Fcommons-xml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdataliquid%2Fcommons-xml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdataliquid%2Fcommons-xml/lists"}