Re: XML Encoder

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Sep 28 2004 - 12:53:51 EDT

  • Next message: John Martyniak: "Re: XML Encoder"

    John,

    XMLEncoder in Cayenne is a utility class used internally to encode
    org.objectstyle.cayenne.util.XMLSerializable object trees to XML. If
    you look at what classes implement XMLSerializable
    (http://objectstyle.org/cayenne/api/cayenne/org/objectstyle/cayenne/
    util/XMLSerializable.html), you'll see that those are mostly mapping
    metadata.

    DataObject is not XMLSerializable. So it is not the same as XMLEncoder
    in WebObjects. I wouldn't mind having a utility that encodes
    DataObjects to XML, but this is arguably outside of Cayenne scope, and
    thus not a priority.

    BTW, what are your most common uses of XMLEncoder in WebObjects? Just
    curious.

    Andrus

    On Sep 28, 2004, at 11:21 AM, John Martyniak wrote:

    > Does anybody know of any examples of using XMLEncoder? I couldn't find
    > anything in the docs, I only saw it in the API docs.
    >
    > I am a big fan of the XMLEncoder and XMLCoder in Web Objects, and
    > would like
    > to try this functionality in Cayenne.
    >
    > Any help would be greatly appreciated.
    >
    > -John



    This archive was generated by hypermail 2.0.0 : Tue Sep 28 2004 - 12:53:58 EDT