Add xml writer sample