Title: Question about making the xsi:type attribute show up
I am really hoping that this a pretty simple question. I am new to XmlBeans, this is the first project that I have used it on so far.
Anyway, what I would like to see in the resulting xml is something like the following:
<om:result xsi:type=”xsi:boolean”>false</om:result>
The om:result element is an instance of XmlComplexContentImpl, I have tried to use the XmlComplexContentImpl.set(boolean booleanValue) but I get an exception every time. I then attempted the following code:
boolean boolResult = Boolean.getBoolean(measure.getResult());
XmlBoolean xmlBoolean = XmlBoolean.Factory.newInstance();
xmlBoolean.setBooleanValue(boolResult);
complexContent.set(xmlBoolean);
complexContent.changeType(XmlBoolean.type);
This code will set the value to a boolean value, however the xsi:type attribute will not appear therefore I get the following xml
<om:result>false</om:result>
Could anyone please tell me if it is possible to force the xsi:type attribute to appear?
Thank you very much,
Doug
- Question about making the xsi:type attribute sho... Doug Fischer
- Re: Question about making the xsi:type attr... Jean-Christophe Pazzaglia
- Re: Question about making the xsi:type ... Doug Fischer
- Re: Question about making the xsi:t... Jean-Christophe Pazzaglia
- Re: Question about making the x... Doug Fischer
- Re: Question about making ... Jean-Christophe Pazzaglia

