Issue with XML

Answered

Hi All,

 

I am working with Intellij on an xml document that uses Smooks framework with javabean tags. Intellij keeps turning my ampersand into regular expressions and the xml document is denied by my queue because the xml isn't in the right format. It also doesn't format my code document right.

For instance, 

Expected:

<jb:expression property="rollOnDay">
if(derivativeSecurityDetailsEtrs["netSwapInd"] == "Y"){
if (derivativeSecurityDetailsEtrs["accrualCalcMethodCd"] == "P") {
if(derivativeSecurityDetailsEtrs["accrualFreqCd"] == "M" && code != null){
if(derivativeSecurityDetailsEtrs["accrualDayOfMonthNbr"] == "31"){
return "End Of Month";
} else {
return derivativeSecurityDetailsEtrs["accrualDayOfMonthNbr"];
}
}
}
}
</jb:expression>

 

 

Actual

 

<jb:expression property="rollOnDay">
if(derivativeSecurityDetailsEtrs["netSwapInd"] == "Y"){
if (derivativeSecurityDetailsEtrs["accrualCalcMethodCd"] == "P") {
if(derivativeSecurityDetailsEtrs["accrualFreqCd"] == "M" &amp;&amp;){
code lt;= null){
return "End Of Month";
} else {
return derivativeSecurityDetailsEtrs["accrualDayOfMonthNbr"];
}
}
}
}
</jb:expression>

How do I turn these suggestions off and get intellij to reformat the document correctly?

0
2 comments

Here's what my console says

0

Hello,

Currently it's not supported. Feel free to create feature request on YouTrack: https://youtrack.jetbrains.com/issues/IDEA

0

Please sign in to leave a comment.