final classSimpleElemToSaxonElemConverter extends AnyRef
Converter from yaidom simple elements and documents to Saxon wrapper elements and documents.
We exploit the fact that yaidom simple elements and documents can be excellent builders for
Saxon wrapper elements and documents (or builders for other element implementations).
Performance of this SAX-based solution is also pretty good. The implementation uses the fact
that yaidom can convert a simple Document or Elem to a stream of SAX events on any SAX handler,
and Saxon can provide such a SAX handler that happens to create a Saxon tiny tree (if that is the
tree model used).
Converter from yaidom simple elements and documents to Saxon wrapper elements and documents.
We exploit the fact that yaidom simple elements and documents can be excellent builders for Saxon wrapper elements and documents (or builders for other element implementations).
Performance of this SAX-based solution is also pretty good. The implementation uses the fact that yaidom can convert a simple Document or Elem to a stream of SAX events on any SAX handler, and Saxon can provide such a SAX handler that happens to create a Saxon tiny tree (if that is the tree model used).