# drmohundro/SWXMLHash

Simple XML parsing in Swift

Repository: https://github.com/drmohundro/SWXMLHash
Canonical: https://ross.abutalabs.com/products/swxmlhash
Language: Swift
License: MIT
License Family: permissive
Topics: swift, swxmlhash, xml-parsing
Last push: 2026-04-30T20:18:24+00:00

## Health v2 (maintenance only)
Score: 62/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 80, release rhythm 16, longevity 100
- inputs: {"age_days": 4438, "days_push": 125, "days_rel": 428, "gap_med": 142.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1468, forks 209 (observed 2026-08-28T04:04:48.903369+00:00)

## What it is
SWXMLHash is a Swift library that provides simple XML parsing by wrapping Apple's XMLParser and converting XML into a hash-like structure of dictionaries and arrays. Its API is inspired by SwiftyJSON, enabling concise, chainable access to XML elements.

## Use cases
- parse xml in swift
- convert xml to dictionary in swift
- read rss or atom feeds in an ios app
- parse xml config files in a macos app
- query xml elements with a swifty syntax
- deserialize xml responses from an api

## When to choose
- you need lightweight, simple XML parsing in Swift without heavy dependencies
- you want a SwiftyJSON-style API for navigating XML
- you need support for iOS, macOS, tvOS, and watchOS
- you prefer a wrapper over the verbose XMLParser delegate API

## When to avoid
- you need full-featured XML processing such as XSLT, XPath, or schema validation
- you are working in a non-Swift language
- you need extremely high-performance streaming of very large XML documents
- you need XML writing/serialization, not just parsing

## Facets
- artifact type: library
- maturity: stable
- function: parser, serialization
- domain: parsers, developer-tools, cross-platform
- platform: cross-platform
- tags: xml, swift, xmlparser-wrapper, swiftyjson-inspired, cocoapods, swift-package-manager, ios, macos

## Member repositories
- drmohundro/SWXMLHash (main) score 62

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:48.903369+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:34:55.892953+00:00, confidence not recorded.
  - readme: https://github.com/drmohundro/SWXMLHash (fetched 2026-08-28T04:04:48.903369+00:00, sha ba5cbc4f263e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
