On Wednesday, 12/11/2002 at 10:01 CET, "Seiler, Christian" <[EMAIL PROTECTED]> wrote: > I have an application where I'd like to directly create DTM objects to feed > Xalan with.
We have an experimental alternative to DOM2DTM, but currently its performance characteristics would not make it suitable for your needs. So the simplest solution is to feed Xalan a SAX stream. At this time SAX2DTM is much more efficient than first building a DOM and then constructing a DOM2DTM wrapper around it. Generating your own SAX events often isn't all that much harder than issuing DOM calls, though there are a few more opportunities to make mistakes. The other alternative would be for you to implement your own DTM implementation. That's a nontrivial chunk of code; I don't generally recommend it unless you have specialized needs which the SAXSource and DOMSource approaches can't address. ______________________________________ Joe Kesselman / IBM Research
