URIs and namespaces/prefixes are common between XML and RDF. These, along with namespace/prefix management and namespace/curie resolution should be part of a shared, common API.
Define a common API for shared things between XML and RDF.
Teach the XML reader about XML namespaces using the new API.
URIs and namespaces/prefixes are common between XML and RDF. These, along with namespace/prefix management and namespace/curie resolution should be part of a shared, common API.