Skip to content
Sven Hübner IT
  • Home
  • Blog

xml

  • Home
  • Blog
  • xml

Creating POCOs from XSD with a Source Generator

Posted by By sven.huebner.it August 8, 2021Posted inGeneral Development
How to write a source generator for generating POCOs from XSD files.
Read More

Gotcha with XmlDocument.Validate and XDocument.Load

Posted by By sven.huebner.it May 1, 2021Posted inUncategorized
TL;DR: XmlDocument.Validate is not a read-only operation. but changes the document tree. XDocument.Load(XmlReader) adds attributes, even if they are marked as unspecified.
Read More

Gotcha with xsd.exe and XmlSerializer

Posted by By sven.huebner.it August 8, 2020Posted inGeneral Development
TL;DR: Always use the /order option when using xsd.exe. If you have ever generated C# classes from an XML schema, chances are you used xsd.exe for that.You probably also expected…
Read More
Copyright 2025 — Sven Hübner IT. All rights reserved. Sinatra WordPress Theme
Scroll to Top