Re: question on code generation with regard to non-alphabetic character in xml element name

Jacob Danner <[email protected]>
Newsgroups gmane.text.xml.xmlbeans.user
Message-ID <[email protected]>
So you would use reflection or something like it to infer the name?
Seems like you could get this 'actual element name' information from
the schematypesystem apis without too much hassle.
-jacobd

On Wed, Jan 20, 2010 at 10:29 AM, Jerry Wang <[email protected]> wrote:
> just want to get original element names from generated classes, so those
> names can be passed onto other components.
>
> On Wed, Jan 20, 2010 at 12:50 PM, Gillen, Paul <[email protected]>
> wrote:
>>
>> Pardon the impertinence, but why?
>>
>>
>>
>> ________________________________
>>
>> Paul
>>
>>
>>
>>
>>
>> ________________________________
>>
>> From: Jerry Wang [mailto:[email protected]]
>> Sent: Wednesday, January 20, 2010 10:26 AM
>> To: [email protected]
>> Subject: question on code generation with regard to non-alphabetic
>> character in xml element name
>>
>>
>>
>> I am using xmlbean to generate code from wsdl, the issue I am facing is
>> that names of some xml elements have special character like "_"(for example
>> <first_name>).
>> and the getter generated is getFirstName().
>> can I somehow force the method generated to have exact xml tag name like
>> getFirst_Name()?
>> I really do not want to do mapping,just too much over head.
>> Thanks
>> Jerry
>>
>>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.