snoyberg / xml

Various XML utility packages for Haskell
71 stars 64 forks source link

row and column information #67

Open rubenmoor opened 9 years ago

rubenmoor commented 9 years ago

This is a feature request.

If I'm not mistaken, xml-conduit does not keep track of row and column information (e.g. in the nodes). My use case would benefit from something like that, because potential errors in the xml document are fed back to the user.

Any thoughts on that?

snoyberg commented 9 years ago

This is provided in the streaming API, e.g. parseTextPos. If you have a proposal for how to add it to the nodes as well, let me know.

alexkalderimis commented 8 years ago

I note that all the combinators operate on Events rather than EventPos - is there a tidy way of using Event based parsing on EventPos sources?

bitc commented 8 years ago

What about html-conduit? Text.HTML.Dom.eventConduit gives Events and there is no equivalent that gives EventPoss

snoyberg commented 8 years ago

No, such a function doesn't exist, and we'd need the functionality added to tagstream-conduit first to make it happen.