Commit 80a62ed9 authored by msharma's avatar msharma

Source merged received from manohar sir regarding CDATA use during xml creation


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92273 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e997f623
...@@ -131,9 +131,14 @@ public class CreateRCPXML ...@@ -131,9 +131,14 @@ public class CreateRCPXML
{ {
colName = rsmd.getColumnName( rsIdx ); colName = rsmd.getColumnName( rsIdx );
colVal = rs.getString( colName ); colVal = rs.getString( colName );
colXml = "\n\t\t<" + colName.toLowerCase() + ">" //colXml = "\n\t\t<" + colName.toLowerCase() + ">"
// + ( colVal == null || colVal.trim().length() == 0 || colVal.equalsIgnoreCase( "null" ) ? "" : colVal )
// + "</" + colName.toLowerCase() + ">";
// 04/12/12 manoharan CDATA tag to be added
colXml = "\n\t\t<" + colName.toLowerCase() + "><![CDATA["
+ ( colVal == null || colVal.trim().length() == 0 || colVal.equalsIgnoreCase( "null" ) ? "" : colVal ) + ( colVal == null || colVal.trim().length() == 0 || colVal.equalsIgnoreCase( "null" ) ? "" : colVal )
+ "</" + colName.toLowerCase() + ">"; + "]]></" + colName.toLowerCase() + ">";
tranXmlBuff.append( colXml ); tranXmlBuff.append( colXml );
} }
tranXmlBuff.append( "\t" + detEndTag ); tranXmlBuff.append( "\t" + detEndTag );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment