retreive DTD structure in VB.net

G

Guest

How can i retreive the structure of a dtd in my VB.net assembly
so i can display the structure

i know how to read a schema but it doesnt seem to work with a dtd
 
M

Martin Honnen

How can i retreive the structure of a dtd in my VB.net assembly
so i can display the structure

As far as I know .NET (at least the current versions 1.0 and 1.1) do not
expose public classes to load and model an XML DTD alone.
There is however XmlDocument, XmlNode etc thus if you load an XML
document with a
<!DOCTYPE >
declaration into an XmlDocument then the DOM object model exposes some
parts of the DTD, the XmlDocument has a property
DocumentType
of type XmlDocumentType and there you have properties like
Entities
for the entity declarations,
Notations
for the notations.,
SystemId
PublicId

If you have further questions on XML in .NET then consider posting in
microsoft.public.dotnet.xml on news.microsoft.com, maybe someone there
also knows some third party library for DTD loading/modelling for .NET.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top