I am working with an xml specification from outside my organization. I need to generate an xml file that complies with the spec. The file will not validate properly unless the default namespace xmlns="ndnqi"
is listed first on the root element like so:
<HospYearQtr xmlns="ndnqi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="ndnqi NDNQIV10.xsd">
I generated classes from the XSD using xsd.exe and when I serialize to xml it puts the default namespace xmlns
at the end of the root element.
Is there any way to force the default namespace to be listed first?