Implementing IXmlWriter
This blog post series from 2005 shows how to write a streaming XML writer class in C++, similar to C#’s XmlWriter.
- Implementing IXmlWriter Part 1: The Basics
- Implementing IXmlWriter Part 2: Escaping Element Content
- Implementing IXmlWriter Part 3: Supporting WriteElementString()
- Implementing IXmlWriter Part 4: Collapsing Empty Elements
- Implementing IXmlWriter Part 5: Supporting WriteAttributeString()
- Implementing IXmlWriter Part 6: Escaping Attribute Content
- Implementing IXmlWriter Part 7: Cleaning Up
- Implementing IXmlWriter Part 8: Supporting WriteStartAttribute() and WriteEndAttribute()
- Implementing IXmlWriter Part 9: Supporting WriteStartDocument() and WriteEndDocument()
- Implementing IXmlWriter Part 10: Supporting WriteComment()
- Implementing IXmlWriter Part 11: Supporting Namespaces
- Implementing IXmlWriter Part 12: Supporting Pretty-Printing
- Implementing IXmlWriter Part 13: Putting IXmlWriter Behind A Pimpl Firewall
- Implementing IXmlWriter Part 14: Supporting Writing To A Stream