LightXML.jl icon indicating copy to clipboard operation
LightXML.jl copied to clipboard

Streaming API on the roadmap?

Open garborg opened this issue 10 years ago • 3 comments

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.

garborg avatar Jan 05 '15 17:01 garborg

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.

tkelman avatar Jan 06 '15 01:01 tkelman

Looks like this is the API: http://xmlsoft.org/xmlreader.html

garborg avatar Jan 06 '15 01:01 garborg

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.

lindahua avatar Mar 09 '15 07:03 lindahua