[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [libvirt-glib 20/23] Add test-domain-duplicate.xml which currently fails



On Tue, Oct 18, 2011 at 12:50:44PM +0100, Daniel P. Berrange wrote:
> On Fri, Oct 07, 2011 at 11:41:05AM +0200, Christophe Fergeau wrote:
> > This test has 3 duplicate "name" nodes in the domain XML, I don't
> > know what the right behaviour is in this case :)
> 
> Well first of all this is obviously a non-conforming XML document,
> so if the application is using the schema validation check they
> will get an error.

Ah, I wasn't sure if such documents were conformant or not, hence my
questions.
> 
> If they're not validating against the schema, then IMHO any
> behaviour you care to implement is acceptable, but for sanity
> I'd pick either the first, or last node rather than a
> random node :-)

Yep, it's likely to be the first node since this makes the implementation
easier.

Thanks for the clarification,

Christophe

Attachment: pgpEjCv1FzCqQ.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]