{"id":17348408,"url":"https://github.com/daniel-sc/xmlcleaner","last_synced_at":"2025-10-30T15:39:01.876Z","repository":{"id":71118535,"uuid":"80819950","full_name":"daniel-sc/xmlcleaner","owner":"daniel-sc","description":"Cleans XML files (in place), by removing all elements (and their children), that have a specific attribute with a value matching the given pattern.","archived":false,"fork":false,"pushed_at":"2017-02-06T16:33:53.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T06:45:10.532Z","etag":null,"topics":["cleanup","command-line-tool","dita","xml"],"latest_commit_sha":null,"homepage":null,"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/daniel-sc.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}},"created_at":"2017-02-03T10:38:13.000Z","updated_at":"2017-02-03T10:38:36.000Z","dependencies_parsed_at":"2023-08-28T22:35:05.037Z","dependency_job_id":null,"html_url":"https://github.com/daniel-sc/xmlcleaner","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/daniel-sc/xmlcleaner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-sc%2Fxmlcleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-sc%2Fxmlcleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-sc%2Fxmlcleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-sc%2Fxmlcleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daniel-sc","download_url":"https://codeload.github.com/daniel-sc/xmlcleaner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-sc%2Fxmlcleaner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279181670,"owners_count":26121012,"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","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"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":["cleanup","command-line-tool","dita","xml"],"created_at":"2024-10-15T16:52:19.402Z","updated_at":"2025-10-16T11:05:59.977Z","avatar_url":"https://github.com/daniel-sc.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XmlCleaner\nCleans XML files (in place), by removing all elements (and their children), that have a specific attribute with a value matching the given pattern.\n\nFormatting of the files is kept/unchanged.\n\n## Build\n\n\tmvn clean install\n\n## Usage\n\n\tUsage: java -jar xmlcleaner-*-jar-with-dependencies.jar [options] files/directories\n\t  Options:\n\t    --attribute, -a\n\t      XML attribute name.\n\t      Default: rev\n\t    --attribute-only, -ao\n\t      Remove only matched attribute (instead of complete node/element).\n\t      Default: false\n\t    --help\n\t      Display usage.\n\t    --matcher, -m\n\t      Attribute value matcher (regex).\n\t      Default: 1[45]\\.\\d+(?:\\.\\d+)?d.*\n\n\n\n## Known issues\n\n1. Might remove last `\u003cli\u003e` without removing parent `\u003cul\u003e`. Results in invalid XML.\n2. Might remove child objects, where the parent element is not valid (w.r.t XML schema) without this child. This is the generalization of #1.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniel-sc%2Fxmlcleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaniel-sc%2Fxmlcleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniel-sc%2Fxmlcleaner/lists"}