Re: [Simple-support] Deserializing specific (lists of) children without having to map an entire XML
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2011-01-19 21:37:51
|
Yes, see Persister.read(class, source, false) --- On Wed, 19/1/11, H. Brunsting <he...@zx...> wrote: > From: H. Brunsting <he...@zx...> > Subject: [Simple-support] Deserializing specific (lists of) children without having to map an entire XML tree? > To: sim...@li... > Received: Wednesday, 19 January, 2011, 5:51 AM > I hope I can explain this in an > understandable manner... > I've been reading the docs for a while, but one thing keeps > me > puzzled: is it possible to deserialize a list of things in > an xml > without deserializing the entire structure? > > An example is http://en.wikipedia.org/w/api.php?action=opensearch&search=john&format=xml&limit=10 > : > I only care about the Item objects, and I'd like a > List<Item>, is > there any way I can get that without having to make class > templates > for SearchSuggestion and Section or do I always have to > wrap the > entire hierarchy? > > Thanks. > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. > Understand > malware threats, the impact they can have on your business, > and how you > can protect your company and customers by using code > signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Simple-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simple-support > |