this seems to be a valid xml file and i was able to import it into dropdownlist, but i don’t understand the funny nesting. :
<?xml version="1.0" encoding="utf-8" ?>
<Countries>
<Country>
<ID>1</ID>
<Name>Nepal</Name>
</Country>
<Country>
<ID>2</ID>
<Name>India</Name>
<Country>
<ID>3</ID>
<Name>China</Name>
</Country>
<Country>
<ID>4</ID>
<Name>Bhutan</Name>
</Country>
<Country>
<ID>5</ID>
<Name>USA</Name>
</Country>
</Country>
</Countries>
why is there a closing second to last line? what is it closing? and why is india not closed?
Your file thinks China, Bhutan, and USA are children of India. India is, in fact, closed by the last country end tag. It is technically an “acceptable” (actual term for this is well-formed) XML file, but sanity checks say it makes no sense. File probably should look like this: