Re: [xml] Getting Error from the parser.



On Tue, Oct 07, 2003 at 08:19:35AM -0700, Harring Figueiredo wrote:
Folks,

 I am parsing a document and would like to get the error returned by the xml
parser.

Example:Opening and ending tag mismatch: merge_filename line 6 and merge_file
        <merge_filename> merge_file </merge_file>

 I am using the DOM. (i.e. opening the document with
 xmlParseFile(xml_file);

 
  I tried setting up the xmlSetGenericErrorFunc; howerver, the eroor message
comes in "chunks" (calls the handle multiple times). 

   Is there another way to do that, or am I doing it the correct way ?

  with xmlParseFile() it's not possible. You nedd either a lower
level function or wait for 2.6.0 where this will be possible,

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.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]