I need to drop an xml-stylesheet declaration tag into the top of my xml output. I don't need to do anything with the tag, really, I just need the tag to appear in the output file.
Does anyone have a suggestion for a simple method of accomplishing this? I've been trying to just drop it into the file (via cout) before I dump any xml in via tinyxml, but tinyxml is overwriting that declaration.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I need to drop an xml-stylesheet declaration tag into the top of my xml output. I don't need to do anything with the tag, really, I just need the tag to appear in the output file.
Does anyone have a suggestion for a simple method of accomplishing this? I've been trying to just drop it into the file (via cout) before I dump any xml in via tinyxml, but tinyxml is overwriting that declaration.
i think there is a patch for this