Skip to:
xml entity parsing issue when calling toString() on Java objects
toString()
@Test public void testXMLInStringBuffer() { // @formatter:off instance.executeSource( """ buffer = createObject( "java", "java.lang.StringBuffer" ).init(); buffer.append( '<cfcomponent>' ); buffer.append( '<\\cfcomponent>' ); result = buffer.toString(); println( result ); """, context, BoxSourceType.CFSCRIPT ); // @formatter:on }
error
[Fatal Error] :1:15: The content of elements must consist of well-formed character data or markup. <cfcomponent><\cfcomponent>
xml entity parsing issue when calling
toString()
on Java objects@Test public void testXMLInStringBuffer() { // @formatter:off instance.executeSource( """ buffer = createObject( "java", "java.lang.StringBuffer" ).init(); buffer.append( '<cfcomponent>' ); buffer.append( '<\\cfcomponent>' ); result = buffer.toString(); println( result ); """, context, BoxSourceType.CFSCRIPT ); // @formatter:on }
error
[Fatal Error] :1:15: The content of elements must consist of well-formed character data or markup. <cfcomponent><\cfcomponent>