{"id":13743839,"url":"https://github.com/peterlindkvist/as2-xml-parser","last_synced_at":"2026-02-22T06:37:13.416Z","repository":{"id":145218300,"uuid":"48622369","full_name":"peterlindkvist/as2-xml-parser","owner":"peterlindkvist","description":"A XML parser for actionscript 2 to be able to read xml files as a dom tree","archived":false,"fork":false,"pushed_at":"2015-12-26T20:13:15.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-04T05:02:46.944Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"ActionScript","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/peterlindkvist.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":"2015-12-26T20:12:26.000Z","updated_at":"2016-05-03T19:00:57.000Z","dependencies_parsed_at":"2023-04-17T00:53:58.508Z","dependency_job_id":null,"html_url":"https://github.com/peterlindkvist/as2-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/peterlindkvist%2Fas2-xml-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterlindkvist%2Fas2-xml-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterlindkvist%2Fas2-xml-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterlindkvist%2Fas2-xml-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterlindkvist","download_url":"https://codeload.github.com/peterlindkvist/as2-xml-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224802742,"owners_count":17372490,"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-08-03T05:00:58.158Z","updated_at":"2026-02-22T06:37:13.382Z","avatar_url":"https://github.com/peterlindkvist.png","language":"ActionScript","funding_links":[],"categories":["File Formats"],"sub_categories":["XML"],"readme":"# AS2 XML Parser\n** This is an old library from 2004 and I put i on github for backup!! **\n\n\nXML reading with the built-in functions in as2 is not the funniest things to do. In as3 it’s a lot better as you probably know. To make it easier in as2 I made a xmlparser that makes it possible to read the xml as a dom-tree. There are a lot of similar classes and some of them are probably better then mine or at least more advanced. This class is only for reading since you almost never alter xmls and seldom write them. The class is about 4 years old but since I use it in almost every as2 project I thought I could share it.\n\nusage:\n\n\timport se.superkrut.util.XMLDom;\n\t\n\tvar xml:XML = new XML();\n\txml.ignoreWhite = true;\n\txml.onLoad = function(){\n\t\tvar xmldom:XMLDom = new XMLDom(this);\n\t\ttrace(\"first:\"+xmldom.root.language.swedish.text.bye.value);\n\t\ttrace(\"second:\"+xmldom.root.language.swedish.text[1].value);\n\t\ttrace(\"attribute:\" + xmldom.root.language.attributes.id);\n\t}\n\t\n\txml.load(\"language.xml\");\n\t\nwhere language.xml is:\n\t\n\t\u003c?xml version=\"1.0\" ?\u003e\n\t\u003croot\u003e\n\t\t\u003clanguage id=\"swedish\"\u003e\n\t\t\t\u003ctext id=\"hello\"\u003ehej\u003c/text\u003e\n\t\t\t\u003ctext id=\"bye\"\u003ehej då\u003c/text\u003e\n\t\t\u003c/language\u003e\n\t\u003c/root\u003e\n\nall instances have a `__resolve` function that maps unknown calls to the first position in the child array. \n\nExample: `xmldom.root.language` is the same as `xmldom.root[0].language`\n\nthe attribute id is automatically mapped to a property in the instance. Example:\nlanguage.swedish is mapped from the id attribute.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterlindkvist%2Fas2-xml-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterlindkvist%2Fas2-xml-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterlindkvist%2Fas2-xml-parser/lists"}