Hi Pascal,

I see indeed a field with the name _xmlName.
I also tested it with Castor 1.1.1 and I got the same problem either.

Regards,

Dirk Jan 

-----Original Message-----
From: Pascal Maugeri [mailto:[EMAIL PROTECTED] 
Sent: woensdag 30 mei 2007 17:09
To: [email protected]
Subject: Re: [castor-user] Problem the tag-names of Castor

Hi

I've got a similar problem yesterday and reported it as a bug in Jira
(http://jira.codehaus.org/browse/CASTOR-1990).

In your generated class FiscalRegimeType, do you see a field _xmlName ?

I'm using castor 1.1 (and even tried 1.1.1) but there is still this
'Type' text appended :-(

Regards,
Pascal


On 5/30/07, Pol, Dirk-Jan van der <[EMAIL PROTECTED]>
wrote:
>
>
>
> Hi all,
>
> We build a quite large solution in which we use Castor (1.0.5).
> Using Castor for marshaling xml Castor returns some strange xml tag 
> names in our opinion.
>
> What we did:
>
> First we Generated the sourcecode based on the following xsd 
> (simplified
> one):
>
> <?xml version="1.0" encoding="UTF-8"?> <xs:schema 
> xmlns:xs="http://www.w3.org/2001/XMLSchema";
> xmlns:ns1="http://services.getronics.com/koopsom";
> targetNamespace="http://services.getronics.com/koopsom";
> elementFormDefault="qualified" blockDefault="#all">
>
>         <xs:complexType name="GksRequest">
>                 <xs:sequence>
>                         <xs:element name="InsuranceData"
type="ns1:GksData"
> minOccurs="0"/>
>                 </xs:sequence>
>         </xs:complexType>
>         <xs:complexType name="GksData">
>                 <xs:sequence>
>                         <xs:element name="FiscalRegime"
> type="ns1:FiscalRegimeType"/>
>                 </xs:sequence>
>         </xs:complexType>
>         <xs:simpleType name="FiscalRegimeType">
>                 <xs:restriction base="xs:string">
>                         <xs:enumeration value="Old"/>
>                         <xs:enumeration value="New"/>
>                 </xs:restriction>
>         </xs:simpleType>
> </xs:schema>
>
> We put the java version to java 5 (inside the 
> sourcegenerator.properties) Sourcecode generation works fine.
>
> Castor's output:
>
> However when we build up the object structure and marshall it to xml
>
> We see in the ouput xml that the element name: "FiscalRegime" is 
> changed
> into: "FiscalRegimeType".
> So it looks like (also simplified without any namespaces and things)
>
> <GksRequest>
>         <InsuranceData>
>                 <FiscalRegimeType>Old</FiscalRegimeType>
>         </InsuranceData>
> </GksRequest>
>
> This behaviour only happens at the end points (leaves)
>
> We tried to change all kind of parameters but we did not succeed in 
> returning the right element name.
>
> Can someone please help me with this?
>
> Thanks!
>
> Kind regards.
>
> Dirk Jan van der Pol
>  Getronics PinkRoccade

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to