dlang / project-ideas

Collection of impactful projects in the D ecosystem
36 stars 12 forks source link

Finish experimental.xml #29

Open burner opened 5 years ago

burner commented 5 years ago

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.

wilzbach commented 5 years ago

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

burner commented 5 years ago

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

jmdavis commented 5 years ago

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.

zoujiaqing commented 4 years ago

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