[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] Use of xmlValidate* functions in tree
- From: Daniel Veillard <veillard redhat com>
- To: "Edward Z. Yang" <edwardzyang thewritingpot com>
- Cc: xml gnome org
- Subject: Re: [xml] Use of xmlValidate* functions in tree
- Date: Mon, 7 Apr 2008 05:11:20 -0400
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/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]