{"id":17726965,"url":"https://github.com/fs02/embulk-parser-flexml","last_synced_at":"2025-03-31T15:26:32.685Z","repository":{"id":56844571,"uuid":"428302164","full_name":"Fs02/embulk-parser-flexml","owner":"Fs02","description":"Flexible xml parser for embulk - supports xpath and attributes","archived":false,"fork":false,"pushed_at":"2021-12-17T12:59:19.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-23T10:47:41.570Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/Fs02.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}},"created_at":"2021-11-15T14:43:52.000Z","updated_at":"2021-12-17T12:59:22.000Z","dependencies_parsed_at":"2022-09-09T02:22:50.630Z","dependency_job_id":null,"html_url":"https://github.com/Fs02/embulk-parser-flexml","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fs02%2Fembulk-parser-flexml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fs02%2Fembulk-parser-flexml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fs02%2Fembulk-parser-flexml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fs02%2Fembulk-parser-flexml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fs02","download_url":"https://codeload.github.com/Fs02/embulk-parser-flexml/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237547534,"owners_count":19327871,"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-10-25T17:22:17.479Z","updated_at":"2025-02-06T21:14:02.745Z","avatar_url":"https://github.com/Fs02.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# embulk-parser-flexml\n\nParser plugin for [Embulk](https://github.com/embulk/embulk).\n\nFlexible xml parser for embulk. read data using xpath and from attributes\n\n* **Plugin type**: parser\n* **Load all or nothing**: yes\n* **Resume supported**: no\n\n## Configuration\n\n- **type**: specify this plugin as `flexml` .\n- **root**: root property to start fetching each entries, specify in *path/to/node* style (string, required)\n- **schema**: specify the attribute of table and data type (required)\n    - **name**: name of the attribute (string, required)\n    - **type**: type of the attribute (string, required)\n    - **attribute**: if specified, value of this attribute will be the output, otherwise child will be the output (string, optional)\n    - **xpath**: child element to select (string, required)\n    - **format**: timestamp format to parse (string, required)\n    - **timezone**: timestamp will be parsed in this timezone (string, optional)\n\n\n## Example\n\n### Configuration\n\n```yaml\nparser:\n    type: flexml\n    root: Team/Players/Player\n    schema:\n        - { name: name, type: string, attribute: name }\n        - { name: age, type: long, attribute: age }\n        - { name: about, type: string, xpath: About }\n        - { name: facebook, type: string, xpath: \"SocialMedia[@type='facebook']\", attribute: url }\n        - { name: twitter, type: string, xpath: \"SocialMedia[@type='twitter']\", attribute: url }\n```\n\n### XML\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?\u003e\n\u003cTeam\u003e\n    \u003cPlayers\u003e\n        \u003cPlayer name=\"Locatelli\" age=\"23\"\u003e\n            \u003cAbout\u003e\n                Manuel Locatelli Cavaliere OMRI (born 8 January 1998) is an Italian professional footballer who plays as a midfielder for Serie A club Juventus, on loan from Serie A club Sassuolo, and the Italy national team.\n            \u003c/About\u003e\n            \u003cSocialMedia type=\"facebook\" url=\"https://www.facebook.com/locamanuel73\"/\u003e\n            \u003cSocialMedia type=\"twitter\" url=\"https://twitter.com/locamanuel73\"/\u003e\n        \u003c/Player\u003e\n    \u003c/Players\u003e\n\u003c/Team\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffs02%2Fembulk-parser-flexml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffs02%2Fembulk-parser-flexml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffs02%2Fembulk-parser-flexml/lists"}