They are very similar but the xml package one includes decodeFromXML (XMLDecoder). CayenneDataObject is the only class which implements decodeFromXML(XMLDecoder).
On the other hand classes which implement the util version of the package instead use MapLoader to perform the decoding from XML in the form of a SAX parser.
* can we rename these interfaces so they are more different (I think one is a SAX decoder and the other DOM), or
* can CayenneMapEntry be somehow merged with XMLSerializable. They apply to different classes now but I'm not sure why. (doesn't everything in the map need to be XML serializable and everything which is serializable is in the map?), or
* should we merge the two XMLSerializable interfaces and make decodeFromXML a noop where is it not used
Ideally I'd have thought decodeFromXML() and encodeFromXML() are always nice symmetric pairs but I'm thinking this would require a change from using a SAX parser in MapLoader to using a DOM parser.
I'm just trying to understand this code as I navigate through it working on some other things.
Ari --------------------------> ish http://www.ish.com.au Level 1, 30 Wilson Street Newtown 2042 Australia phone +61 2 9550 5001 fax +61 2 9550 4001 GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A
PGP.sig
Description: This is a digitally signed message part
