WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] How to handle missing create.dtd in tools/python/xen/xm/

To: Stephan Peijnik <spe@xxxxxxxxx>
Subject: Re: [Xen-devel] How to handle missing create.dtd in tools/python/xen/xm/xenapi_create.py?
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Fri, 15 Oct 2010 15:43:45 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 15 Oct 2010 07:44:33 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1287132970.2084.7.camel@sp-laptop>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1287132970.2084.7.camel@sp-laptop>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
On Fri, 15 Oct 2010, Stephan Peijnik wrote:
> Whilst writing my patch to replace the PyXML based XML validation code
> in xenapi_create.py I noticed that the old code did not handle a missing
> create.dtd file at all.
> 
> My patch (see [0]) now issues a warning when create.dtd is missing, but
> I would like to know how we want to handle that case? 
> Is issuing a Python warning enough or should we bail out with an error?
> create.dtd should usually not be missing in xen installations, but the
> Debian xen 4 package [1], in version 4.0.1-1, for example does not
> include the create.dtd file and thus the validation will not be carried
> out.
> 
> Any other ideas on handling this? Is this a packaging bug or can
> create.dtd be omitted in xen installations?
> 
 
I think that a missing DTD shouldn't be considered an error by xend,
even though a complete deb or rpm package should have it.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>