Found this two-week old question in my inbox, have you solved this problem? It's very strange, on one hand the case to XTabField doesn't fail, on the other you have the wrong prefix, I don't see how this could happen. Do you have the same Schema compiled in two different jars or something like that?
Radu -----Original Message----- From: Marius Gleeson [mailto:[EMAIL PROTECTED] Sent: Sunday, May 22, 2005 7:29 PM To: dev@xmlbeans.apache.org Subject: incorrect namespace when using changeType I have found that I am getting an incorrect namespace being output when I have used the changeType method. My code does the following Field field = fl.addNewField(); XTabField xtab = (XTabField) field.changeType(XTabField.type); . . when I output this it creates the following <db:field id="SXV4_FLD" xsi:type="sch:XTabField"> <db:displayName>Cust Last maintenance (mth)</db:displayName> </db:field> note the namespace on xsi:type. what I want is <db:field id="SXV4_FLD" xsi:type="db:XTabField"> <db:displayName>Cust Last maintenance (mth)</db:displayName> </db:field> The problem i get because of this is the next time i load the document, a Field class is returned instead of an XTabField class any ideas Thanks Marius Gleeson. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]