On Jan 29, 2007, at 7:46 AM, M Ismail wrote:


Hi,

I would like to know if it is possible to save all the inserted facts to an xml file?
and what is the best way to do it?

See the (save-facts-xml) command, documented in the "Jess Function List", Chapter 16 in the manual.



and/or if writing the facts from java straight to xml is easier or not?


That's easy, too; the Rete.ppFacts() method writes facts to a stream you supply, either in Jess or JessML format, based on a boolean parameter. The Javadoc for the Jess library is in chapter 18 of the manual.


---------------------------------------------------------
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]
--------------------------------------------------------------------

Reply via email to