Peter H. Smith <[EMAIL PROTECTED]> asks > Are you avoiding tying to a streaming implementation > because: > > 1. streaming is bad or unncessary? > 2. it's not clear what the best implementation is? > 3. there is vendor politics involved? >
Number 2 is a big factor. There are more details and choices to worry about than I would have guessed at first. The W3C is going to take on this problem in the upcoming DOM Level 3. Xerces will support whatever they come up with. (I'm involved in this activity with the W3C.) For more info on the W3C DOM activities, see http://www.w3.org/DOM. For now, Dean's suggestion to crib the code from the SAXPrint or DOMPrint samples is a good one. It's not a lot of code, and it can be easily modified if you don't like the exact format it chooses for the generated XML. -- Andy