[xsd-users] XML namespace in generated class?

Steve Sloan steve at finagle.org
Sat Nov 29 21:49:50 EST 2008


Is there any way to access the schema namespace (i.e. 'targetNamespace') 
from the corresponding generated classes at runtime?

I notice that the generated DOM parsing functions check for the 
appropriate namespace, but use several string constants instead of a 
const static class member to store it.  Moving the namespace to a 
class-level constant would also allow for a default namespace map when 
serializing (and parsing).  Is there a particular reason why it isn't 
this way now?

Thanks ...

-- Steve




More information about the xsd-users mailing list