471,309 Members | 1,089 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,309 software developers and data experts.

DTD to XSD problem

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 ***
Jun 27 '08 #1
0 791

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Kostatus | last post: by
117 posts views Thread by Peter Olcott | last post: by
18 posts views Thread by Ian Stanley | last post: by
28 posts views Thread by Jon Davis | last post: by
6 posts views Thread by Ammar | last post: by
2 posts views Thread by Mike Collins | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.