http://qs1969.pair.com?node_id=175571


in reply to Design recommendation for parsing and creating XML files.

I apologize. I just re-read the post and realized the formatting for the last paragraph was incorrect. It probably didn't make much sense. It should have read:

The problem is that I have to extract (inclusively) the data between each <Message>...</Message> section and write each chunk to its own file using the value in <MessageID>...</MessageID> for the file name. I understand that this module generates SAX events as a result of the query however, I was considering building a DOM tree and using XPath to extract the necessary text. Can anyone offer any advice on my purposed method of attack? I understand the benefits of using SAX with regards to performance however, the ease of the XPath syntax seems very appealing.

Thanks again,
Jay