Handle XML namespaces

Relates #457