Re: JESS: Jess clp, JessML and Strings with embedded XML

"Nguyen, Son" <[email protected]>
Newsgroups gmane.comp.java.jess
Message-ID <8954_1289507700_oABKY9N2009259_433500A5BB71E0429667F320009F438B09D8AC77@resmsg04.AME.ad.sag>
Hi,

I commented out the first three lines of the decodeValue() method in
JessSaxHandler.java and things work much better:

    private static Value decodeValue(String text, int valueType) throws
JessException {
//        text = text.replaceAll("&gt;", ">");
//        text = text.replaceAll("&lt;", "<");
//        text = text.replaceAll("&amp;", "&");

These lines seem unnecessary. In fact they unescape the escaped XML,
making the embedded XML become part of the containing XML, transforming
it into something else.

Do you think this correction breaks anything else.

Son Nguyen
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.