.NET XML Writer

Posted by Joe Enos on January 17, 2021 · 1 min read

XmlWriter is an easy way to generate XML when you need it. If you're building something more complex, like something for an API, you probably want to go with serialization instead. Otherwise, this is pretty easy to build XML how you want it top to bottom.

View code on GitHub