Re: [xml] RFE: Schema-validation API

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 Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]