Skip to content

RadicalZephyr/wrest-xml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wrest-xml

This library provides a thin convenience wrapper on top of clojure.data.xml and clojure.data.zip.xml.

Zippers are great, but they're kind of confusing, especially if you practice print-line debugging. Dumping a zipper of a large XML document to your console is... well, to put it mildly, dissatisfying. In addition, since zippers are represented with a Clojure vector, it can be hard to tell when you have a zipper in hand if you're not familiar with this detail of their representation.

Enter wrest-xml (pronounced "wrestle" - because I can and working with XML always feels like wrestling to me). Provides what I think are more expressive names for some common use-cases of the xml-> and xml1-> fns and (eventually) a shim record so you can treat zippers as opaque data-structures. This way when your coworker picks up the project in 3 months and in an effort to figure out what's going on with your code throws in some printlns they don't then try to directly extract the data they want from the zipper...

Usage

[wrest-xml "0.1.0"]

Then check out the specs for some example usage.

What Changed/What's Next?

Check out our changelog for what's coming in the next release, and to see what changes each past release introduced.

Semantic Versioning

We adhere to Semantic Versioning v2.0.0.

License

Copyright © 2016 Geoff Shannon

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

Get just exactly the data you need from those pesky XML documents.

Resources

License

Stars

Watchers

Forks

Packages

No packages published