Converter from yaidom simple elements and documents to Saxon wrapper elements and documents.
Converter from yaidom Saxon wrapper elements and documents to yaidom simple elements and documents.
Converter from yaidom Saxon wrapper elements and documents to yaidom simple elements and documents. It is implemented by directly building simple Nodes from Saxon wrapper nodes.
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).