markjprice / cs10dotnet6

Repository for the Packt Publishing book titled "C# 10 and .NET 6 - Modern Cross-Platform Development" by Mark J. Price
853 stars 373 forks source link

Chapter 09. Serializing as XML #91

Closed Dreamoochy closed 2 years ago

Dreamoochy commented 2 years ago

The result of serializing on pp.396, 397 is in so called "pretty" format. But I was unable to get it with your code. It is saved as a single line. To get "pretty" formatting I have to use XmlWriter instead of FileStream.

markjprice commented 2 years ago

Thanks. I have added an errata: https://github.com/markjprice/cs10dotnet6/blob/main/errata.md#page-396---serializing-as-xml