On Sun, Apr 06, 2008 at 02:08:42PM -0400, Edward Z. Yang wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> When manipulating libxml2's tree, when is it required to call the
> xmlValidate*() functions? I did some testing, and it seems that libxml2
> will happily create attributes or elements that do not conform to the
> lexical space of Name, etc. When the tree is serialized the XML is
> invalid, but libxml2 doesn't explode or anything like that.
> 
> Also, I'm curious to know where lies the burden for checking the
> validity of these things. Is the client code expected to check? If so,

  yes.

> is there a "safe" wrapper that will automatically do the checks? I

  Hum, no ... just call xmlValidateName before the normal tree API call.

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to