admin管理员组

文章数量:1323732

<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

<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

Share Improve this question edited Apr 8, 2015 at 19:22 user3710320 asked Apr 8, 2015 at 18:52 user3710320user3710320 3732 gold badges4 silver badges9 bronze badges 3
  • and where you get this error exactly, what is the code. – Zielu Commented Apr 8, 2015 at 19:10
  • what about now the error points to exactly on the beginning of "<#assign" – user3710320 Commented Apr 8, 2015 at 19:24
  • Hi zielu, Thank you in advance. I add the code, Any suggestion ? – user3710320 Commented Apr 8, 2015 at 19:33
Add a ment  | 

1 Answer 1

Reset to default 3

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.

本文标签: javascriptThe content of elements must consist of wellformed character data or markupStack Overflow