www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Initial release of newxml done!

reply solidstate1991 <laszloszeremi outlook.com> writes:
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.
Sep 09
next sibling parent solidstate1991 <laszloszeremi outlook.com> writes:
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.
Sep 10
prev sibling next sibling parent reply WebFreak001 <d.forum webfreak.org> writes:
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.
Sep 11
parent solidstate1991 <laszloszeremi outlook.com> writes:
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.
Sep 11
prev sibling parent Robert Schadek <rburners gmail.com> writes:
cool, keep up the good work.
Sep 11