infinitycity
Programmer
Hello,
in the following script
--------------- part of the javascript--------------
var logFile = new ActiveXObject("Microsoft.XMLDOM"
logFile.async="false";
logFile.load("log.xml"
var rootE = logFile.documentElement;
----------------------------------------------------
I'm trying to load the log.xml file, which uses the DTD "logEntry.dtd" as shown below:
----------------part of "log.xml"-------------------
<!DOCTYPE logEntry SYSTEM "logEntry.dtd">
<logFile>
&logEntry;
</logFile>
---------------------------------------------------
As you can see I'm using an entity here which is defined in the DTD.
THE PROBLEM IS: The part "logFile.documentElement;" is null.
javascript has problems to cope with the DTD. Isn't it possible to use DTDs in Microsoft.XMLDOM or is there any other mistake?
When I replace the &logEntry; with normal Elements and remove the DTD-Definition, there is no problem at all.
Tx and Greetings
Sven Eisenhardt
T-Systems, debis-Systemhaus
in the following script
--------------- part of the javascript--------------
var logFile = new ActiveXObject("Microsoft.XMLDOM"
logFile.async="false";
logFile.load("log.xml"
var rootE = logFile.documentElement;
----------------------------------------------------
I'm trying to load the log.xml file, which uses the DTD "logEntry.dtd" as shown below:
----------------part of "log.xml"-------------------
<!DOCTYPE logEntry SYSTEM "logEntry.dtd">
<logFile>
&logEntry;
</logFile>
---------------------------------------------------
As you can see I'm using an entity here which is defined in the DTD.
THE PROBLEM IS: The part "logFile.documentElement;" is null.
javascript has problems to cope with the DTD. Isn't it possible to use DTDs in Microsoft.XMLDOM or is there any other mistake?
When I replace the &logEntry; with normal Elements and remove the DTD-Definition, there is no problem at all.
Tx and Greetings
Sven Eisenhardt
T-Systems, debis-Systemhaus