{"id":21008970,"url":"https://github.com/koc/xml-iterator","last_synced_at":"2025-12-29T23:44:42.781Z","repository":{"id":56500473,"uuid":"149033428","full_name":"Koc/xml-iterator","owner":"Koc","description":null,"archived":false,"fork":false,"pushed_at":"2020-11-03T20:03:26.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-20T11:09:11.873Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/Koc.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":"2018-09-16T20:33:37.000Z","updated_at":"2020-11-03T20:02:29.000Z","dependencies_parsed_at":"2022-08-15T20:00:13.797Z","dependency_job_id":null,"html_url":"https://github.com/Koc/xml-iterator","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Koc%2Fxml-iterator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Koc%2Fxml-iterator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Koc%2Fxml-iterator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Koc%2Fxml-iterator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Koc","download_url":"https://codeload.github.com/Koc/xml-iterator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243430491,"owners_count":20289738,"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-11-19T09:14:47.674Z","updated_at":"2025-12-29T23:44:42.752Z","avatar_url":"https://github.com/Koc.png","language":"PHP","readme":"# XmlIterator\n\nFast and memory efficient XML iterator based on XmlReader.\n\n[![Build Status](https://travis-ci.org/Koc/xml-iterator.svg?branch=master)](https://travis-ci.org/Koc/xml-iterator)\n\n## Installation\n\nRun\n\n```\n$ composer require brouzie/xml-iterator\n```\n\n## Usage\n\n```php\n\u003c?php\n\nrequire_once 'vendor/autoload.php';\n\n$iterator = \\Brouzie\\XmlIterator\\XmlIterator::fromUri('path/to/file.xml', '/my/xpath');\n\ntry {\n    $iterator-\u003erewind();\n} catch (\\Brouzie\\XmlIterator\\Exception\\FileParseError $error) {\n    var_dump($error-\u003egetMessage(), $error-\u003egetContext()-\u003egetLine(), $error-\u003egetContext()-\u003egetColumn());\n}\n\nwhile ($iterator-\u003ehasNextItem()) {\n    try {\n        $item = $iterator-\u003egetNextItem();\n        \n        var_dump(\n            $item-\u003egetXml(), // \\SimpleXmlElement\n            $item-\u003egetContext(),\n            $item-\u003egetLine(),\n            $item-\u003egetColumn()\n        );\n    } catch (\\Brouzie\\XmlIterator\\Exception\\LineParseError $error) {\n        if ($error-\u003egetContext()) {\n            var_dump($error-\u003egetMessage(), $error-\u003egetContext()-\u003egetLine(), $error-\u003egetContext()-\u003egetColumn());\n        } else {\n            var_dump($error-\u003egetMessage());\n        }\n    }    \n}\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoc%2Fxml-iterator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoc%2Fxml-iterator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoc%2Fxml-iterator/lists"}