On 8/29/2013 12:25 AM, w0rp wrote:
Hello everybody. I've been wondering, what are the current plans to replace
std.xml? I'd like to help with the effort to get a final XML library in phobos.
So, I have a few questions.
First, and most importantly, what do we except out of a D XML library? I'd
really like to have a discussion of the form, "Here is exactly the interface the
structs/classes need to implement, go forth and implement." The general idea in
my mind is "something SAX-like, with something a little DOM-like." I'm aware
that std.xml has some issues support different encodings, so obvious that's
included.
Second, is there an existing library that has gotten close to meeting whatever
we need for the first point? If so, how far away is it from being able to meet
all of the requirements and become the standard library version?
The Tango implementation of XML has been very well received. I haven't looked at
it, but it was designed to do no memory allocation - it just did slices over the
input.
I don't believe it should make any attempt at decoding. Decoding entails both
performance loss and memory consumption. If the user wants to do decoding, they
can layer it on the output.
And lastly, it should of course sport a range interface.