There's often a need to convert XML infoset from one API to another, such as converting SAX events to DOM, or reading DOM as StAXReader, or use StAXWriter to build a DOM.
Today, none of this is easy. I saw these pieces re-implemented many, many times.
Identity transformation isn't easy enough. Besides the number of lines you need to do it (and maintaining per-thread instance of identity transformer), from average Joe's stand point, API conversion is *NOT* a transformation.
It could be just a series of helper methods on Source. Or maybe on Result.
###@###.### 2005-06-22 23:56:32 GMT
Today, none of this is easy. I saw these pieces re-implemented many, many times.
Identity transformation isn't easy enough. Besides the number of lines you need to do it (and maintaining per-thread instance of identity transformer), from average Joe's stand point, API conversion is *NOT* a transformation.
It could be just a series of helper methods on Source. Or maybe on Result.
###@###.### 2005-06-22 23:56:32 GMT