.Net Xml Serialize - XSD Definition for Multiple Namespaces
- by MattH
The following XML was generated by serializing .Net objects:
<?xml version="1.0" encoding="utf-8"?>
<Request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://EPS.WebServices/WebServiceSchema" >
<Method xmlns="http://EPS.Library/RequestSchema">PackPlacementUpdate</Method>
<Type xmlns="http://EPS.Library/RequestSchema">PackPlacementUpdate</Type>
</Request>
I am using XSD to generate a schema. However, (I think) because there are multiple namespaces two different schema files get generated. We will be providing the XSD file externally and I'm concerned that two files will cause confusion.
Without changing the namespace of the .Net classes, is there is a way I can create a single XSD schema file and not two?
Thanks.