On the subject of an XML parser
solidstate1991
laszloszeremi at outlook.com
Thu Aug 25 19:41:19 UTC 2022
On Wednesday, 24 August 2022 at 17:15:42 UTC, Dejan Lekic wrote:
>
> You made my day as I need a good XML library that is as good as
> Python's xml (https://docs.python.org/3/library/xml.html)
> package.
>
> You are absolutely right,
> https://github.com/dlang-community/experimental.xml is a good
> starting point. See what is missing, as well as what can be
> improved. It is a pity that package did not get finished... I
> gave up using D for any XML processing long ago but perhaps
> your library will be good enough for some of my future XML
> processing tasks.
I took a look at experimental.xml. According to its tests, it's
biggest issue is that it accepts malformed documents. I'll
attempt to reverse-engineer the code, then add the necessary
checks to reject the malformed documents. Since it has multiple
options for allocators (stdx-allocator), it'll be a bit of a
challenge, but at worst I can strip that function and replace it
with GC only.
More information about the Digitalmars-d
mailing list