On Tue, Jul 11, 2006 at 01:47:05PM +0100, Daniel P. Berrange wrote: > On Mon, Jul 10, 2006 at 04:27:55PM -0400, Daniel Veillard wrote: > > Hum, so you would like to automatically default it ? I still think > > <graphics type='vnc'/> should be an accepted input meaning "whatever is > > the default", but fine to add it back on any dump. Would that suit you ? > > I don't want to have any knowledge about 'defaults' in my app because I > know this will break in the future :-( You don't have to rely on defaults. Either you write the XML, then you put the port and you are fine, and if you read the XML then we garantee you get the port associated. So I don't see how my suggestion would break your requirement. Daniel -- Daniel Veillard | Red Hat http://redhat.com/ veillard@xxxxxxxxxx | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/