Re: [xml] [repost] xmlNewTextReaderFilename , detect cause of failure ?



On Tue, Jan 27, 2004 at 05:13:12PM +0100, Jeroen Cranendonk wrote:
I don't like reposting, but I'm still stuck ^-^ And I haven't seen any 
answers :)

The problem doesn't seem too hard, for someone who knows xmlib,
mayby I didn't explain well ?
really short: I make an xmlWriter with the newxmlwriter function that takes a 
filename, and if that fails want to find out the reason (no such file or 
internal error).

I -think- I can't use the errorhandler stuff, cause you need to first have a 
parser or so to attach that to.

So how best to do this ? :)

Or is this not properly possible with the current api ?

mayby that's why noone has an answer ? :)

Hope I'm not taking too much of anyones time, 
      many thanks in advance again :)

  Alternately, since nobody seems to have a clear answer, you have
the source, USE the SOURCE, really, it's there, it's C, it should
be commented. 
  I know libxml2 catch those errors. You should see them or be able
to get them, unless xmlWriter.c does something strange.

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]