On 15/05/2013 11:39, Russel Winder wrote:
On Wed, 2013-05-15 at 09:52 +0100, Alix Pexton wrote:
[…]
I recently started implementing my own XML lib for D out of frustration
(I want to write addons for inkscape in something that isn't Python).
[…]
It might be worth noting here that SAX and DOM have not been
distinguished so far in the thread. I would have thought SAX would be
really easy in D.
Also, whilst Python has it's own W3C compliant DOM parser (minidom), and
it has a pure Python (ElementTree) and C implemented simplified
(cElementTree), the push is now to use lxml which is a wrapper around
libxml2 and libxslt.
Although it might be nice to have D implementations, perhaps D might
follow Python and wrap a rather good system so as to get something with
full validation and XPath sooner rather than later?
libxml2 and its kin should definitely get the deimos treatment!
I don't know how hard it might be to create a wrapper with an
idiomatically D-ish interface though.
A...