Silverstone
Programmer
I'm pretty new to C# so bear with me if any of this is obvious!
I'm writing a windows form which is bound to an XML data source. The destination for this XML is an IBM z\OS Mainframe as script in testing an application. (Not my choice!)
I've got it all coded and working fine but there are two issues:
1) The newly created XML file has moved one of the elements moved to a different position in the layout, even though the schema has it in the correct place. I'm not certain this will cause an issue, however knowing how touchy Mainframes are it may well be.
I've hunted around but can't see any way of changing the way it does this. Using XSD.exe to produce a DataSet for the XML produces the same results. This seems to be something within the serialisation process but I'm stuck as to how to proceed.
2) When elements contain no data the XML file is writing tags out as:
<TagName />
but the touchy mainframe requires them to be:
<TagName></TagName>
I've had a look but can't see anything that will affect this, anyone able to help?
I'm writing a windows form which is bound to an XML data source. The destination for this XML is an IBM z\OS Mainframe as script in testing an application. (Not my choice!)
I've got it all coded and working fine but there are two issues:
1) The newly created XML file has moved one of the elements moved to a different position in the layout, even though the schema has it in the correct place. I'm not certain this will cause an issue, however knowing how touchy Mainframes are it may well be.
I've hunted around but can't see any way of changing the way it does this. Using XSD.exe to produce a DataSet for the XML produces the same results. This seems to be something within the serialisation process but I'm stuck as to how to proceed.
2) When elements contain no data the XML file is writing tags out as:
<TagName />
but the touchy mainframe requires them to be:
<TagName></TagName>
I've had a look but can't see anything that will affect this, anyone able to help?