Re: Initial release of newxml done!

2022-09-11 Thread Robert Schadek via Digitalmars-d-announce

cool, keep up the good work.



Re: Initial release of newxml done!

2022-09-11 Thread solidstate1991 via Digitalmars-d-announce

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.


Re: Initial release of newxml done!

2022-09-11 Thread WebFreak001 via Digitalmars-d-announce

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.


Re: Initial release of newxml done!

2022-09-10 Thread solidstate1991 via Digitalmars-d-announce

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.


Initial release of newxml done!

2022-09-09 Thread solidstate1991 via Digitalmars-d-announce

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.