{"id":13342861,"url":"https://github.com/rammstein4o/xk6-xml","last_synced_at":"2026-01-12T00:06:41.033Z","repository":{"id":59045261,"uuid":"530288094","full_name":"rammstein4o/xk6-xml","owner":"rammstein4o","description":"A k6 extension for xml parsing. ","archived":false,"fork":false,"pushed_at":"2022-11-10T21:40:32.000Z","size":36,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-30T21:05:28.825Z","etag":null,"topics":["k6","k6-extension","xk6","xml"],"latest_commit_sha":null,"homepage":"","language":"Go","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/rammstein4o.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":"2022-08-29T15:50:39.000Z","updated_at":"2024-06-04T14:26:18.000Z","dependencies_parsed_at":"2022-09-11T06:51:03.455Z","dependency_job_id":null,"html_url":"https://github.com/rammstein4o/xk6-xml","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rammstein4o%2Fxk6-xml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rammstein4o%2Fxk6-xml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rammstein4o%2Fxk6-xml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rammstein4o%2Fxk6-xml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rammstein4o","download_url":"https://codeload.github.com/rammstein4o/xk6-xml/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221265583,"owners_count":16788059,"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":["k6","k6-extension","xk6","xml"],"created_at":"2024-07-29T19:30:06.317Z","updated_at":"2026-01-12T00:06:41.022Z","avatar_url":"https://github.com/rammstein4o.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xk6-xml\n\nThis is a [k6](https://github.com/grafana/k6) extension using the\n[xk6](https://github.com/grafana/xk6) system.\n\n## Build\n\nTo build a `k6` binary with this plugin, first ensure you have the prerequisites:\n\n- [Go toolchain](https://go101.org/article/go-toolchain.html)\n- Git\n\nThen:\n\n1. Install `xk6`:\n  ```shell\n  go install go.k6.io/xk6/cmd/xk6@latest\n  ```\n\n2. Build the binary:\n  ```shell\n  xk6 build --with github.com/rammstein4o/xk6-xml\n  ```\n\n## Example\n\n```javascript\n// script.js\nimport xml from 'k6/x/xml';\n\nexport default function () {\n    const body = `\n    \u003c?xml version=\"1.0\"?\u003e\n    \u003ccatalog\u003e\n        \u003cbook id=\"bk101\"\u003e\n            \u003cauthor\u003eGambardella, Matthew\u003c/author\u003e\n            \u003ctitle\u003eXML Developer's Guide\u003c/title\u003e\n            \u003cgenre\u003eComputer\u003c/genre\u003e\n            \u003cprice\u003e44.95\u003c/price\u003e\n            \u003cpublish_date\u003e2000-10-01\u003c/publish_date\u003e\n            \u003cdescription\u003e\n                \u003c![CDATA[An in-depth look at creating applications with XML.]]\u003e\n            \u003c/description\u003e\n        \u003c/book\u003e\n        \u003cbook id=\"bk102\"\u003e\n            \u003cauthor\u003eRalls, Kim\u003c/author\u003e\n            \u003ctitle\u003eMidnight Rain\u003c/title\u003e\n            \u003cgenre\u003eFantasy\u003c/genre\u003e\n            \u003cprice\u003e5.95\u003c/price\u003e\n            \u003cpublish_date\u003e2000-12-16\u003c/publish_date\u003e\n            \u003cdescription\u003e\n                \u003c![CDATA[A former architect battles corporate zombies, an evil sorceress, and her own childhood to become queen of the world.]]\u003e\n            \u003c/description\u003e\n        \u003c/book\u003e\n    \u003c/catalog\u003e\n    `\n\n    const result = xml.parse(body);\n\n    result[\"catalog\"][\"book\"].forEach(book =\u003e {\n        console.log(book[\"-id\"], book[\"title\"]);\n    });\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frammstein4o%2Fxk6-xml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frammstein4o%2Fxk6-xml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frammstein4o%2Fxk6-xml/lists"}