[xsde-users] No polymorphism without substitutionGroup?

Werner Haug werner.haug at agfa.com
Fri Jun 14 07:44:19 EDT 2013


Hi Boris,

finally I could adapt the example to my case and am able to compile and 
run the code.
But as usual, the next problem arises:
The resulting XML should be something like <Element>E</Element> but is 
<ns:Element>E</ns:Element>.
If I omit the mapping namespace, I run into an exception in your file 
context.cxx, where there is the comment "//@@ TODO: what if prefix is not 
found?" because of a NULL prefix pointer.
What do I have to do to get
xmlns="ns1.ns2" and <Element>E</Element>
instead
xmlns:ns="ns1.ns2" and <ns:Element>E</ns:Element>

Kind regards,
Werner


More information about the xsde-users mailing list