Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 22325 invoked from network); 8 Jan 2003 20:11:19 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 8 Jan 2003 20:11:19 -0000 Received: (qmail 1655 invoked by uid 97); 8 Jan 2003 20:12:09 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 1589 invoked by uid 97); 8 Jan 2003 20:12:08 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 1562 invoked by uid 98); 8 Jan 2003 20:12:08 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: Wed, 8 Jan 2003 12:10:43 -0800 (PST) From: "Craig R. McClanahan" To: Tomcat Users List Subject: Re: DTD for server.xml?? In-Reply-To: <83F0258A9996D311B14200A0C98F173602F22B86@aas-internet.aas.com> Message-ID: <20030108120851.T87225-100000@icarus.apache.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Wed, 8 Jan 2003, Turner, John wrote: > Date: Wed, 8 Jan 2003 11:31:16 -0500 > From: "Turner, John" > Reply-To: Tomcat Users List > To: "'tomcat-user@jakarta.apache.org'" > Subject: DTD for server.xml?? > > > Hello - > > I notice that the top of web.xml has: > > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > "http://java.sun.com/dtd/web-app_2_3.dtd"> > > yet the top of server.xml has nothing. > > I'm very new to XML, so forgive me if this is a lame or FA question, but is > there a DTD for server.xml? If so, why isn't it specified in server.xml, > and what is the URL? Is server.xml "real, official XML" or just > "convenience" XML? > There is no DTD for server.xml because there cannot be. The problem is that server.xml is extensible -- for example, the set of attributes recognized by a or element depends on the implementation class of the internal component that corresponds to it. The startup process uses Java reflection to match them up to property setters on the corresponding beans. There is no way to express this kind of thing in a DTD. Your server.xml is (and must be) "well formed" XML. It just cannot be validated. > - John Craig -- To unsubscribe, e-mail: For additional commands, e-mail: