EDN Admin
Well-known member
Is there a way to stop XmlCodeExporter from generating types from imported namespaces when calling
<a title="XmlCodeExporter.ExportTypeMapping http://msdn.microsoft.com/en-us/library/system.xml.serialization.xmlcodeexporter.exporttypemapping.aspx" target="_blank
XmlCodeExporter.ExportTypeMapping ?
I know that there is some logic for this, because if I replace all my imported namespaces with "http://www.w3.org/2001/XMLSchema", the imported types are not generated.
So I want to tell XmlCodeExporter (or something else) that "http://www.example.com/address1" is a predefined namespace the same way that "http://www.w3.org/2001/XMLSchema" is. What function do I call?
Edit: I do in fact get validation event "Error: Type http://www.w3.org/2001/XMLSchema:xxxxx is not declared." for my imported types with replaced namespace. But that is not important now.
<br/>
View the full article
<a title="XmlCodeExporter.ExportTypeMapping http://msdn.microsoft.com/en-us/library/system.xml.serialization.xmlcodeexporter.exporttypemapping.aspx" target="_blank
XmlCodeExporter.ExportTypeMapping ?
I know that there is some logic for this, because if I replace all my imported namespaces with "http://www.w3.org/2001/XMLSchema", the imported types are not generated.
So I want to tell XmlCodeExporter (or something else) that "http://www.example.com/address1" is a predefined namespace the same way that "http://www.w3.org/2001/XMLSchema" is. What function do I call?
Edit: I do in fact get validation event "Error: Type http://www.w3.org/2001/XMLSchema:xxxxx is not declared." for my imported types with replaced namespace. But that is not important now.
<br/>
View the full article