{"id":30043127,"url":"https://github.com/mwallner/psquickxml","last_synced_at":"2026-07-04T04:31:49.458Z","repository":{"id":306979958,"uuid":"1026856458","full_name":"mwallner/PSQuickXml","owner":"mwallner","description":"efficiently reading and processing XML files using PowerShell","archived":false,"fork":false,"pushed_at":"2025-07-28T18:35:02.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-28T19:33:32.392Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","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/mwallner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2025-07-26T18:59:05.000Z","updated_at":"2025-07-28T18:35:06.000Z","dependencies_parsed_at":"2025-07-28T20:38:46.731Z","dependency_job_id":"218e0ba8-0ea4-4852-9eee-bf91cff7c3c8","html_url":"https://github.com/mwallner/PSQuickXml","commit_stats":null,"previous_names":["mwallner/psquickxml"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mwallner/PSQuickXml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwallner%2FPSQuickXml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwallner%2FPSQuickXml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwallner%2FPSQuickXml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwallner%2FPSQuickXml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mwallner","download_url":"https://codeload.github.com/mwallner/PSQuickXml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwallner%2FPSQuickXml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35110221,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-04T02:00:05.987Z","response_time":113,"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":[],"created_at":"2025-08-07T04:56:03.592Z","updated_at":"2026-07-04T04:31:49.441Z","avatar_url":"https://github.com/mwallner.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PSQuickXml\n\n**PSQuickXml** is a PowerShell script/module for efficiently reading and processing XML files using a forward-only `XmlReader`. It is designed for speed and low memory usage, making it suitable for large XML files. You provide a script block that is called for each node, receiving a hashtable with node information.\n\n## Features\n\n- Fast, low-memory XML parsing using .NET's `XmlReader`\n- User-supplied script block (`-OnNode`) called for each node\n- Optional filtering of nodes by name (`-WantedNodes`)\n- When filtering, provides the full subtree of matched nodes as `[xml]` objects in the hashtable\n- Handles both element and text nodes (unless filtering)\n\n## Usage\n\n```powershell\nPS\u003e .\\Read-QuickXml.ps1 -Path 'input.xml' -OnNode { param($node) $node }\n```\n\n### Parameters\n\n- **Path**: Path to the XML file to read (required)\n- **OnNode**: Script block to call for each processed node. Receives a hashtable with node info (required)\n- **WantedNodes**: Optional array of node names to filter which nodes are processed. If specified, only these nodes are processed, and the hashtable includes an `xml` property with the children of the matched node as `[xml]` objects.\n\n## Output\n\nEach call to your `-OnNode` script block receives a hashtable with keys such as:\n\n- `Name`: Node name\n- `Depth`: Depth in the XML tree\n- `IsEmpty`: Whether the element is empty\n- `NodeType`: 'Element' or 'Text'\n- `Attributes`: Hashtable of attributes (for elements)\n- `Value`: Text value (for text nodes)\n- `xml`: Array of `[xml]` child nodes (only when `-WantedNodes` is used and node matches)\n\n## Testing\n\nPester tests are provided in the `tests/` directory. To run tests:\n\n```powershell\nInvoke-Pester -Path ./tests\n```\n\n## License\n\nMIT - see [LICENSE](LICENSE.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwallner%2Fpsquickxml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmwallner%2Fpsquickxml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwallner%2Fpsquickxml/lists"}