Interchange xsd and xsi - XmlSerializer in c#
Posted
by Sri Kumar
on Stack Overflow
See other posts from Stack Overflow
or by Sri Kumar
Published on 2010-04-05T10:36:42Z
Indexed on
2010/04/05
10:43 UTC
Read the original article
Hit count: 310
Hello All,
XmlSerializer serializer = new XmlSerializer(typeof(IxComment));
System.IO.StringWriter aStream = new System.IO.StringWriter();
serializer.Serialize(aStream,Comments);
commentsString = aStream.ToString();
Here the commentsString has the the following element in it
<IxComment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
Is there any possibility to interchange the xsi and xsd attribute and get the element as shown below
<IxComment xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
Will this cause any other issue?
© Stack Overflow or respective owner