[Libvirt-cim] [PATCH 2 of 3] [RFC][CU] Add EI CIMXML parser

Daniel Veillard veillard at redhat.com
Tue Feb 12 07:55:47 UTC 2008


On Mon, Feb 11, 2008 at 10:41:02AM -0800, Dan Smith wrote:
> DV> Assuming I understand the example, there is also no namespace in
> DV> those element, checking node->ns == NULL might be a good idea (or
> DV> not if namespaced)
> 
> Excuse my ignorance here, but why is this important?

  To not misinterpret an element from a foreign namespace which could
be used for something completeley different. Assuming your XML vocabulary
is not defined to be in a namespace, just add the && (node->ns == NULL)
to the test, it just help keeping the X of XML (eXtensible). It's cheap :-)

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
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 Libvirt-cim mailing list