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

Off-topic: XML and DTD

Subject: Off-topic: XML and DTD
From: Kevin Williams <Kevin.Williams@xxxxxxxxxxxxxx>
Date: Thu, 1 Jun 2000 11:00:27 -0400
file dtd
This is off-topic, but...

what you need is a DOCTYPE declaration in your XML document pointing to the
DTD, like this:

<!DOCTYPE foo SYSTEM "http://www.foo.com/foo.dtd">

where foo is the name of your root element and the string in quotes is a
relative or absolute URI pointing to the DTD that is associated with the
document. Typically, this appears just after the <?xml...?> declaration.
When a validating parser reads this document, it will load the specified DTD
and validate the document against it.

HTH...

- Kevin

Kevin Williams
XML Architect
Ultraprise Corporation

> -----Original Message-----
> From: Mar Fior [mailto:pupipai@xxxxxxxxxxx]
> Sent: Thursday, June 01, 2000 10:07 AM
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: XML and DTD
> 
> 
> 
> Hi,
> I don't know xml very well and my question is stupid!!!
> I have created an file xml and another file dtd for that
> xml.
> When I call my xml file from my browser (IE)
> I can see it well formatted. But I don't know how I must do
> to see if it is "VALID".
> I have inserted into my xml file this row:
> 
> <?xml version="1.0" standalone="no"?>
> 
> Because if I have understood well
> "stanalone" identify with "yes" if I want that the check
> is only "well fomatted" and with "no" if the check
> is "valid document".
> 
> But the result is equal. And If I add some error into
> my xml file I haven't any segnalation!
> 
> How I can do to know if my xml file have the rule of
> his dtd????
> 
> 
> Please, help me!
> Thanks in advance and sorry for my little english!
> 
> Marcella
> 
> ______________________________________________________________
> __________
> Get Your Private, Free E-mail from MSN Hotmail at 
http://www.hotmail.com


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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
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.