views:

136

answers:

2

Some time ago I saw a XML library for C++ which heavily utilized operator overloading, allowing for cute syntax similar to the following:

#include <iostream>
#include <some_xml_library/some_header.hpp>

using namespace some_xml_library;

int main()
{
    elem_t div;
    doc_t d = _ <div>"hello"<!div> _;

    std::cout << d;
}

Output:

<div>hello</div>

IIRC the library also had full support for attributes and nested elements.

Have I dreamt this, or does anyone know what this library is called?

A: 

I think you're probably looking for Arabica.

Timo Geusch
That site seems to be infested with spam-comments. :-(
Workshop Alex
Unfortunately I see no similarities in Arabica.
dalle
+4  A: 

Maybe this?

Éric Malenfant
It's a work of art as far as I'm concerned. :D
Alex B