- Made xmlDocument nullable
- Refactored DocumentService