Infrastructure implementations of xml input and output.