I've been tough Chuck's chapter 11 and implemented the examples for xml serialization of an enterprise object and deserialization of same. All worked fine.
Now, though, I'm onto de-serializing a generic stream of XML (sample below). Can someone suggest documentation that I can read to help me understand how to tell readObject() that the incoming XML matches a class defined in my app?
Regards,
Drew
<results> <copyright>Copyright (c) 2005 QuoteMedia, Inc.</copyright> <symbolcount>2</symbolcount>
<lookupdata> <key> <symbol>.A1BSC</symbol> <exchange>DJI</exchange> </key>
<equityinfo> <longname>Dow Jones Amer Basic Mat Stock</longname> <shortname>BSCMTRL</shortname> </equityinfo> </lookupdata>
<lookupdata> <key> <symbol>.A1CYC</symbol> <exchange>DJI</exchange> </key>
<equityinfo> <longname>Dow Jones Amer Cons Cyc Stock</longname> <shortname>CNSCYCL</shortname> </equityinfo> </lookupdata>
<lookupdata> <key> <symbol>.A1DOW</symbol> <exchange>DJI</exchange> </key>
<equityinfo> <longname>Dow Jones Amer Stock</longname> <shortname>.A1DOW</shortname> </equityinfo> </lookupdata>
</results> |