Some time ago, I saw an XML library for C ++ that made heavy use of operator overloading, allowing you to use nice syntax like 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>
The IIRC library also had full support for attributes and nested elements.
Did I dream about it, or does anyone know what this library is called?
source share