Is there a way in .Net to programmatically generate DTDs from an existing XML file?

I was looking at the System.Xml namespace, but I see nothing that supports this. Does anyone know if it is embedded in .Net, or will I need to get a third-party library for this?

NOTE. I'm sorry that it was as simple as generating xsd, but it will not be done for my specific situation.

+3
source share
3 answers

It would be very easy to do, but very difficult to make it useful.

DTD - . , XML , . . , , , " ", AI.

: " " " ".

+2

DTD, XSD XML , Xsd.exe. :

C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\xsd.exe

0

, xsd.exe xsd. dtd xmlpad3 , ( ). , .

0

Source: https://habr.com/ru/post/1698453/


All Articles