add xml document and xml writer classes