Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / November 2003

Tip: Looking for answers? Try searching our database.

Converting a DTD into csharp objects

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrew Dubinsky - 27 Nov 2003 02:49 GMT
Is there a quick and easy way to convert a DTD into C# objects /
interfaces?

I realize this can be done with schema, but I have been given the
DTD's as a requirement.

Thank you.
ruby_user - 27 Nov 2003 05:00 GMT
I am not aware of any quick way express a DTD in an object model. The
important question is what you expect the C# objects to do / what do you
need to use them for?

> Is there a quick and easy way to convert a DTD into C# objects /
> interfaces?
[quoted text clipped - 3 lines]
>
> Thank you.
Dave Marteinson - 28 Nov 2003 20:34 GMT
> Is there a quick and easy way to convert a DTD into C# objects /
> interfaces?

Andrew,

Hrm, how about using something like dtd2schema to create a schema
from the DTD then using SOM to read the schema?

Regards,

    -djm
Christoph Schittko [MVP] - 29 Nov 2003 01:45 GMT
There's currently nothing in the .NET Framework to generate objects from the
definitions in a DTD. If you can convert the DTD to XML Schema with XmlSpy
for example ) then you can use either xsd.exe, which is part of the .NET
Framework or the Xml Inference Tool from GDN [0] to generate C# of VB.NET
classes.

Signature

HTH
Christoph Schittko [MVP, XmlInsider]
Software Architect, .NET Mentor

[0] http://www.gotdotnet.com/team/xmltools/

> Is there a quick and easy way to convert a DTD into C# objects /
> interfaces?
[quoted text clipped - 3 lines]
>
> Thank you.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.