View Full Version : how do I use a PUBLIC DTD?
12-31-2002, 12:28 AM
I'm publishing something where users will edit an XML document but shouldn't be able to edit the DTD. I was thinking something like:
<!DOCTYPE udm PUBLIC "http://www.domain.com/my_dtd.dtd">
would do it, but it seems not to.
12-31-2002, 12:49 AM
That would work if the keyword was SYSTEM.
Doctype declaration tags work like this:
<!DOCTYPE rootElementName PUBLIC "-//human-readable-string//" "http://dtd-location.org/filename.dtd">
<!DOCTYPE rootElementName SYSTEM "http://dtd-location.org/filename.dtd">
The idea behind the PUBLIC keyword is to include an optional string which describes the language the DTD defines. :)
12-31-2002, 01:01 AM
I see. Thanks, that's very helpful :)
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.