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

SYSTEM DTD's

  • To: "Xml-Dev" <xml-dev@l...>
  • Subject: SYSTEM DTD's
  • From: "Karl Stubsjoen" <karl@e...>
  • Date: Tue, 23 Jul 2002 16:23:24 -0700
  • Importance: Normal

system dtd
Hello,

I am using a SYSTEM DTD which should be found locally to the XML document.
In otherwords, if the xml document is in c:\myxmldoc then the DTD should
also be found there.
I have a copy of the DTD on the server where order entry will be processed.
My VB Application will POST a new order entry XML doc to the server via the
XMLHTTP object of MSXML2.  On the server, and local to the ASP page handling
the request, is the DTD used to validate the XML document.  I am getting the
error:

Problem loading xml - -2146697210 -- The system cannot locate the object
specified.
Error processing resource 'order_entry.dtd'

My DTD tag in the XML document reads:

<!DOCTYPE ORDER SYSTEM "order_entry.dtd">

Apparently, the XML document when POSTed to the ASP page from VB loses
reference (doesn't understand) where the DTD should be found.  I'd like it
to be found local to the ASP script.  Am I making sense?  The URL I am
posting to requires NT Authentication, so I wasn't sure if specifying a
PUBLIC DTD would work here.

How can I rewrite my external DTD decleration?

Here is the ASP code which loads the XML document:

   set xml = createobject("MSXML2.DomDocument")

	with xml
		.validateonparse = true
		.async = false
		'.load Server.MapPath("firsttry.xml")		'load sample - local copy
		.load(Request)
	end with


Notice the commented out line that opens the XML document "firsttry.xml"?
Well, this works great when testing the ASP page - Vs. the true test of
excepting a POSTed XML document.

Thanks for the help!

Karl

PS - Is this a DTD weakness?  Should I be using schemas to validate?  And, I
don't like placing the DTD within the XML document as the standards may
change, old XML may exist on client machines (with old DTD specifications),
etc...


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.