I have an XML file and i process it using the XML classes. Basically a document is to be created for each master node and its sub-nodes. In total about 1600 documents should be created.
My script seems to work but only managed to process 1100 documents and then the script just stops.
What is the reason for this? Is this a memory issue, limitation issue with notes???
Subject: Problem with creating all required documents with XML…
Are you using the SAX parser (good) or the DOM parser (bad)?
If you’re using DOM, this requires the whole XML tree to be loaded in memory before you can start processing the data. The SAX parser is far better suited for the task you describe.
Subject: RE: Problem with creating all required documents with XML…
No, the whole process takes about 1-1/2 minute to run.
It creates the 1000 documents or so and then just stops without writing any errors into the log.
Somone mentioned to me that when i read the whole XML file using XML classes in lotus script, there is a ‘limit’ - something to do with the DOM limitation. I wonder if this is the case.
Subject: RE: Problem with creating all required documents with XML…
DOM is memory-heavy, but unless those 1000 documents are HUGE, you shouldn’t be hitting it on reasonably-current hardware. If the source XML file is big enough, you could go to SAX, which is event-driven, so it doesn’t need to build a DOM parse tree.
Are you using the log from the NotesDOMParser and NotesDXLImporter in your error logging?