Dan Wahlin
President
Dan Wahlin is an independent consultant for Wahlin Consulting and also founded XML for ASP.NET (http://www.XMLforASP.NET), which focuses on using XML and Web Services in Microsoft's .NET platform. He also works as a corporate trainer for Global Knowledge, offers his own .NET/XML training courses, and speaks at several conferences. Previously, Dan worked as an enterprise Web site manager and as senior consultant for a global systems integrator. Dan co-authored Professional Windows DNA (Wrox), ASP.NET Tips, Tutorials, and Code (Sams), and recently finished XML for ASP.NET Developers (Sams).
Detailed Biography
Dan Wahlin is a Principal Cloud Developer Advocate at Microsoft focusing on Microsoft 365 and Azure integration scenarios. In addition to his work at Microsoft, Dan creates training courses for Pluralsight, speaks at conferences and meetups around the world, and offers webinars on a variety of technical topics. Prior to joining Microsoft, Dan was CEO of a consulting, architecture, and training company for 20 years helping enterprises build great software. Dan has written several books on Web technologies, hundreds of technical articles and blog posts (https://blog.codewithdan.com) and runs the “Code with Dan Web Development Newsletter” - a great way to stay up on the latest technologies.
Twitter: @DanWahlin
Contact Information:
Articles Authored
-
XML to Database using .NET's XmlTextReader
Last updated: Friday, December 26, 2025
Published in: CODE Magazine: 2002 - January/February
Dan Wahlin demonstrates how to efficiently parse XML and load it into a database using .NET's XmlTextReader by walking through a SQLGenerator class that streams tokens from a customers.xml file, extracts element text and attributes, builds INSERT statements for Northwind's Customers table (including handling multiple records and errors), and emphasizes XmlTextReader's low-memory, high-performance streaming advantage for large XML documents.

