Re: [xml] to lock/unlock of xml file during a "job"

On Tue, Apr 06, 2004 at 11:10:57AM +0200, "Andreï V. FOMITCHEV" wrote:
I wanted to know if it is possible to  explicitly (implicitly?) lock an 
xml file during a job (parsing, modifications, etc) as the function 
fcntl, then to unlock explicitly (implicitly?) the file. The goal is 
concurrencial access to the xml files.

  Hum, there is no such support within libxml2 as is. But you can 
override all the I/O primitives with your own. Check xmlIO.[hc], and
the I/O examples to get an idea how to do this.


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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