Re: Serializing Expressions from XML

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Fri Oct 28 2005 - 01:21:12 EDT

  • Next message: Bryan Lewis: "intermittent exception"

    If you look at how "encodeAsXML" method is implemented by Expression
    class, it simply wraps compact format produced by "encodeToString"
    into a CDATA section. So you can do the same.

    Expression.encodeAsString and Expression.fromString pair is what you
    need.

    Andrus

    On Oct 27, 2005, at 11:25 AM, Dave Merrin wrote:
    > Sorry for yet another question. I would say it is the last but
    > Cayenne is
    > proving to be more useful than first expected.
    >
    > I can see it is possible to encode an Expression as XML. I just
    > can't see
    > how to get an expression back given some XML. I assume this is
    > possible? I'm
    > probably just not seeing the class/method again.
    >
    > Cheers,
    >
    > Dave



    This archive was generated by hypermail 2.0.0 : Fri Oct 28 2005 - 01:21:14 EDT