Can i use XSD.exe or XSDObjectGen to generate a class library from a DTD? And if so which is best?

I've got the following DTD i.e. that i want to generate serialised xml from in order to post to a URL

Can i use XSD.exe or XSDObjectGen to generate a class library from this DTD? And if so which is best?

Code Samples would be much appreciated

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I'm confused...  you want to convert the DTD file to XML so that you can "post to a URL"?

What's that got to do with creating a class library from the DTD?

There are a few command-line tools (and some web services) that can covert between the two formats (DTD<->XSD), but I don't know of any programmatic way to perform the conversion
paulCardiffAuthor Commented:
I want to generate a class library from the DTD - and I'm just trying to establish whether or not this is possible and what is the best way to go about it
Not directly... I think you'd have to convert the DTD into an XSD file first, then use Visual Studio (or the xsd.exe command line) to convert it into source code that can be used to create the class .

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Forced accept.

EE Admin
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.