The XML specification reserves a number of characters such as &
or <
. I have written an XML exporter that exports our tree structure, but we have attribute values that contain reserved characters.
I am not sure what is good approach to dealing with this. Should I look for a library for XML exporting (and figure out how to adapt our tree to it)? Just write my own method that replaces the reserved characters with the appropriate substitutions?