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

<oXygen/> general issues.
Carl
Posts: 75
Joined: Fri Oct 19, 2018 2:19 am

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

Post by Carl » Wed Dec 11, 2019 4:15 am

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
2019-12-10_17-09-28.png (247.75 KiB) Viewed 387 times

alin
Site Admin
Posts: 161
Joined: Thu Dec 24, 2009 11:21 am

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

Post by alin » Thu Dec 12, 2019 5:23 pm

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
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply