Re: [xml] RFE: Schema-validation API
- From: Daniel Veillard <veillard redhat com>
- To: Steve Ball <Steve Ball zveno com>
- Cc: xml gnome org
- Subject: Re: [xml] RFE: Schema-validation API
- Date: Wed, 29 Oct 2003 17:22:47 -0500
On Thu, Oct 30, 2003 at 07:17:02AM +1100, Steve Ball wrote:
Daniel Veillard wrote:
On Wed, Oct 29, 2003 at 11:25:38PM +1100, Steve Ball wrote:
Please find attached a patch to add a new API as discussed
below. The API has been tested via my own project,
but if you would like an additional patch for testschemas.c
let me know.
Nahh, this looks simple enough, there is little room for errors,
except maybe the allocation strategy. Ideally freeing the context
should not free the document since the document was provided by the
user. I don't know if this is worth noting or taking care of.
The document may be modified by the schema parser routine
(whitespace trimmed), so the application *should* provide
a copy (at least, that would be best practise). The doco
for the new API includes a note to that effect.
Excellent :-)
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
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]