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 Sergio pepe <se...@yahoo.es> on 2006/10/16 13:04:13 UTC
Problem write a file
hi. I have a problem with this code. I write this file but I don't know free the file. I try open with another aplication and windows send an alert message. This message is this file is open in another aplicattions. What is the solution?
DOMWriter *theSerializer =
((DOMImplementationLS*)impl)->createDOMWriter();
XMLFormatTarget *myFormTarget = new LocalFileFormatTarget(rutaArchivoGuaradar);
theSerializer->setFeature(XMLUni::fgDOMWRTFormatPrettyPrint, true);
theSerializer->setEncoding(X("ISO-8859-1"));
theSerializer->writeNode(myFormTarget, *doc);
theSerializer->release();
delete(theSerializer);
delete(myFormTarget);
Thank you very much.
---------------------------------
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com