Thread overview
Initial release of newxml done!
Sep 09, 2022
solidstate1991
Sep 10, 2022
solidstate1991
Sep 11, 2022
WebFreak001
Sep 11, 2022
solidstate1991
Sep 12, 2022
Robert Schadek
September 09, 2022

https://github.com/ZILtoid1991/newxml/releases/tag/v0.2.0

It's a heavily modified std.experimental.xml with the following changes:

  • Many templating have been removed in favor of other forms of setting. This means the allocators have been axed in favor of using new and relying on D's automatic garbage collection.
  • Has a proper DOMString implementation. This might make a few things a bit slower, but also simplified things.
  • Has way more error handling than the original, and at parsing time (More will be added down the line).
  • And of course, it's being actively developed.

DOM compatibility means that anyone who worked with any other DOM implementation (C++, Java, Python, JS, etc.) will be immediately familiar with it. For SAX, I went after my own head, and before 1.0, I can still change it if I need based on user feedback. I might also port legacy.d for those who used to use the old std.xml implementation.

September 10, 2022

On Friday, 9 September 2022 at 22:00:42 UTC, solidstate1991 wrote:

>

https://github.com/ZILtoid1991/newxml/releases/tag/v0.2.0

It's a heavily modified std.experimental.xml with the following changes:

  • Many templating have been removed in favor of other forms of setting. This means the allocators have been axed in favor of using new and relying on D's automatic garbage collection.
  • Has a proper DOMString implementation. This might make a few things a bit slower, but also simplified things.
  • Has way more error handling than the original, and at parsing time (More will be added down the line).
  • And of course, it's being actively developed.

DOM compatibility means that anyone who worked with any other DOM implementation (C++, Java, Python, JS, etc.) will be immediately familiar with it. For SAX, I went after my own head, and before 1.0, I can still change it if I need based on user feedback. I might also port legacy.d for those who used to use the old std.xml implementation.

Just found an error. It crashes the LDC2 compiler while compiling just fine under DMD, likely a compiler bug.

September 11, 2022

On Friday, 9 September 2022 at 22:00:42 UTC, solidstate1991 wrote:

>

https://github.com/ZILtoid1991/newxml/releases/tag/v0.2.0

It's a heavily modified std.experimental.xml with the following changes:

[...]

awesome! got some documentation or examples anywhere? Can't really seem to find how to use it really, but will definitely be useful when I do stuff with xml.

September 11, 2022

On Sunday, 11 September 2022 at 07:13:18 UTC, WebFreak001 wrote:

>

awesome! got some documentation or examples anywhere? Can't really seem to find how to use it really, but will definitely be useful when I do stuff with xml.

Documentation is a work in progress. I'll try to make some examples with it (especially since I was also in need of an XML library), until then the best I can say is that if you only need DOM, then just use the example in the readme file to generate the document, and rely on the official DOM documentations since it's pretty much the same thing. I'll be slowly going through the code to improve readability and stuff, which will also mean I'm going to add range capabilities and such where it doesn't exist.

September 12, 2022

cool, keep up the good work.