Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettRToomey committed Feb 15, 2017
1 parent 0606a16 commit 21e0062
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,18 @@
[![codecov](https://codecov.io/gh/BrettRToomey/brett-xml/branch/master/graph/badge.svg)](https://codecov.io/gh/BrettRToomey/brett-xml)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/BrettRToomey/brett-xml/master/LICENSE)

A pure Swift XML parser that's compatible with [Vapor's node](http://vapor.codes) data structure.
A pure Swift XML parser that's compatible with [Vapor's node](http://vapor.codes) data structure.

## Integration
Update your `Package.swift` file.
```swift
.Package(url: "https://github.com/BrettRToomey/brett-xml.git", majorVersion: 0)
```

## Getting started 🚀
BML is easy to use, just pass it a `String` or an array of `Byte`s.
```swift
import BML
let node = try XMLParser.parse("<book id=\"5\"></book>")
print(node["book", "id"]?.int) // prints 5
```

0 comments on commit 21e0062

Please sign in to comment.