How to convert a XML culture/locale?
I have a XML whe开发者_StackOverflowre all values are stringified accordingly to a given culture (decimal separator for floats, month/day order for dates).
I have to convert this XML to another culture. How to do that with minimal effort?
XML is a transition format, so it is best to keep it in culture-invariant format. I wouldn't recommend formatting XML.
That said, if you still have to do that, because of somebody's strange requirement, you will have to parse each string to appropriate class and format it again using different culture. I can't actually give you an example, as I don't know what language/technology you are referring to. I can only assume that you meant C#/.Net...
EDIT
You can also transform culture-invariant XML using XSL.
精彩评论