Re: [xml] [xmlSchemaSAXPlug] callback functions
- From: Daniel Veillard <veillard redhat com>
- To: Christoph Hintermüller <christoph out-world com>
- Cc: xml gnome org
- Subject: Re: [xml] [xmlSchemaSAXPlug] callback functions
- Date: Sat, 14 Sep 2013 13:29:02 +0800
On Fri, Sep 13, 2013 at 09:57:56PM +0200, Christoph Hintermüller wrote:
Hi
On parsing throug libxml2 sources checking how xmlSchemaSAXPlug works
and why I do not see Validation Errors even though they would be to be
expected. I found that for example the startElementNsSplit function used
as startElementNs callback first calls the corresponding function of my
SAX parser and afterwards the one of the Schema validator if present. Is
there a specific reason for calling the user function first? Cause i
would expect the validation callback be called first and my user
function afterwards.
Why ?
Actually XSD is not part of the parsing per XML-1.0 (contrary to DTD
validation) so it sounds more sensible to me to first do the parsing
steps, possibly building the data needed to then process the validation
feedback. XSD can't possibly influence parsing.
Daniel
--
Daniel Veillard | Open Source and Standards, Red Hat
veillard redhat com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | virtualization library http://libvirt.org/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]