Question : 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. http://www.clickatell.com/downloads/xml_dtd.txt 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

Thanks
P

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

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 .

http://www.google.com/search?q=DTD+convert+XSD
Random Solutions  
 
programming4us programming4us