I have an xsd which have a an element something like this:

 

      <xsd:element name="CreateApplication">

        <xsd:complexType>

          <xsd:sequence>

            <xsd:element minOccurs="0" maxOccurs="1" name="m_sName"
type="xsd:string" />

            <xsd:element minOccurs="0" maxOccurs="1"
name="m_sDescription" type="xsd:string" />

            <xsd:element minOccurs="0" maxOccurs="1" name="m_sAppClass"
type="xsd:string" />

            <xsd:element minOccurs="1" maxOccurs="1" name="m_sParentID"
type="xsd:int" />

          </xsd:sequence>

        </xsd:complexType>

      </xsd:element>

 

 

When I run the xsd2Jibx on this xsd, then the generated class has the
field name as follows:

 

String mSName;

String mSDescription;

String mSAppClass;

String mSParentID;

 

So, this means any element with the name attribute having an "_"
[underscore] is getting replaced with the next letter in caps.

 

If I want to preserve the name as it is (i.e. with the underscore
intact), do I need to set any parameter when I run the xsd2Jibx?

 

Thanks

Surjit

 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to