Thanks, however the error isn't on the system parameter, which was a typo by
the way. That should have been the fourth parameter.
The error I get when running the following variant is:
CreateDocumentType("procedure", "-//LMSSC//DTD XML//CAEWriter Minimal
Revisable Units 2.0.2//Vulcan//EN", null,null);
An unhandled exception of type 'System.ArgumentException' occurred in
mscorlib.dll
Additional information: The path is not of a legal form.
This text works fine when loading the document with the declaration
pre-existing in the document. Now I'm trying to build the document.
Scott
"Martin Honnen" wrote:
[color=blue]
>
>
> scottl wrote:
>
>[color=green]
> > The document type declaration is:
> > <!DOCTYPE procedure PUBLIC
> > "-//LMSSC//DTD XML//CAEWriter Minimal Revisable Units 2.0.2//Vulcan//EN"
> > "vulcan-cae.dtd">[/color]
>
> You need e.g. C# (with no line break inside of the string literals)
>
> XmlDocument xmlDocument = new XmlDocument();
> XmlDocumentType documentTypeDeclaration =
> xmlDocument.CreateDocumentType(
> "procedure",
> "-//LMSSC//DTD XML//CAEWriter Minimal Revisable Units 2.0.2//Vulcan//EN",
> "vulcan-cae.dtd",
> null
> );
>
> Note that the system id (e.g. vulcan-cae.dtd) needs to point to an
> existing file.
>
>
> --
>
> Martin Honnen --- MVP XML
>
http://JavaScript.FAQTs.com/
>[/color]