.Net Xml Serialize - XSD Definition for Multiple Namespaces
Posted
by MattH
on Stack Overflow
See other posts from Stack Overflow
or by MattH
Published on 2010-05-26T20:26:52Z
Indexed on
2010/05/26
20:31 UTC
Read the original article
Hit count: 464
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.
© Stack Overflow or respective owner