List Info

Thread: Info about xmlSchemaSetValidStructuredErrors




Info about xmlSchemaSetValidStructuredErrors
user name
2007-04-02 07:38:44
Hello,
 
I'm using the xmlSchemaSetValidStructuredErrors to access error details and need to pass a parameter to the xmlStructuredErrorFunc.
I have browsed the documentation and the examples I could find but how this can be accomplished is not really clear to me.
Can anybody provide me an example with some lines showing the correct usage?
Sorry if the question sounds silly to you but I'm new to this and I'm striving to make head or tail of it...
 
Best regards,
Massimo
Re: Info about xmlSchemaSetValidStructuredErrors
user name
2007-04-02 08:54:11
On Mon, Apr 02, 2007 at 02:38:44PM +0200, bagnacauda wrote:
> Hello,
> 
> I'm using the xmlSchemaSetValidStructuredErrors to
access error details
> and need to pass a parameter to the
> xmlStructuredErrorFunc<http://www.xmlsoft.org/html/libxml-xm
lerror.html#xmlStructuredErrorFunc>
> .

  The parameter will the an argument you get in the
callback, see the callback signature.

Daniel

-- 
Red Hat Virtualization group http://redhat.com/v
irtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillardredhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ |
Rpmfind RPM search engine  http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml

Re: Info about xmlSchemaSetValidStructuredErrors
user name
2007-04-04 06:38:49
OK, I have taken a look at some of the sample programs that come with the package and I've found the aswer.
One more question:&nbsp;where can I find a comprehensive list of all error codes/messages handled by libxml2?
Thanks for your help!


 
2007/4/2, Daniel Veillard < veillardredhat.com">veillardredhat.com>:
On Mon, Apr 02, 2007 at 02:38:44PM +0200, bagnacauda wrote:
>; Hello,
>;
> I'm using the xmlSchemaSetValidStructuredErrors to access error details
> and need to pass a parameter to the
> xmlStructuredErrorFunc<http://www.xmlsoft.org/html/libxml-xmlerror.html#xmlStructuredErrorFunc &gt;
> .

The parameter will the an argument you get in the callback, see the callback signature.

Daniel

--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard&nbsp; &nbsp;   ;| virtualization library&nbsp; http://libvirt.org/
veillardredhat.com">veillardredhat.com &nbsp;| libxml GNOME XML XSLT toolkit&nbsp;  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine&nbsp; http://rpmfind.net/

Re: Info about xmlSchemaSetValidStructuredErrors
user name
2007-04-04 07:35:16
On Wed, Apr 04, 2007 at 01:38:49PM +0200, bagnacauda wrote:
> OK, I have taken a look at some of the sample programs
that come with the
> package and I've found the aswer.
> One more question: where can I find a comprehensive
list of all error
> codes/messages handled by libxml2?

  http://xmlsoft.org/html/libxml-xmlerror.html#xmlPars
erErrors
  see xmlerror.h in the include files.

the messages are distributed over the code though, and not
centralized in
a single place.

Daniel

-- 
Red Hat Virtualization group http://redhat.com/v
irtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillardredhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ |
Rpmfind RPM search engine  http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )