From 21e006243f2797a6f56a4342ea6c6aa7333826d6 Mon Sep 17 00:00:00 2001 From: Brett Toomey Date: Tue, 14 Feb 2017 19:56:55 -0800 Subject: [PATCH] Updated README.md --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 77543f7..0c79cc7 100644 --- a/README.md +++ b/README.md @@ -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. \ No newline at end of file +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("") +print(node["book", "id"]?.int) // prints 5 +``` \ No newline at end of file