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

Christophe Fergeau cfergeau at redhat.com
Tue Oct 18 12:53:49 UTC 2011


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20111018/df3acf05/attachment-0001.sig>


More information about the libvir-list mailing list