EDN Admin
Well-known member
I have tried to use the following code in VB.net:
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; Dim doctype <span style="color:Blue; As XmlDocumentType = xDoc.CreateDocumentType(<span style="color:#A31515; "root", <span style="color:Blue; Nothing, <span style="color:Blue; Nothing, <span style="color:#A31515; "<!DOCTYPE library SYSTEM C:tempdtddoc.dtd>")
[/code]
but when this code executes I get the following XML Exception:
"Expected DTD markup was not found. Line 1, position 3."
xDoc by the way, is the xmldocument I am using.
There is nothing in the help about this and I cant seem to track anything down on this forum.
Basically the reason I want this, is that I want to keep the DTD in a seperate file and when an XML file is loaded, dynamically compare it to the DTD to be sure its valid for my application.
View the full article
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; Dim doctype <span style="color:Blue; As XmlDocumentType = xDoc.CreateDocumentType(<span style="color:#A31515; "root", <span style="color:Blue; Nothing, <span style="color:Blue; Nothing, <span style="color:#A31515; "<!DOCTYPE library SYSTEM C:tempdtddoc.dtd>")
[/code]
but when this code executes I get the following XML Exception:
"Expected DTD markup was not found. Line 1, position 3."
xDoc by the way, is the xmldocument I am using.
There is nothing in the help about this and I cant seem to track anything down on this forum.
Basically the reason I want this, is that I want to keep the DTD in a seperate file and when an XML file is loaded, dynamically compare it to the DTD to be sure its valid for my application.
View the full article