On Feb 28, 2007, at 2:26 PM, Hsin Terry Shen wrote:
Thank you so much for the response, I can't believe that the founder actually answers! I have a follow-up question, though. The XML created with the XMLVisitor class isn't well-formed. I need to add in CDATA sections and also there's one field that includes a "<" character.
Although it's true that the XML isn't well-formed in this case, its also moot, because the slot that contains the invalid data is a slot that holds a Java object. JessML makes no provision for embedding user objects in the rule language; effectively, facts that contain Java objects can't be stored as JessML data. JessML is not an Object/ Relational mapper.
I can't find any good documentation on the XMLVisitor class on the website and Google in general, and I've tried the visitFact method. Could somebody provide some insight into how to solve this problem?
There's nothing elegant you can do here, really. You can replace the contents of the offending slots of the facts before they're written out, but that's about it.
--------------------------------------------------------- Ernest Friedman-Hill Advanced Software Research Phone: (925) 294-2154 Sandia National Labs FAX: (925) 294-2234 PO Box 969, MS 9012 [EMAIL PROTECTED] Livermore, CA 94550 http://www.jessrules.com -------------------------------------------------------------------- To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]' in the BODY of a message to [EMAIL PROTECTED], NOT to the list (use your own address!) List problems? Notify [EMAIL PROTECTED] --------------------------------------------------------------------
