Swiftpack.co - Package - BrettRToomey/brett-xml

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")

Github

link
Stars: 13
Help us keep the lights on

Dependencies

Used By

Total: 1

Releases

0.2.3 - Oct 19, 2017

New:

  • Added parent to node

1.0.1 - Oct 19, 2017

New:

  • Added parent to node

1.0.0 - May 29, 2017

New:

  • Vapor 2 🎉 !!!

0.2.2 - Mar 12, 2017

Fixed:

  • bug with whitespace after attributes

0.2.1 - Mar 12, 2017

Fixed:

  • Byte order mark no longer causes crashes.