---
title: "Fluent XML Library - Ultra cool, short and weet"
url: "https://osherove.com/blog/2008/2/26/fluent-xml-library-ultra-cool-short-and-weet.md"
canonical: "https://osherove.com/blog/2008/2/26/fluent-xml-library-ultra-cool-short-and-weet.html"
published: "2008-02-26T12:31:36"
updated: "2008-02-26T12:31:36"
tags: [".NET", "Cool Tools", "General Software Devel..."]
author: "Roy Osherove"
description: "Oh, next time I'm going to generate XML, remind me to use Mark Resmussen's ultra cool XML Fluent Interface library . her'es a killer snippet: XmlOutput xo = new XmlOutput() .XmlDeclaration() .Node(\"root\").Within()…"
usage: "Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page)."
license: "https://creativecommons.org/licenses/by/4.0/"
---

# Fluent XML Library - Ultra cool, short and weet

By Roy Osherove February 26, 2008 In [.NET](https://osherove.com/blog/category/net), [Cool Tools](https://osherove.com/blog/category/cool-tools), [General Software Devel...](https://osherove.com/blog/category/general-software-devel)

**Historical article** · Originally published February 26, 2008; technical details may be outdated.

Oh, next time I'm going to generate XML, remind me to use [Mark Resmussen's ultra cool XML Fluent Interface library](http://www.improve.dk/blog/2007/10/20/xmldocument-fluent-interface). her'es a killer snippet:

> ```
> XmlOutput xo = new XmlOutput()
>     .XmlDeclaration()
>     .Node("root").Within()
>         .Node("result").Attribute("type", "boolean").InnerText("true");
> ```

```
[via Glenn]
```

## More in .NET

[All posts in .NET](https://osherove.com/blog/category/net)

- Apr 24, 2008

    ### [Testing XML serialization attributes](https://osherove.com/blog/2008/4/24/testing-xml-serialization-attributes.html)

- Apr 24, 2008

    ### [Parallel Builds with MSBuild](https://osherove.com/blog/2008/4/24/parallel-builds-with-msbuild.html)

- Jan 17, 2008

    ### [Debug into the .NET Framework Library Source Code - It's here.](https://osherove.com/blog/2008/1/17/debug-into-the-net-framework-library-source-code-its-here.html)

- Jan 15, 2008

    ### [BitDiffer, anyone?](https://osherove.com/blog/2008/1/15/bitdiffer-anyone.html)


---

## About the author

**Roy Osherove**: Senior Solutions Architect at AWS working on AI for production and AI-driven development; author of The Art of Unit Testing and Elastic Leadership, with about 20 years of consulting and training on unit testing, TDD, team leadership and continuous delivery.

### Sites

- [RobotPaper](https://robotpaper.ai/): This blog: AI patterns and anti-patterns, AI and coding agents, and engineering leadership.
- [osherove.com](https://osherove.com): Roy's personal site. Author of The Art of Unit Testing and Elastic Leadership; consulting and training on unit testing, TDD, team leadership and continuous delivery, plus about 20 years of blog posts.
- [The Art of Unit Testing](https://www.artofunittesting.com): The Art of Unit Testing, 3rd Edition (Manning): readable, maintainable, trustworthy unit tests, plus TDD workshops in C#, JavaScript, Java and Kotlin.
- [5whys.com](https://www.5whys.com): Roy's writing on software team leadership: self-organizing teams, surviving chaos, learning mode and the Elastic Leadership model.
- [Pipeline Driven](https://pipelinedriven.org): Continuous delivery and DevOps practices: build patterns, pipeline-friendly testing, DevOps metrics and enterprise DevOps.
- [Elastic Leadership](https://www.elasticleadership.com): Elastic Leadership, Roy's framework for software team leaders (survival, learning and self-organizing modes).

### Social

- X: https://x.com/royosherove
- LinkedIn: https://www.linkedin.com/in/osherove/

### Contact

- Contact form: https://forms.gle/jQSx5KoXvrVA1JCK7

### License

Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page). License: https://creativecommons.org/licenses/by/4.0/
