You are welcome. And don't curse yourself. I am sure there will be
somebody around to be cursed instead .. ;-).

Werner

Ole Christian wrote:
> Ahhhh... that's the stuff. I'll curse myself later for not trying that
> earlier!
> 
> Thank you very much!
> 
> 
> Werner Guttmann wrote:
>> In that case, I think using
>>
>> http://castor.org/javadoc/org/exolab/castor/xml/Marshaller.html#setRootElement(java.lang.String)
>>
>> might give you what you are looking for. And I guess you can even skip
>> the class mapping in that case.
>>
>> Werner
>>
>> Ole Christian wrote:
>>> Trying something like this:
>>> ...
>>> Marshaller marshaller = new Marshaller(mapping);
>>> marshaller.marshall(new BigDecimal(100));
>>> ...
>>>
>>> Result would be nice if it could be something like this:
>>> <?xml version="1.0" encoding="ISO-8859-1"?>
>>> <MyAliasNodeClass>100</MyAliasNodeClass>
>>>
>>>
>>> Werner Guttmann wrote:
>>>> Hi,
>>>>
>>>> are you actually trying to map a member of another class that happens to
>>>> be of type BigDecimal to a custom alias, or are you really trying to
>>>> (un)marshall just a java.lang.BigDecimal instance ?
>>>>
>>>> Werner
>>>>
>>>> Ole Christian wrote:
>>>>> I'm trying desperately to make a mapping file that maps a
>>>>> java.math.BigDecimal to a Node of my likings. But no matter what I do
>>>>> it
>>>>> still just maps it to <big-decimal></big-decimal>
>>>>>
>>>>> Example of mapping file:
>>>>>   <class name="java.math.BigDecimal" auto-complete="true"
>>>>> verify-constructable="false">
>>>>>           <description>Aliasing my BigDecimal</description>
>>>>>           <map-to xml="MyAliasNodeClass" />
>>>>>   </class>
>>>> ---------------------------------------------------------------------
>>>> 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
>>
>>
>>
> 


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

    http://xircles.codehaus.org/manage_email

Reply via email to