Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Off-topic: XML and DTD

From: Kevin Williams <Kevin.Williams@-------------->
To:
Date: 6/1/2000 7:00:00 AM
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent