2 // System.Data/DataSet.cs
5 // Stuart Caborn <stuart.caborn@virgin.net>
7 // (C) Stuart Caborn 2002
10 using System.Xml.Schema;
15 ///Constants class to hold XmlSerialisation
18 internal class XmlConstants
20 ///<summary>The namespace prefix for the xml schema namespace</summary>
21 public const string SchemaPrefix = "xs";
24 /// The w3 XmlSchema namespace
26 public const string SchemaNamespace = "http://www.w3.org/2001/XMLSchema";
29 //xs elements and values
30 //TODO - these must exist somwhere else???
31 public const string SchemaElement = "schema";
32 public const string AttributeFormDefault = "attributeFormDefault";
33 public const string ElementFormDefault = "elementFormDefault";
34 public const string Qualified = "qualified";
35 public const string Unqualified = "unqualified";
36 public const string Element = "element";
37 public const string Choice = "choice";
38 public const string ComplexType = "complexType";
39 public const string SimpleType = "simpleType";
40 public const string Restriction = "restriction";
41 public const string MaxLength = "maxLength";
42 public const string Sequence = "sequence";
43 public const string MaxOccurs = "maxOccurs";
44 public const string MinOccurs = "minOccurs";
45 public const string Unbounded = "unbounded";
46 public const string Name = "name";
47 public const string Type = "type";
48 public const string Id = "id";
49 public const string TargetNamespace = "targetNamespace";
50 public const string Form = "form";
51 public const string Attribute = "attribute";
52 public const string Default = "default";
53 public const string Caption = "Caption";
54 public const string Base = "base";
55 public const string Value = "value";
58 public const string MsdataPrefix = "msdata";
59 public const string MsdataNamespace = "urn:schemas-microsoft-com:xml-msdata";
60 public const string TnsPrefix = "mstns";
61 public const string IsDataSet = "IsDataSet";
62 public const string Locale = "Locale";
63 public const string Ordinal = "Ordinal";
65 public static XmlQualifiedName QnString = new XmlQualifiedName ("string", XmlSchema.Namespace);
66 public static XmlQualifiedName QnShort = new XmlQualifiedName ("short", XmlSchema.Namespace);
67 public static XmlQualifiedName QnInt = new XmlQualifiedName ("int", XmlSchema.Namespace);
68 public static XmlQualifiedName QnLong = new XmlQualifiedName ("long", XmlSchema.Namespace);
69 public static XmlQualifiedName QnBoolean = new XmlQualifiedName ("boolean", XmlSchema.Namespace);
70 public static XmlQualifiedName QnUnsignedByte = new XmlQualifiedName ("unsignedByte", XmlSchema.Namespace);
71 public static XmlQualifiedName QnChar = new XmlQualifiedName ("char", XmlSchema.Namespace);
72 public static XmlQualifiedName QnDateTime = new XmlQualifiedName ("dateTime", XmlSchema.Namespace);
73 public static XmlQualifiedName QnDecimal = new XmlQualifiedName ("decimal", XmlSchema.Namespace);
74 public static XmlQualifiedName QnDouble = new XmlQualifiedName ("double", XmlSchema.Namespace);
75 public static XmlQualifiedName QnSbyte = new XmlQualifiedName ("byte", XmlSchema.Namespace);
76 public static XmlQualifiedName QnFloat = new XmlQualifiedName ("float", XmlSchema.Namespace);
77 public static XmlQualifiedName QnDuration = new XmlQualifiedName ("duration", XmlSchema.Namespace);
78 public static XmlQualifiedName QnUsignedShort = new XmlQualifiedName ("usignedShort", XmlSchema.Namespace);
79 public static XmlQualifiedName QnUnsignedInt = new XmlQualifiedName ("unsignedInt", XmlSchema.Namespace);
80 public static XmlQualifiedName QnUnsignedLong = new XmlQualifiedName ("unsignedLong", XmlSchema.Namespace);
81 public static XmlQualifiedName QnUri = new XmlQualifiedName ("anyURI", XmlSchema.Namespace);
82 public static XmlQualifiedName QnBase64Binary = new XmlQualifiedName ("base64Binary", XmlSchema.Namespace);
83 public static XmlQualifiedName QnXmlQualifiedName = new XmlQualifiedName ("QName", XmlSchema.Namespace);