project-ideas icon indicating copy to clipboard operation
project-ideas copied to clipboard

Finish experimental.xml

Open burner opened this issue 6 years ago • 4 comments
trafficstars

this project was part of a previous summer of code. It was mostly finished, but lacked some polishing.

I @burner believe that not much work is needed to make it nice and polished.

burner avatar May 11 '19 15:05 burner

With dxml getting better every release this might not have a huge demand anymore.

wilzbach avatar May 12 '19 11:05 wilzbach

dxml does not have any dom features. experimental.xml does have them. and a dom makes usage quite nice IMHO

burner avatar May 12 '19 13:05 burner

dxml does have basic DOM support: http://jmdavisprog.com/docs/dxml/0.4.0/dxml_dom.html

However, std.experimental.xml was certainly trying to do more than dxml does (e.g. IIRC, it was trying to support the doctype section, and dxml does not and never will beyond parsing past it), and I certainly don't care if anyone wants to continue working on std.experimental.xml. The value in doing so is reduced by the fact that dxml exists, but some folks do want a more fully featured XML library than dxml will ever be. dxml is simple and fast, covering the typical use case without getting into some of the messier stuff that some folks do unfortunately require. I'd be inclined to argue that such folks can just bind to some C/C++ XML library if they really need everything, but if someone actually wants to go to the effort of writing a fully featured XML library in D, I'm sure that some folks would be very interested in it. I am inclined to argue that the standard library probably shouldn't include support for formats such as XML and JSON, but that's a separate discussion. Any XML library would have to be written and put up on code.dlang.org first regardless.

jmdavis avatar May 13 '19 15:05 jmdavis

hunt-xml support DOM: https://github.com/huntlabs/hunt-xml

zoujiaqing avatar Feb 22 '20 23:02 zoujiaqing