I've written a data converter in C++. The output today is fixed length records in ASCII TEXT format. I want to add support for XML output.
I've created XML documents in the past, but I've always taken a hacker's approach. By this I mean I simply remember the nesting level of the current set of tags I'm working with, and create subroutines where I'll pass a tag or data value and it will get wrapped in the appropriate delimiters ( "<>" & "</>"), be indented for ease of human reading, and be output. So, essentially, I've separated the data from the formatting, and only apply the formatting at output time.
However, I suspect there might be libraries of functions that exist for outputting in XML format where I can define, perhaps, the namespace and then pass (essentially) raw data to it and it will do all the output formatting for me. Do such libraries exist?
Thanks, Todd