I am really impressed with Jath. I love the way it converts XML to JSON in a declarative way. And I am even more impressed with the fact that it is only ~ 100 lines of code. But after working with if for a little while, I came up with a similar idea:
-roll the whole thing into a jQuery plugin and use jQuery selectors in the templates instead of XPath queries.
I think I stumbled across Jath in the same way a lot of other users did: I wanted to use Backbonejs, but my data was in an XML format (I dunno if you realize but if you google backbone and xml data the first couple hits are all blog posts and stack overflow questions that recommend PATH). Backbone holds jQuery as a dependency so everyone in this situation already has it in their project. And I think most javascript developers, myself included, are more familiar with jQuery than XPath.
Anyways, just an idea I might toy with in my spare time. If you have any thoughts or would like to work with me on it let me know.
I am really impressed with Jath. I love the way it converts XML to JSON in a declarative way. And I am even more impressed with the fact that it is only ~ 100 lines of code. But after working with if for a little while, I came up with a similar idea:
-roll the whole thing into a jQuery plugin and use jQuery selectors in the templates instead of XPath queries.
I think I stumbled across Jath in the same way a lot of other users did: I wanted to use Backbonejs, but my data was in an XML format (I dunno if you realize but if you google backbone and xml data the first couple hits are all blog posts and stack overflow questions that recommend PATH). Backbone holds jQuery as a dependency so everyone in this situation already has it in their project. And I think most javascript developers, myself included, are more familiar with jQuery than XPath.
Anyways, just an idea I might toy with in my spare time. If you have any thoughts or would like to work with me on it let me know.