I'm trying to programmaticall y create a document type using the
CreateDocumentT ype method of XmlDocument.
The document type declaration is:
<!DOCTYPE procedure PUBLIC
"-//LMSSC//DTD XML//CAEWriter Minimal Revisable Units 2.0.2//Vulcan//EN"
"vulcan-cae.dtd">
Using the method generates an error with the second parameter.
CreateDocumentT ype("project",
"-//LMSSC//DTD XML//CAEWriter Minimal Revisable Units 2.0.2//Vulcan//EN"
null,
"vulcan-cae.dtd">
I"ve tried various combinations, but can't generate the desired output.
Including "-//LMSSC//DTD XML//CAEWriter Minimal Revisable Units
2.0.2//Vulcan//EN" always generates an error.
Any pointers?
Scott 3 6768
scottl wrote: The document type declaration is: <!DOCTYPE procedure PUBLIC "-//LMSSC//DTD XML//CAEWriter Minimal Revisable Units 2.0.2//Vulcan//EN" "vulcan-cae.dtd">
You need e.g. C# (with no line break inside of the string literals)
XmlDocument xmlDocument = new XmlDocument();
XmlDocumentType documentTypeDec laration =
xmlDocument.Cre ateDocumentType (
"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/
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:
CreateDocumentT ype("procedure" , "-//LMSSC//DTD XML//CAEWriter Minimal
Revisable Units 2.0.2//Vulcan//EN", null,null);
An unhandled exception of type 'System.Argumen tException' 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:
scottl wrote:
The document type declaration is: <!DOCTYPE procedure PUBLIC "-//LMSSC//DTD XML//CAEWriter Minimal Revisable Units 2.0.2//Vulcan//EN" "vulcan-cae.dtd">
You need e.g. C# (with no line break inside of the string literals)
XmlDocument xmlDocument = new XmlDocument(); XmlDocumentType documentTypeDec laration = xmlDocument.Cre ateDocumentType ( "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/
scottl wrote: The error I get when running the following variant is: CreateDocumentT ype("procedure" , "-//LMSSC//DTD XML//CAEWriter Minimal Revisable Units 2.0.2//Vulcan//EN", null,null);
An unhandled exception of type 'System.Argumen tException' occurred in mscorlib.dll Additional information: The path is not of a legal form.
Hmm, I see that error here with .NET 1.1. When I compile and run with
..NET 2.0 I don't get any error.
I am not sure there is anything wrong with that public id, it rather
looks like you have hit a bug with CreateDocumentT ype in .NET 1.1.
--
Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: svend |
last post by:
I'm messing with some code here... Lets say I have this array:
a1 = ;
And I apply slice(0) on it, to create a copy:
a2 = a1.slice(0);
But this isn't a true copy. If I go a1 = 42, and then
alert(a2) I will see 42 there too. I'm doubting, but I was
|
by: Don Stefani |
last post by:
Hello,
I have a form that I want to submit "onchange", OK I've got that working, but when the
form submits, I want to pass along a value to a CGI script, as if that value was in a
hidden form element.
BUT, I don't want that value to be in the actual HTML form, I want it to be created in my
submit function.
For instance:
|
by: pshvarts |
last post by:
(I'm new in SOAP)
I get some wsdl file (from apache service ). I tried creating SOAP client
with .NET - trying to add Web Reference and get error like: "Custom tool
error: Unable to import WebService/Schema. Unable to import binding..."
I thought may be wsdl file is not good enough (it was created with qsoap
toolkit), so I paste-copy sample from
http://www.w3.org/TR/2001/NOTE-wsdl-20010315#_wsdl (will paste below) and
receive same error...
|
by: Adam Tilghman |
last post by:
Hi all,
I have found that IE doesn't seem to respect the <SELECT> "multiple"
attribute when set using DOM methods, although the attribute/property
seems to exist and is updated properly. Those changes just don't make
it onto the screen.
Am I doing something wrong here?
If not, is there a better feature test I can use than
"appName.match()"?
|
by: sam |
last post by:
Hi all,
I am dynamically creating a table rows and inerting radio buttons which
are also dynamically created. Everything works fine in Firefox as
expected. But I am not able to select radio buttons in IE. It does not
even throw any errors. I have searched over the net but could not find
anyhelp. Hope some experts here could help me.
Here is part my code that dynamically generates the radio buttons, I
cannot paste the entire code as it is...
| |
by: patrickkellogg |
last post by:
I have this code when you click the buttom is suppose to add a job
history. it works with firefox, opera, but not ie. (please note -
new entries don't have all the elements in them yet, but enough to get
the idea).
Here is the code:
-----------------------------------------------------------------
<html>
|
by: somaskarthic |
last post by:
Hi
In my php code , i dynamically created table rows on button click event.
Each row contain 3 selectboxes, 7 checkboxes . On each click of these elements i need to submit the form and save the data to database. After each submit , i need to display the previous added details (with some checkboxes checked and some others unchecked ..) and one new row for next updation.
Here i need to collect all values submitted in the php page.
There i...
|
by: yomadhu |
last post by:
I created a dynamic form in javascript. Am unable to get those values in to php to display. I need all details. If i add 10 rows the i need to display those all values. Can any one help me for that code.
<HTML>
<HEAD>
<TITLE> Add/Remove dynamic rows in HTML table </TITLE>
<script type="text/javascript" src="script.js">
// JavaScript Document
var c=0;
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
| |
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |