DTD to XSD problem

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



My client has supplied a comple DTD file to help interface with their
system.
I take the DTD into Visual Studio 2005 and convert to XSD file.

I then try the following:

DataSet m_XMLSource = new DataSet();
m_XMLSource.ReadXmlSchema("paymentService_v11.xsd");
m_XMLSource.Namespace = String.Empty;

And I get the following error:

System.Data.DuplicateNameException was unhandled
Message="A column named 'issueNumber' already belongs to this
DataTable."

My question is this. Is this the correct approach that I have used? I
done a project a couple of years ago and used a similar approach and it
worked fine.

I REALLY don't want to have to build up all this XML manually, so I am
looking for some method that builds up an empty structure and lets me
populate it, then at the end spits out an XML string that I can send.

As I said earlier, this code worked fine for another project (albeit
smaller DTD) so hoped it would work again.

Any help on this would be appreciated.

Steven



*** Sent via Developersdex http://www.developersdex.com ***
.