Java - The markup in the document following the root element must be well-formed



I checked my XML code a lot of times using online validators, but no result! The code



<?xml version="1.0" encoding="UTF-8"?>
<data>
<permission value="1">
<value>SECTION_1</value>
</permission>
<permission value="2">
<value>SECTION_2</value>
</permission>
<permission value="3">
<value>SECTION_3</value>
</permission>
</data>


I get the error that something is wrong on line 5 in column 2. I got it firstly when had made two root elements, but after found the problem and fixed it. But I still get this error. Can someone please advise me with that?


No comments:

Post a Comment