test xmlwriterpi