prepared XML text for editing