A number of errors in the mentioned XML. Please find the mentioned issues below:
1. XML version and encoding declaration is missing.
2. In the mentioned XML data there is no root element and without a root element XML is not valid.
3. The above code is incorrect you can't assign a value without an attribute. This can be changed to something like the follow:
4. The above tag must close. The XML tag rules are very strict when you compare XML with HTML. I mean the nesting of tag elements must be correct and each tag should be closed properly.
An example code is below. I've done this with your XML;
Code:
<?xml version="1.0" encoding="utf-8"?>
<GROUPS> <!-- Root node begins -->
<GROUP>
<ID value="1"/>
<SKILL>
<ID value="1"/>
</SKILL>
</GROUP>
<GROUP>
<ID value="2"/>
<SKILL>
<ID value="2"/>
</SKILL>
<SKILL>
<ID value="3"/>
</SKILL>
</GROUP>
</GROUPS> <!-- Root node ends -->
Hope this helps. If you need any more assistance post more details with complete XML
Bookmarks