Added support for parsing XML maps (both flattened and non-flattened).

Fixes #51