The content of elements must consist of well-formed character data or markup

18,677

From the error message, you are trying to parse the FTL with an XML parser. Of course, FTL is not well-formed XML (though with the square bracket syntax, like [#assign ...] it can be). Maybe you meant to parse the output of the template as XML, not the template itself.

Share:
18,677
user3710320
Author by

user3710320

Updated on June 05, 2022

Comments

  • user3710320
    user3710320 almost 2 years
    <table id="header" align="center">
        <#assign PI = primaryId />
        <#if (PI.getIdentified())><table id="header" align="center">
    

    I run into the following error any help appreciated,I try to read some other related topics but I can't understand exactly what happen. The error pointed to <#assign PI = primaryId /> .

    [Fatal Error] header.ftl:19:23: The content of elements must consist of well-formed character data or markup