What to do with DTD?...

Frank Boumphrey bckman at ix.netcom.com
Thu Dec 24 16:37:53 GMT 1998


So, will u tell me how XML-DTD is going to be used on the server side ?how
Does it interact with Data?

If you are using ASP this is relatively easy to accomplish. You will however
need the new IE5 beta on your system or at least the relevant dll.

Simply load the file as an object, and then use the DOM to traverse the file
and create an HTML stream for old browsers.

for gecko and IE5 you can of course just send the XML file.

Code follows after signature

Frank

Frank Boumphrey

XML and style sheet info at Http://www.hypermedic.com/style/index.htm
Author: - Professional Style Sheets for HTML and XML http://www.wrox.com
CoAuthor:  XML applications from Wrox Press, www.wrox.com

Asp Code:
<%
dim parser,myDoc,rootEl
'create xml object
set parser=Server.CreateObject("microsoft.XMLDOM")

'load file, note file has tohas to be the physical not virtual path
parser.load("c:\webshare\wwwroot\xml\simple.xml")

'check to make sure the document is loaded

	if parser.parseError.reason="" and parser.readyState=4 then

	else
		response.write parser.parseError.reason

	end if
'test all is working by sending something to the client.

	set rootEl=parser.documentElement
	response.write "<BR>"+rootEl.firstChild.nodeName
%>
----- Original Message -----
From: Selvaleela <selvaleela at enterprise-telesys.com>
To: <xml-dev at ic.ac.uk>
Sent: Thursday, December 24, 1998 2:26 AM
Subject: What to do with DTD?...


Hello XML-Gurus,


           1.   Iam new to Xml.I need to know  more about DTD. So, will u
tell me how XML-DTD is going to be used on the server side ?how Does it
interact with Data?
2. I was told that xml can be used with  heterogeneous databases!...How?
Pl.give me some pointers.
3.how the browser understands the DTD?
......

Oh ..I have lot and lots of doubts.Only u people can help me to clear my
doubts..Please help us!


mail to: selvaleela at enterprise-telesys.com




xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list