Namespace prefixes used in the XML document
Is there a way to determine what namespace prefixes were used in the XML document? The QNames returned by JAXBElement.getName() return an empty string when getPrefix() is called. Also classes which are not wrapped in JAXBElements in the tree don't have QNames.
I'm guessing the Unmarshaller would be the only place this is known, but I couldn't see any function to get a list of prefix mappings.