dnewcome/jath — Issue #5: Having trouble gettings started with namespaces
Author: matthewrobertson
Created: 2012-02-21 23:23:24+00:00
State: open

Hi,

I want to thank you for taking the time to write such an awesome looking library. Unfortunately I am having a bit of trouble getting started. I am trying to build an ePUB viewer in javascript. ePUB documents contain a lot of xml manifest information and a nice standardized way for me to convert this to JSON would really help the project along. Below is an example of a manifest pulled from a real world ePUB

```xml

L'espagnol dans votre poche

Larousse
© Éditions Larousse,
9782035862464
fr

```

For now lets say I am only interested in the `itemhref` items under the `spine` node. What would be the right way to pull them out. I have tried multiple things but the only way I can get it work it by ripping out all the namespaces from the document. Is this a bug in Jath or am I missing something?

BTW sorry for bugging you with such a n00b plea for help but if you can help me I would be happy to compensate by contributing a bit of documentation on how this namespace resolving thing works in your wiki.