LightXML.jl
LightXML.jl copied to clipboard
Streaming API on the roadmap?
I think OpenStreetMap.jl is switching over to LibExpat.jl for now to allow users to parse larger extracts -- just made me curious whether anyone had plans for this.
Presumably that kind of API exists in libxml2, it's just a matter of wrapping it? Just out of ignorance, is a streaming API related to / similar / not at all the same thing as xpath queries? I pretty frequently do xpath queries through libxml2's command-line executable xmllint
, but for Julia use that's more commonly done via libexpat I believe.
It is a little annoying that there are so many different widely-used open-source XML libraries out there, and we happen to have a different subset of 2 of them wrapped in different Julia packages with different API's and functionality. I couldn't see in LibExpat.jl a straightforward way of creating a new xml document from a manually-assembled element tree for example.
Looks like this is the API: http://xmlsoft.org/xmlreader.html
I don't have enough time to add new features to this package in near term. However, as this package now belongs to JuliaLang. I think other contributors may be interested in this.