Closed Dreamoochy closed 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.
XmlWriter
FileStream
Thanks. I have added an errata: https://github.com/markjprice/cs10dotnet6/blob/main/errata.md#page-396---serializing-as-xml
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 ofFileStream
.