[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: What to do with DTD?...

  • From: "Frank Boumphrey" <bckman@i...>
  • To: "Selvaleela" <selvaleela@e...>, <xml-dev@i...>
  • Date: Thu, 24 Dec 1998 11:23:15 -0500

create xml from asp
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@e...>
To: <xml-dev@i...>
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@e...




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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.