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

Oxygen general issues.
Carl
Posts: 102
Joined: Fri Oct 19, 2018 2:19 am

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

Post 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
You do not have the required permissions to view the files attached to this post.
alin
Site Admin
Posts: 275
Joined: Thu Dec 24, 2009 11:21 am

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

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