You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by harshabi <sr...@gmail.com> on 2008/03/06 04:17:27 UTC
Commiting writeNode()
Hello all,
I am using the DOMWriter::writeNode() call to write the file on to the hard
disk.. Later on i am supposed to validate the xml written.... but it seems
that writeNode call doesnt write the file until i use the
XMLPlatform::terminate call. How can i make writeNode Commit writing the
file on the hard disk immediately???
--
View this message in context: http://www.nabble.com/Commiting-writeNode%28%29-tp15865713p15865713.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.
Re: Commiting writeNode()
Posted by Alberto Massari <am...@datadirect.com>.
harshabi wrote:
> Hello all,
> I am using the DOMWriter::writeNode() call to write the file on to the hard
> disk.. Later on i am supposed to validate the xml written.... but it seems
> that writeNode call doesnt write the file until i use the
> XMLPlatform::terminate call. How can i make writeNode Commit writing the
> file on the hard disk immediately???
>
The file is closed (and flush to disk) when the LocalFileFormatTarget
specified in the writeNode call is destructed; just be sure that it goes
out of scope before trying to access the file.
Alberto