gulrotkake / extortion

Extortion is a pattern matching streaming XML parser for C++. The goal is to combine something similar to a subset of XPath with a SAX parser.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example:

void callback(const std::string &greeting) {
    std::cout << greeting << std::endl;
}

...

{
    extortion::extortion e;
    e.get("/hello/world[@planet='earth']", callback);
    e.parse_string(
        "<hello>"
            "<world planet='mercury'>Hello, mercury!</world>"
            "<world planet='earth'>Hello, earth!</world>"
        "</hello>"
    );
}

About

Extortion is a pattern matching streaming XML parser for C++. The goal is to combine something similar to a subset of XPath with a SAX parser.


Languages

Language:Python 70.4%Language:C++ 29.6%