Updated to use URI::NamespaceMap during parsing.