Subject: Off-topic: XML and DTD From: Kevin Williams <Kevin.Williams@xxxxxxxxxxxxxx> Date: Thu, 1 Jun 2000 11:00:27 -0400 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: XML and DTD, Mike Brown | Thread | RE: Questions concerning XSL-Access, Kay Michael |
Re: XML and DTD, Mike Brown | Date | RE: Questions concerning XSL-Access, Kay Michael |
Month |