Re: [xml] RFE: Schema-validation API



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.

I'm happy enough that the schema context assumes ownership
of the document that it is given.

Cheers,
Steve Ball

--
Steve Ball            |   XSLT Standard Library   | Training & Seminars
Zveno Pty Ltd         |     Web Tcl Complete      |   XML XSL Schemas
http://www.zveno.com/ |      TclXML TclDOM        | Tcl, Web Development
Steve Ball zveno com  +---------------------------+---------------------
Ph. +61 2 6242 4099   |   Mobile (0413) 594 462   | Fax +61 2 6242 4099




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