shared: add simplistic XML parser for usage in the D-Bus policy language compat parser