Problem with creating all required documents with XML

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.

cheers,

Bram

Subject: Problem with creating all required documents with XML…

Are you hitting your server’s Max LotusScript/Java Execution Time setting? The default is 10 mins.

If you are running out of memory I’d expect an error to be thrown (or, being domino, for the http server to go belly up).

Kerr

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?

Subject: RE: Problem with creating all required documents with XML…

I believe i’m using DOM. I’m quite new to using XML with Notes - is the SAX means that the script needs to be written in Java?

Subject: RE: Problem with creating all required documents with XML…

Lotusscript also has SAX-based classes available.

There are some pretty good examples in the designer help file.

cheers,

Bram