xmlWriterPi added