Re: [xml] How do you print errors based on xmlParserErrors?



On Tue, Aug 16, 2005 at 05:28:55PM -0400, ABeylin axsone com wrote:
Is there a way to get a char * value of xmlParserErrors enum?

For example, you can use a function strerror to get value of errno in
char * format, does anything like that exist for xmlParserErrors?

  There is no such function. That is left to the application layer,
including the localization of said strings. There is a default string
provided when the error occur, but no canonical one, usually other
context informations need to be taken into account for a decent error
report. How, and what is better left to the application layer doing
the user interface.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
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]