Update README.md
A pure Swift XML parser that’s compatible with Vapor’s node data structure.
Update your Package.swift file.
Package.swift
.Package(url: "https://github.com/BrettRToomey/brett-xml.git", majorVersion: 1)
BML is easy to use, just pass it a String or an array of Bytes.
String
Byte
import BML let node = try XMLParser.parse("<book id=\"5\"></book>") print(node["book"]?["id"]?.value) // prints Optional("5")
Brett XML
A pure Swift XML parser that’s compatible with Vapor’s node data structure.
Integration
Update your
Package.swiftfile.Getting started 🚀
BML is easy to use, just pass it a
Stringor an array ofBytes.