Re: [Simple-support] I have a Tet and Element in one xml element
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2014-05-16 03:37:48
|
@Root
class Item{
@Path("value[1]")
@Text
String text;
@Path("value[2]")
@Element
String label
}
this should work, if not use a Converter
--------------------------------------------
On Wed, 14/5/14, Muhannad <muh...@gm...> wrote:
Subject: [Simple-support] I have a Tet and Element in one xml element
To: sim...@li...
Received: Wednesday, 14 May, 2014, 11:11 PM
Hello
I am using simple xml , it is great , but I faced a
problem that I have the next xml
<item key="2">
<value>Textual Data</value>
<value>
<label>Another Textual Data</label></value>
</item>
If I use @Text annotation with @Element , it is
not allowed , so any work around?
--
Best Regards
Muhannad al HaririSoftware
Developer
Stackoverflow
Profile
-----Inline Attachment Follows-----
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing
- For FREE
Instantly run your Selenium tests across 300+ browser/OS
combos.
Get unparalleled scalability from the best Selenium testing
platform available
Simple to use. Nothing to install. Get started now for
free."
http://p.sf.net/sfu/SauceLabs
-----Inline Attachment Follows-----
_______________________________________________
Simple-support mailing list
Sim...@li...
https://lists.sourceforge.net/lists/listinfo/simple-support
|