Re: [xml] setting doc->URL when doc loaded from memory

From: Daniel Veillard

  That should not be a problem, but it's better to call xmlNodeSetBase()
which will make sure it does a copy of the string to avoid memory crash
when freeing the document ! In general try to use the API for this
kind of modifications ...


Exactly how its being done. Just needed to make sure this concept was
correct and wouldnt be causing any collateral damage before rolling it out.


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