rapidxml for D has been ported.
Shigeki Karita
shigekikarita at gmail.com
Wed Oct 9 12:29:20 UTC 2019
On Tuesday, 8 October 2019 at 08:56:26 UTC, zoujiaqing wrote:
> RapidXml is an attempt to create the fastest XML parser
> possible, while retaining useability, portability and
> reasonable W3C compatibility. It is an in-situ parser written
> in modern C++, with parsing speed approaching that of strlen
> function executed on the same data. RapidXml has been around
> since 2006, and is being used by lots of people.
>
>
> Ported rapidxml repo:
> https://github.com/huntlabs/rapidxml
>
>
> Example:
> ```D
> import rapidxml;
>
> import stdio;
>
> void main()
> {
> auto doc = new xml_document;
>
> string doc_text = "<single-element/>";
>
> doc.parse!(0)(doc_text);
>
> auto node = doc.first_node();
>
> writeln(node.m_name);
>
> doc.validate();
> }
> ```
Great job! Now it is time to check who is the fastest.
More information about the Digitalmars-d-announce
mailing list