Question

I have written an application that takes a proprietary file format and converts it to XML. I would like to localize that XML file based on culture information by translating element and attribute names.

I can see how to create the XML document using resource files but I am wondering if there isn't an easier way.

Also will I need to construct multiple schemas or can I handle the cultural differences with multiple namespaces?

Was it helpful?

Solution

I went ahead and created five schemas, one for each of the five languages that my app supports. Then it was just a matter of using resource files for the LINQ to XML contruction of the XDocument. It wasn't as difficult as I thought.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top