{"id":16758444,"url":"https://github.com/kessler/simple-xml-parser","last_synced_at":"2025-03-16T08:20:34.366Z","repository":{"id":6749073,"uuid":"7995430","full_name":"kessler/simple-xml-parser","owner":"kessler","description":"More of an extractor than a parser. This library should only be used on small xml data, that is expected to be mostly well formed. It should be very fast for this niche.","archived":false,"fork":false,"pushed_at":"2013-11-21T11:23:36.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-08T08:12:40.958Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/kessler.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}},"created_at":"2013-02-03T19:44:16.000Z","updated_at":"2013-11-21T11:23:37.000Z","dependencies_parsed_at":"2022-08-26T10:11:04.497Z","dependency_job_id":null,"html_url":"https://github.com/kessler/simple-xml-parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fsimple-xml-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fsimple-xml-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fsimple-xml-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fsimple-xml-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kessler","download_url":"https://codeload.github.com/kessler/simple-xml-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243842000,"owners_count":20356585,"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-13T04:05:20.357Z","updated_at":"2025-03-16T08:20:34.348Z","avatar_url":"https://github.com/kessler.png","language":"JavaScript","readme":"simple xml parser\n=================\n\nMore of an extractor than a parser. This library should only be used on small xml data, that is expected to be mostly well formed. It should be very fast for this niche.\nPlease note that element data is extracted from the first element the parser encounters and in the order it was declared.\n\n### Usage\n\n```\nvar xml = '\u003cx\u003ex\u003c/x\u003e\u003cm\u003em\u003c/m\u003e\u003cl\u003el\u003c/l\u003e';\n\nvar SimpleXmlParser = require('simple-xml-parser');\n\nvar parser = SimpleXmlParser.create(['x', 'm', 'l']);\n\nvar result = parser.parseData(xml);\n\nif (result.error) {\n\tconsole.log(result.error, result.element);\n} else {\n\tconsole.log(result.parsedData.x);\n\tconsole.log(result.parsedData.m);\n\tconsole.log(result.parsedData.l);\n\n\t// prints:\n\t// x\n\t// m\n\t// l\n}\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkessler%2Fsimple-xml-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkessler%2Fsimple-xml-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkessler%2Fsimple-xml-parser/lists"}