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

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 :)

On Wednesday 21 January 2004 15:00, Jeroen Cranendonk wrote:
Hi, quicky question :)

I use xmlNewTextReaderFilename to create a new file based
xmlTextReader. This function returns 0 on error.

When I receive 0, how do I detect the cause of this error ?
(most specificly, how do I find out if we ran out of memory, or if there
was some file-io error, for example :)

I can see in the code xmllib keeps this info, but I can't really make heads
or tails of the many error handling stuff in there :)

I'm looking for a way to do this that is libxml 2.5 compatible :)

Many thanks, don't forget to cc a reply to me ^-^ (hit reply all ;)
      Jeroen C.
xml mailing list, project page  http://xmlsoft.org/
xml gnome org

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]