The markup in the document following the root element must be well-formed.
There are several rules for XML to be well-formed:
- All XML Elements Must Have a Closing Tag;
- Tags should be in the same case;
- XML Elements Must be Properly Nested;
- XML Documents Must Have a Root Element;
- XML Attribute Values Must be Quoted;
- Some symbols have special meaning and have to be escaped (>, <, &, ', ").
In provided XML snippet root element is missing, that is why parser complains. So, well-formed XML will be:
<?xml version="1.0" encoding="UTF-8"?>
<config>
<everConfigured>
<value>false</value>
</everConfigured>
<ServerPort>
<value>9000</value>
</ServerPort>
<ClientPort>
<value>8000</value>
</ClientPort>
</config>
See http://www.w3schools.com/xml/xml_syntax.asp as XML syntax reference.