Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sapphire-dev] How to use different root xml elements within a model

There is @CustomXmlRootBinding and the related RootElementController class that enable more complex binding behavior at the root of the document.

 

Thanks,

 

- Konstantin

 

From: sapphire-dev-bounces@xxxxxxxxxxx [mailto:sapphire-dev-bounces@xxxxxxxxxxx] On Behalf Of Shenxue Zhou
Sent: Thursday, August 29, 2013 10:00 AM
To: Sapphire project
Subject: [sapphire-dev] How to use different root xml elements within a model

 

I have a use case where the root xml element switches between two values:

 

< my-mobile-config>

…..

</ my-mobile-config>

 

Or

 

<my-regular-config>

……

</my-regualr-config>

 

Obviously I won’t be able to use a standard @XmlBinding(path = “…”) on the root model element. What’s the best way to do this?

 

Thanks!

 

Shenxue


Back to the top