[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] accessing Parser-Ctxt in SAX based schema validation
- From: Daniel Veillard <veillard redhat com>
- To: Holger Kaelberer <hkaelber math uni-bielefeld de>
- Cc: xml gnome org
- Subject: Re: [xml] accessing Parser-Ctxt in SAX based schema validation
- Date: Wed, 9 Apr 2008 06:55:57 -0400
On Wed, Apr 09, 2008 at 10:35:35AM +0200, Holger Kaelberer wrote:
> Daniel Veillard wrote:
>
> >On Wed, Apr 09, 2008 at 09:49:30AM +0200, Holger Kaelberer wrote:
> >
> >>Is there an equiv. when using xmlSchemaValidateStream or any other way
> >>to access the parser ctxt of the parsed file?:
> >>
> >>/---
> >>...
> >>state->ctxt = ...;
> >>...
> >>ret = xmlSchemaValidateStream(vctxt, buf, XML_CHAR_ENCODING_NONE,
> >> (xmlSAXHandlerPtr) parser_handler, state);
> >>---/
> >>
> >>
> >>Can someone help me with that?
> >>
> >
> > Did you check within a debugger ? That ought to be possible i think.
> >
>
> But what do I set my state->ctxt to (supposed to be a xmlParserCtxtPtr)
> as I don't have the parser-Ctxt of the parsed xml-file? I first thought
> of passing the xmlSchemaValidCtxtPtr and than using vctxt->parserCtxt in
> my SAX-handler, but that does not work as the parserCtxt-element is not
> "public".
Hum, right one would need to add an accessor function at the end of
xmlschemas.c ... But what are you using the parser context for, i'm curious ?
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]