{"id":15637124,"url":"https://github.com/dkrnl/simplexmlreader","last_synced_at":"2025-04-05T07:07:08.402Z","repository":{"id":2212116,"uuid":"3161398","full_name":"dkrnl/SimpleXMLReader","owner":"dkrnl","description":"Wrapped XMLReader class, for simple SAX-reading of huge xml.","archived":false,"fork":false,"pushed_at":"2023-06-05T13:07:08.000Z","size":145,"stargazers_count":113,"open_issues_count":4,"forks_count":43,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-29T06:08:00.620Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/dkrnl.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":"2012-01-12T10:31:26.000Z","updated_at":"2024-12-19T11:24:17.000Z","dependencies_parsed_at":"2024-06-19T03:04:03.987Z","dependency_job_id":"11adfeb8-34ad-422b-bf28-8de769d7f6f5","html_url":"https://github.com/dkrnl/SimpleXMLReader","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/dkrnl%2FSimpleXMLReader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkrnl%2FSimpleXMLReader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkrnl%2FSimpleXMLReader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkrnl%2FSimpleXMLReader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkrnl","download_url":"https://codeload.github.com/dkrnl/SimpleXMLReader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299832,"owners_count":20916190,"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-03T11:10:21.441Z","updated_at":"2025-04-05T07:07:08.380Z","avatar_url":"https://github.com/dkrnl.png","language":"PHP","readme":"# Simple XML Reader \n\nWrapper XMLReader(http://php.net/manual/ru/book.xmlreader.php) class, for simple **SAX**-reading(and simple **XPath**-queries) of **huge**(testing over 1G file) xml.\n\n**Minimum the memory** usage of other xml libraries(SimpleXML, DOMXML).\n\nUsage example 1:\n```php\n$reader = new SimpleXMLReader;\n$reader-\u003eopen(\"big.xml\");\n$reader-\u003eregisterCallback(\"by-node-name\", function($reader) {\n    $element = $reader-\u003eexpandSimpleXml(); // copy of the current node as a SimpleXMLElement object\n    $attributes = $element-\u003eattributes(); // read element attributes\n    /* ...your code here... */\n    return true;\n});\n$reader-\u003eregisterCallback(\"/by/xpath/query\", function($reader) {\n    $element = $reader-\u003eexpandDomDocument(); // copy of the current node as a DOMNode object\n    $attributes = $element-\u003eattributes(); // read element attributes\n    /* ...your code here... */\n    return true;\n});\n$reader-\u003eparse();\n$reader-\u003eclose();\n\n```\nUsage example 2: http://github.com/dkrnl/SimpleXMLReader/blob/master/examples/example1.php\n\nLicense: Public Domain\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkrnl%2Fsimplexmlreader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkrnl%2Fsimplexmlreader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkrnl%2Fsimplexmlreader/lists"}