[xml] xmlParseMemory ()



I am calling the function xmlParseMemory () to create a document tree.  However, when the buffer being passed to it is not well-formed xml, the following error is sent to console:

 

Entity: line 1: parser error : Start tag expected, '<' not found

 

Is there a call I can make to check whether the buffer is well formed prior to calling xmlParseMemory and/or is there a way of suppressing the error output?

 

Thanks,

Tom

 

 



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