Re: [Simple-support] Multiple Elements with same name, different Attributes
Brought to you by:
niallg
|
From: Niall G. - Y. <Nia...@yi...> - 2014-03-26 04:59:12
|
Hi, You would have to write a Converter for this. This requires you implement http://simple.sourceforge.net/download/stream/doc/javadoc/org/simpleframework/xml/convert/Converter.html Niall From: Boris Gligich [mailto:bo...@gl...] Sent: 26 March 2014 14:31 To: sim...@li... Subject: [Simple-support] Multiple Elements with same name, different Attributes Hi All, thank you for support and great product. I have following XML <userInfo> <address type="home"> <a>123 Home Way</a> </address> <address type="office"> <a>212 city street</a> </address> </userInfo> and this Class: public class userInfo{ String home; String office; } And i have no idea how to accomplish this, as @path doesn't support attribute filtering, please help. Also order of address is not guaranteed, it could be in any order... Thank you. -- Boris |