Because XML is so terrible that adding my initials to it makes it better.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Sources
Tests
.gitignore
.travis.yml
LICENSE
Package.swift
README.md

README.md

Brett XML

Language Build Status codecov GitHub license

A pure Swift XML parser that's compatible with Vapor's node data structure.

Integration

Update your Package.swift file.

.Package(url: "https://github.com/BrettRToomey/brett-xml.git", majorVersion: 1)

Getting started 🚀

BML is easy to use, just pass it a String or an array of Bytes.

import BML
let node = try XMLParser.parse("<book id=\"5\"></book>")
print(node["book"]?["id"]?.value) // prints Optional("5")