Hi Keith,

  Is the mapping file consulted by the SourceGenerator, or only during the
serialization/deserialization process?

Mike

-----Original Message-----
From: Keith Visco [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 10, 2003 7:41 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Attribute named 'content' causes problem



Hi Mike,

You'll need to use a binding file to rename the field.

--Keith

> "Super, Mike" wrote:
> 
> Hello,
> 
>   I'm running the SourceGenerator on an XML file that unfortunately
> has an attribute named 'content':
> 
>     <xsd:element name="OrganizationId">
>         <xsd:complexType>
>             <xsd:simpleContent>
>                 <xsd:extension base="xsd:string">
>                     <xsd:attribute name="content" type="xsd:string"
> use="optional"/>
>                 </xsd:extension>
>             </xsd:simpleContent>
>         </xsd:complexType>
>     </xsd:element>
> 
>  This produces the following exception:
> 
>         Exception in thread "main" java.lang.IllegalArgumentException:
> duplicate name found: _content
> 
>   Is there any way around this short of renaming the attribute?
> 
> Mike
> 
> ___________________________
> Michael Super
> Fidelity Employer Services Co
> [EMAIL PROTECTED]
> (603) 791-7409

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to