Page 1 of 1

How to fix this "elements must consist of well-formed character data"?

Posted: Wed Dec 11, 2019 4:15 am
by Carl
I am receiving this error "The content of elements must consist of well-formed character data or markup". It's repeated five times for a single line in my topic. I can't figure out what this means--the OxygenXML validator isn't helping.

Please see the attached screenshot.
2019-12-10_17-09-28.png

Re: How to fix this "elements must consist of well-formed character data"?

Posted: Thu Dec 12, 2019 5:23 pm
by alin
Hello,

In order to avoid XML well-formedness errors you should wrap the JavaScript content of the <script> element using XML Comment markup.
For example:

Code: Select all

<script>
  <!-- 
     
     [Place your Javascript here]
  
  -->
</script>


Regards,
Alin