Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Xerces c++ xml log [Thread Next] Re: Xerces c++ xml logTo: NULL Date: 4/4/2007 7:06:00 PM "Nuno" <nuno.esculcas@g...> writes: > The speed is not the desired one, but i can live with this, but my > biggest problem is that when i reach aproximilly the 22378 lines in > the xml document when i'm doing the following instruction of code: > LocalFileFormatTarget local(m_strLogFileFullName.c_str()); > the xerces return an xercesc::XMLException saying "Could not open > file: ..." This does not look like a size problem. Maybe your file is still opened when you try to open it again? > Is there any limit of data in an xml file? The limit on file sizes is imposed by your hardware and/or OS. However your approach won't allow you to write more that the amount of RAM you have since you use DOM and it keeps all the data in memory. > how i can write more than this limit? One approach would be to open a new log file when the the current file has grown too large. If you must keep everything in one file then you can use DOM to serialize just one record instead of the whole document. With this approach you will need to write the head and tail of your document by hand and set the option on DOMWriter not to write the XML declaration. I've described this method in a bit more detail in a post to the Xerces-C++ mailing list: http://www.mail-archive.com/c-dev@x.../msg02647.html hth, -boris -- Boris Kolpackov Code Synthesis Tools CC http://www.codesynthesis.com Open-Source, Cross-Platform C++ XML Data Binding | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
