[jboss-jira] [JBoss JIRA] Updated: (JBRULES-393) Xml dump with illegal characters
Javier Prieto (JIRA)
jira-events at jboss.com
Wed Aug 9 10:57:12 EDT 2006
[ http://jira.jboss.com/jira/browse/JBRULES-393?page=all ]
Javier Prieto updated JBRULES-393:
----------------------------------
Attachment: XmlDumper.java
Main.java
testXmlDumper.drl
I Attach the modified XmlDumper.java and Main.java i've used to test the dump from the drl file attached (testXmlDumper.drl) to xml
> Xml dump with illegal characters
> --------------------------------
>
> Key: JBRULES-393
> URL: http://jira.jboss.com/jira/browse/JBRULES-393
> Project: JBoss Rules
> Issue Type: Patch
> Security Level: Public(Everyone can see)
> Components: xml
> Affects Versions: 3.0.3
> Environment: Eclipse 3.2 with Drools IDE plug-in 3.0.3
> Reporter: Javier Prieto
> Assigned To: Mark Proctor
> Attachments: Main.java, testXmlDumper.drl, XmlDumper.java
>
>
> Java operators contain illegal xml characters like '<', '>' and '&'. I've modified the XmlDumper.java to replace these illegal characters with their escaped equivalent (<, >, &), in order to fix the dump of blocks which contain java code. These are eval (java expressions), function body (java code) and rhs (java code). So, i've added 'replaceIllegalChars' method and i've modified 'visitFunctionDescr', 'visitEvalDescr' and 'processRules'.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list