Problems with 'logback.XML to Groovy' translator (website)

14 Dec
2012
14 Dec
'12
7:29 a.m.
Hey there, just wanted to make a comment on the 'logback.XML to Groovy translator' webpage. It seems that ampersands ("&") are not HTML escaped an therefore, if you have some logical expression within your XML like this: <expression> marker != null && marker.contains("SMTP_TRIGGER") </expression> You will see the following error: // XML parsing failure // org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference. So you have to escape the ampersands yourself ("&"), like this: <expression> marker != null && marker.contains("SMTP_TRIGGER") </expression> To make it work. Just wanted to let you know ;)
4676
Age (days ago)
4676
Last active (days ago)
0 comments
1 participants
participants (1)
-
Heinz Romirer | TAC GmbH