xml --> serial