When you generate java classes with JAXB you’ll always get a Class named ObjectFactory.
In this class there is a private attribute QName with the namespace in it.
Is it possible to tell the generator to make this attribute accessible from the outside. So maybe make it public or create a getter for it?
I believe those
private static QNamefields are only generated if theObjectFactoryneeds methods that createJAXBElement<...>instances. If you call one of those methods to get aJAXBElementinstance, you can then invoke itsgetNamemethod to retrieve its associatedQName.