Enable writing prepared XML elements

This pull request contains the feature to write prepared XML content (created by other sources).
Furthermore, the already included feature `deleteEndElement` is formally included by a merge.