rapidxml for D has been ported.
zoujiaqing
zoujiaqing at gmail.com
Tue Oct 8 08:56:26 UTC 2019
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();
}
```
More information about the Digitalmars-d-announce
mailing list