cjard wrote:
Isn't this a hack to work around the fact that XmlSerializer doesnt do CDATA? Should Xsd2Code implement hacks? What is the problem with using escaped data? Does your reader at the other end not perform unescaping? Another option could be: Xsd2Code should be able to be given a list of members NOT to generate code for, and then you put the relevant code in the partial class file.. i.e. put your hack in the partial, so that regeneration does not overwrite itUnfortunately partial class does not resolve problems, because change order of markups and not always we can do this. Besides e.g. I have a client who has system with doesn't support escaped data and I have to adjust.... ;/