2 // System.Data/DataSet.cs
5 // Stuart Caborn <stuart.caborn@virgin.net>
7 // (C) Stuart Caborn 2002
10 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
12 // Permission is hereby granted, free of charge, to any person obtaining
13 // a copy of this software and associated documentation files (the
14 // "Software"), to deal in the Software without restriction, including
15 // without limitation the rights to use, copy, modify, merge, publish,
16 // distribute, sublicense, and/or sell copies of the Software, and to
17 // permit persons to whom the Software is furnished to do so, subject to
18 // the following conditions:
20 // The above copyright notice and this permission notice shall be
21 // included in all copies or substantial portions of the Software.
23 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
27 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 using System.Xml.Schema;
38 ///Constants class to hold XmlSerialisation
41 internal class XmlConstants
43 ///<summary>The namespace prefix for the xml schema namespace</summary>
44 public const string SchemaPrefix = "xs";
47 /// The w3 XmlSchema namespace
49 public const string SchemaNamespace = "http://www.w3.org/2001/XMLSchema";
52 //xs elements and values
53 //TODO - these must exist somwhere else???
54 public const string SchemaElement = "schema";
55 public const string AttributeFormDefault = "attributeFormDefault";
56 public const string ElementFormDefault = "elementFormDefault";
57 public const string Qualified = "qualified";
58 public const string Unqualified = "unqualified";
59 public const string Element = "element";
60 public const string Choice = "choice";
61 public const string ComplexType = "complexType";
62 public const string SimpleType = "simpleType";
63 public const string Restriction = "restriction";
64 public const string MaxLength = "maxLength";
65 public const string Sequence = "sequence";
66 public const string MaxOccurs = "maxOccurs";
67 public const string MinOccurs = "minOccurs";
68 public const string Unbounded = "unbounded";
69 public const string Name = "name";
70 public const string Type = "type";
71 public const string Id = "id";
72 public const string TargetNamespace = "targetNamespace";
73 public const string Form = "form";
74 public const string Attribute = "attribute";
75 public const string Default = "default";
76 public const string Caption = "Caption";
77 public const string Base = "base";
78 public const string Value = "value";
79 public const string DataType = "DataType";
80 public const string AutoIncrement = "AutoIncrement";
81 public const string AutoIncrementSeed = "AutoIncrementSeed";
84 public const string MsdataPrefix = "msdata";
85 public const string MsdataNamespace = "urn:schemas-microsoft-com:xml-msdata";
86 public const string MspropPrefix = "msprop";
87 public const string MspropNamespace = "urn:schemas-microsoft-com:xml-msprop";
88 public const string DiffgrPrefix = "diffgr";
89 public const string DiffgrNamespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
90 public const string TnsPrefix = "mstns";
91 public const string IsDataSet = "IsDataSet";
92 public const string Locale = "Locale";
93 public const string Ordinal = "Ordinal";
94 public const string IsNested = "IsNested";
95 public const string RelationName = "RelationName";
96 public const string ConstraintName = "ConstraintName";
97 public const string PrimaryKey = "PrimaryKey";
98 public const string ColumnName = "ColumnName";
99 public const string ReadOnly = "ReadOnly";
101 public static XmlQualifiedName QnString = new XmlQualifiedName ("string", XmlSchema.Namespace);
102 public static XmlQualifiedName QnShort = new XmlQualifiedName ("short", XmlSchema.Namespace);
103 public static XmlQualifiedName QnInt = new XmlQualifiedName ("int", XmlSchema.Namespace);
104 public static XmlQualifiedName QnLong = new XmlQualifiedName ("long", XmlSchema.Namespace);
105 public static XmlQualifiedName QnBoolean = new XmlQualifiedName ("boolean", XmlSchema.Namespace);
106 public static XmlQualifiedName QnUnsignedByte = new XmlQualifiedName ("unsignedByte", XmlSchema.Namespace);
107 public static XmlQualifiedName QnChar = new XmlQualifiedName ("char", XmlSchema.Namespace);
108 public static XmlQualifiedName QnDateTime = new XmlQualifiedName ("dateTime", XmlSchema.Namespace);
109 public static XmlQualifiedName QnDecimal = new XmlQualifiedName ("decimal", XmlSchema.Namespace);
110 public static XmlQualifiedName QnDouble = new XmlQualifiedName ("double", XmlSchema.Namespace);
111 public static XmlQualifiedName QnSbyte = new XmlQualifiedName ("byte", XmlSchema.Namespace);
112 public static XmlQualifiedName QnFloat = new XmlQualifiedName ("float", XmlSchema.Namespace);
113 public static XmlQualifiedName QnDuration = new XmlQualifiedName ("duration", XmlSchema.Namespace);
114 public static XmlQualifiedName QnUsignedShort = new XmlQualifiedName ("usignedShort", XmlSchema.Namespace);
115 public static XmlQualifiedName QnUnsignedInt = new XmlQualifiedName ("unsignedInt", XmlSchema.Namespace);
116 public static XmlQualifiedName QnUnsignedLong = new XmlQualifiedName ("unsignedLong", XmlSchema.Namespace);
117 public static XmlQualifiedName QnUri = new XmlQualifiedName ("anyURI", XmlSchema.Namespace);
118 public static XmlQualifiedName QnBase64Binary = new XmlQualifiedName ("base64Binary", XmlSchema.Namespace);
119 public static XmlQualifiedName QnXmlQualifiedName = new XmlQualifiedName ("QName", XmlSchema.Namespace);