Performance benefit in using DOMResult?
One option is to continue using StreamResult and parse the xml again using DOM/SAX. But here it seems like I would be unnecessarily reparsing the output xml. So instead, I am thinking of replacing StreamResult by DOMResult. I can then carry out the further checks on the output DOM tree. The expected benefit is:
1. avoiding reparsing of transformed output xml
2. hopefully leverage the result tree that the transformer creates internally i.e. no DOM tree creation from scratch
Can someone tell me if pt 2 is even a possibility?
Will using DOMResult still result in a conversion from the internal tree structure to the DOM tree? Is there anyway to avoid this? If none, I presume I will still be better off since I still avoid reparsing the output xml.
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format