Input and output with xml format