{"id":18916477,"url":"https://github.com/nebuxadnezzar/xml-tag-extractor","last_synced_at":"2026-03-10T22:30:16.661Z","repository":{"id":246112339,"uuid":"820040843","full_name":"nebuxadnezzar/xml-tag-extractor","owner":"nebuxadnezzar","description":"Extracts a XML document between a set of tags and transforms it into single line document","archived":false,"fork":false,"pushed_at":"2024-09-20T17:39:50.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-31T15:14:44.828Z","etag":null,"topics":["xml","xml-att","xml-one-liner","xml-parser","xml-parsing","xml-stream-parser","xml-tags","xml-transformation","xml-transformer"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nebuxadnezzar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-06-25T17:17:44.000Z","updated_at":"2024-09-20T19:20:48.000Z","dependencies_parsed_at":"2024-06-25T23:00:03.874Z","dependency_job_id":"369e669a-3f53-459d-a294-484a35f25703","html_url":"https://github.com/nebuxadnezzar/xml-tag-extractor","commit_stats":null,"previous_names":["nebuxadnezzar/xml-tag-extractor"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebuxadnezzar%2Fxml-tag-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebuxadnezzar%2Fxml-tag-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebuxadnezzar%2Fxml-tag-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebuxadnezzar%2Fxml-tag-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nebuxadnezzar","download_url":"https://codeload.github.com/nebuxadnezzar/xml-tag-extractor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239908766,"owners_count":19716860,"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":["xml","xml-att","xml-one-liner","xml-parser","xml-parsing","xml-stream-parser","xml-tags","xml-transformation","xml-transformer"],"created_at":"2024-11-08T10:19:44.271Z","updated_at":"2026-03-10T22:30:16.608Z","avatar_url":"https://github.com/nebuxadnezzar.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xml-tag-extractor\nExtracts a XML document between a set of tags and transforms it into single line document\n\n### Command line\n```text\n\nUsage: xte [OPTIONS] XML-file-path\nOPTIONS:\n  -boost\n    \tboost processing, helps big file processing\n  -ca\n  -convert.attributes\n    \tconvert attributes to elements\n  -h\n  -help\n    \tshow help\n  -ol\n  -one.liner\n    \ttransform XML document into one-liner\n\n  -rt string\n  -root.tag string\n    \tadd provided root tags to each document to make correct XML document\n\n  -xp string\n  -xml.paths string\n    \tCSV list of paths to tag(s) to extract, i.e. root:greeting OR root:greetings,root:story\n\n```\n### Examples\ngiven this file\n```xml\n\u003croot\u003e\n    \u003cgreetings\u003ehello\u003c/greetings\u003e\n    \u003cgreetings\u003egood bye \u003ctimes\u003e3\u003c/times\u003e\n    \u003c/greetings\u003e\n    \u003cgreetings id=\"123\"/\u003e\n    \u003csmiles\u003ewide\u003c/smiles\u003e\n\u003c/root\u003e\n```\n... to extract ```greetings``` tags together with its content use command\n```bash\nxte -ol -xp root:greetings my.xml\n```\nthe output will be one-document-per-line records\n```xml\n\u003cgreetings\u003ehello\u003c/greetings\u003e\n\u003cgreetings\u003egood bye \u003ctimes\u003e3\u003c/times\u003e\u003c/greetings\u003e\n\u003cgreetings id=\"123\"/\u003e\n```\nto extract ```times``` tags together with its content use command\n```bash\nxte xte -ol -xp root:greetings:times my.xml\n```\n\nif not __tag-path__ argument provided __xte__ will print all tag paths and their count found in an XML file which can be useful, if you have huge file and don't know XML structure of the file.\n```xml\nxte my.xml\n```\n```\nroot\t\t1\nroot:greetings\t\t3\nroot:greetings:times\t\t1\nroot:smiles\t\t1\n\n```\n\n### Notes\n\u003e__xte__ doesn't parse out and convert attributes to elements. this will be next feature","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnebuxadnezzar%2Fxml-tag-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnebuxadnezzar%2Fxml-tag-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnebuxadnezzar%2Fxml-tag-extractor/lists"}