Hi,

I have a problem parsing file of Jess code into JessML. Everything is parsed
as it should, but there is no end tag for root element <rulebase>, so output
xml document is not well-formed. If I use XMLPrinter.main() method, I get
exactly the result that I need, but I get it on standard output. The thing
is I need to save it into the file. I don't understand why
XMLPrinter.printBackMatter() method in my code is not working. Thanks for
your replies...

My code is:

Reader reader = new FileReader("files/rules.clp");
Writer writer = new OutputStreamWriter(new
FileOutputStream("files/rules.xml"));

XMLPrinter printer = new XMLPrinter(writer);

printer.printFrontMatter();
printer.translateToXML(reader);
printer.printBackMatter();

-- 
View this message in context: 
http://www.nabble.com/JESS%3A-Missing-%3C-rulebase%3E-end-tag-tf3605987.html#a10074636
Sent from the Jess mailing list archive at Nabble.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