users@jaxb.java.net

External customize

From: Lulseged Zerfu <lulseged.zerfu_at_ericsson.com>
Date: Mon, 16 Nov 2009 13:39:31 +0100

Hi

 I am trying to external customize so that it out puts boolean types
with 0 and 1 instead of ture or false.

 I am able to customoize some but unabl eto customize

.
.
.
.
 <xs:attribute name="preInstantiable" type="xs:boolean" use="required"
/> (line 437 in AppConfig.xsd)
.
.
.
.


My binding.xjb file looks like this:

        <!-- preInstantiable -->
            <jxb:bindings
node="//xs:complexType[@name='componentAttributesT']//xs:element[@name='
proxiedComponent']">
                    <jxb:bindings
node="//xs:attribute[@name='preInstantiable']">
                              <jxb:javaType name="boolean"
        
parseMethod="com.ericsson.ims.pgm.config.converter.TextualNumericConvert
er.parseBoolean"
        
printMethod="com.ericsson.ims.pgm.config.converter.TextualNumericConvert
er.printBoolean">
                        </jxb:javaType>
                    </jxb:bindings>
            </jxb:bindings>

I was not able to compile with this customization. I guess I am not
getting the correct xpath.

Any suggestion?


 <<AppConfig.xsd>>