[Libvir] uuid string format

Daniel Veillard veillard at redhat.com
Mon May 22 13:52:35 UTC 2006


On Mon, May 22, 2006 at 03:45:04PM +0200, Karel Zak wrote:
> 
>  Hello,
> 
>  I've found that we use in our XML dump:
> 
>   <uuid>%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x</uuid>
> 
>  it's strange format of the UUID string representation. Is there any
>  reason for this format?  I think normal (rfc4122) is format:
> 
>   "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x"
> 
>  it means with '-'.

  RFC 4122 is for URN embedding, that's a specific use. We are not following 
that syntax anyway since it's not an URN, we really don't need to encode this
as an URI, only as an unambiguous ASCII string, and the current format does
the job minimally.

Daniel

-- 
Daniel Veillard      | Red Hat http://redhat.com/
veillard at redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/




More information about the libvir-list mailing list