+ Start a Discussion
Keith654Keith654 

"The content of elements should consist of well-formed ..." warning solved

 

This post is to hopefully help anyone else who has this problem.
We had a bug that a warning message of "The content of elements should consist of well-formed character data or markup. at line 33" appeared occasionally in a apex:pageMessages output of Visualforce page.
The first breakthrough was the realization that the message only appeared immediately after the page had been edited. But there was nothing obviously wrong on line 33 of the page or any of the components it included. So the only way to narrow this down was to comment out parts of the page.
The problem turned out to be an invalid comment in a component where:
    <-- Overpayment/underpayment mode -->
should have been:
    <!-- Overpayment/underpayment mode -->
Both the component and page saved correctly, but this mistake caused the warning the first time the page was used.

 

This post is to hopefully help anyone else who has this problem.


We had a bug that a warning message of "The content of elements should consist of well-formed character data or markup. at line 33" appeared occasionally in a apex:pageMessages output of Visualforce page.


The first breakthrough was the realization that the message only appeared immediately after the page had been edited. But there was nothing obviously wrong on line 33 of the page or any of the components it included. So the only way to narrow this down was to comment out parts of the page.


The problem turned out to be an invalid comment in a component where:
    <-- Overpayment/underpayment mode -->
should have been:
    <!-- Overpayment/underpayment mode -->


Both the component and page saved correctly, but this mistake caused the warning the first time the page was used.