top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

Are the type system represented by XmlSchema and the CLS isomorphic?

0 votes
9 views
posted Jun 19 by Sunil
Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

0 votes

It means every type defined by XML Schema can be defined in CLS (.NET type system) and vice versa.

For example, if we have xs:string in XML Schema, we have System.String in .NET. And If I define this class in C#:

public class Foo
{
   public string Bar{get;set;}
}

I can represent that in XML Schema:

<xs:complexType name="Foo">
    <xs:sequence>
      <xs:element name="Bar" type="xs:string" minOccurs="1" maxOccurs="1" />
    </xs:sequence>
</xs:complexType>
answer Jun 23 by Shweta Singh

Your answer

Preview

Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

Useful Links with Similar Problem
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...