You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by Marius Gleeson <mg...@subscribe.audumla.net> on 2005/05/23 04:29:05 UTC

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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org