protected void WriteStartDocument() { if (_w.WriteState == WriteState.Start) { _w.WriteStartDocument(); } }