{"id":18082040,"url":"https://github.com/rubenfer/lightxmlparser","last_synced_at":"2025-04-05T22:29:28.467Z","repository":{"id":230063720,"uuid":"235321957","full_name":"Rubenfer/LightXMLParser","owner":"Rubenfer","description":"Parse XML files using Swift","archived":false,"fork":false,"pushed_at":"2020-02-08T09:32:47.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T04:17:54.519Z","etag":null,"topics":["swift","xml","xml-parser"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/Rubenfer.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":"2020-01-21T11:03:12.000Z","updated_at":"2021-04-12T22:27:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"c848a2bd-bfc1-4590-818b-7ea3e3d8418c","html_url":"https://github.com/Rubenfer/LightXMLParser","commit_stats":null,"previous_names":["rubenfer/lightxmlparser"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rubenfer%2FLightXMLParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rubenfer%2FLightXMLParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rubenfer%2FLightXMLParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rubenfer%2FLightXMLParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rubenfer","download_url":"https://codeload.github.com/Rubenfer/LightXMLParser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411241,"owners_count":20934650,"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":["swift","xml","xml-parser"],"created_at":"2024-10-31T13:18:04.149Z","updated_at":"2025-04-05T22:29:28.445Z","avatar_url":"https://github.com/Rubenfer.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LightXMLParser\n\nLightXMLParser is a light-weight Swift package allows you to parse XML files. \n\n## Installation\nAdd LightXMLParser to your project using SPM.\n\n## Usage\nTo parse XML files using LightXMLParser you need to import the package.\n`import LightXMLParser`\nThen you can use it as simple as you create an XML object passing the content of XML as Data.\n`let xml = XML(data: myXMLData)`\nEach XML object has name, attributes and value.\n\nAn example XML file could be:\n```xml\n\u003cxml\u003e\n\t\u003ctag1 attribute=\"attr-value\"\u003e\n\t\tValue for tag 1.\n\t\u003c/tag1\u003e\n\u003c/xml\u003e\n```\n\nFor this example, you can get the following: \n```swift\nlet xmlName = xml.name // xml\nlet tag1 = xml.children[0]\nlet tag1Name = tag1.name // tag1\nlet tag1Value = tag1.value // Value for tag 1.\nlet tag1Attributes = tag1.attributes\nlet tag1Attribute = tag1Attributes[\"attribute\"] // attr-value\n```\n\n## Credits\n[SwiftyXML](https://github.com/chenyunguiMilook/SwiftyXML)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubenfer%2Flightxmlparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubenfer%2Flightxmlparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubenfer%2Flightxmlparser/lists"}