Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 extortion
Octocat-spinner-32 src
Octocat-spinner-32 tests
Octocat-spinner-32 README
Octocat-spinner-32 valgrind.supp
Octocat-spinner-32 waf
Octocat-spinner-32 wscript
README
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>"
    );
}
Something went wrong with that request. Please try again.