I read a post written by you about:
Marshaller marshaller = new Marshaller(w);
marshaller.setSuppressXSIType(true);
The problem is that I'm using that method but the result didn't changed.
My code is :
Marshaller m = new Marshaller();
m.setSuppressXSIType(true);
m.setSuppressNamespaces(true);
m.setSupressXMLDeclaration(true);
m.setMarshalExtendedType(false);
m.marshal(obj, file);
But what I obtained is still the xmlns:xsi=.. and the xsi:type=.. inside the xml tag.
Am I doing something wrong? I'm using castor xml 1.3.2.
That's what I've done as well and it worked for me. Here is the example, hope it helps:
MarshallerTest.java:
Person.java:
castor.properties
output: