908 references to Keywords
System.Data (908)
fx\src\data\System\Data\Common\ObjectStorage.cs (6)
308string typeName = xmlReader.GetAttribute(Keywords.MSD_INSTANCETYPE, Keywords.MSDNS); 310string xsdTypeName = xmlReader.GetAttribute(Keywords.TYPE, Keywords.XSINS); // this xsd type: Base type polymorphism 314if (xmlReader.LookupNamespace(_typename[0]) == Keywords.XSDNS) { 330if (typeName == Keywords.TYPEINSTANCE) {
fx\src\data\System\Data\Common\SQLTypes\SqlUDTStorage.cs (4)
161string typeName = xmlReader.GetAttribute(Keywords.MSD_INSTANCETYPE, Keywords.MSDNS); 163string xsdTypeName = xmlReader.GetAttribute(Keywords.MSD_INSTANCETYPE, Keywords.XSINS); // this xsd type
fx\src\data\System\Data\DataException.cs (2)
1368return _Data(Res.GetString(Res.Xml_MissingRefer, Keywords.REFER, Keywords.XSD_KEYREF, name));
fx\src\data\System\Data\DataSet.cs (87)
188string attribValue = reader.GetAttribute(Keywords.MSD_SCHEMASERIALIZATIONMODE, Keywords.MSDNS); 189if ((String.Compare(attribValue, Keywords.MSD_EXCLUDESCHEMA, StringComparison.OrdinalIgnoreCase) == 0)) { 192else if ((String.Compare(attribValue, Keywords.MSD_INCLUDESCHEMA, StringComparison.OrdinalIgnoreCase) == 0)) { 1574if (reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) { 1580if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) { 1586if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 1587throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 1595if (reader.NamespaceURI.Equals(Keywords.XSD_XMLNS_NS)) 1609if (reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) { 1615if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) { 1621if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 1622throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 1674if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) { 1676string attribValue = reader.GetAttribute(Keywords.MSD_FRAGMENTCOUNT, Keywords.MSDNS); // this must not move the position 1683while (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) { 1931if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) { 1939if (reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) { 1945if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) { 1951if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 1952throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 1962if (reader.NamespaceURI.Equals(Keywords.XSD_XMLNS_NS)) 1976if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) { 1987if (!fSchemaFound && !fDataFound && reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) { 1995if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) { 2002if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 2003throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 2005if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) { 2231if ((reader.LocalName != Keywords.DIFFGRAM) && (reader.NamespaceURI != Keywords.DFFNS)) 2240if ((reader.NamespaceURI != Keywords.DFFNS) && (reader.NamespaceURI != Keywords.MSDNS)) { 2260if (((reader.LocalName == Keywords.SQL_BEFORE) && (reader.NamespaceURI == Keywords.DFFNS)) || 2261((reader.LocalName == Keywords.MSD_ERRORS) && (reader.NamespaceURI == Keywords.DFFNS))) 2364if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) { 2376if (reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) { 2389if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) { 2401if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 2402throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 2411if (reader.NamespaceURI.Equals(Keywords.XSD_XMLNS_NS)) 2425if (reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) { 2440if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) { 2454if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) { 2465if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 2466throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 3119const string xsinill = Keywords.XSI + ":" + Keywords.XSI_NIL; 3128const string useDataSetSchemaOnlyString = Keywords.MSD + ":" + Keywords.USEDATASETSCHEMAONLY; 3139throw ExceptionBuilder.InvalidAttributeValue(Keywords.USEDATASETSCHEMAONLY, _useDataSetSchemaOnly); 3143const string udtIsWrappedString = Keywords.MSD + ":" + Keywords.UDTCOLUMNVALUEWRAPPED; 3155throw ExceptionBuilder.InvalidAttributeValue(Keywords.UDTCOLUMNVALUEWRAPPED, _udtIsWrappedString); 3293elem.RefName = new XmlQualifiedName(Keywords.XSD_SCHEMA, Keywords.XSDNS); 3307any.Namespace = Keywords.DFFNS; 3336NameValueCollection settings = (NameValueCollection)PrivilegedConfigurationManager.GetSection(Keywords.WS_DATASETFULLQNAME); 3339string[] values = settings.GetValues(Keywords.WS_VERSION); 3682if (a.LocalName == "IsDataSet" && a.NamespaceURI == Keywords.MSDNS) {
fx\src\data\System\Data\DataTable.cs (55)
5102if (reader.AttributeCount == 0 || (reader.LocalName == Keywords.DIFFGRAM && reader.NamespaceURI == Keywords.DFFNS)) { 5109(reader.Prefix == Keywords.XMLNS) && 5110(reader.NamespaceURI == Keywords.XSD_XMLNS_NS)) 5165if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) { 5182if (reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI==Keywords.XDRNS) { 5190if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI==Keywords.XSDNS) { 5197if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) { 5205throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 5216if (reader.NamespaceURI.Equals(Keywords.XSD_XMLNS_NS)) 5229if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) { 5240if (!fSchemaFound && !fDataFound && reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI==Keywords.XDRNS) { 5248if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI==Keywords.XSDNS) { 5255if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) { 5262throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 5265if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) { 5374if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) { 5394if (reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI==Keywords.XDRNS) { 5406if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI==Keywords.XSDNS) { 5417if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) { 5424throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 5434if (reader.NamespaceURI.Equals(Keywords.XSD_XMLNS_NS)) 5448if (reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI==Keywords.XDRNS) { 5461if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI==Keywords.XSDNS) { 5473if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) { 5491if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) { 5498throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 5603if ((reader.LocalName != Keywords.DIFFGRAM) && (reader.NamespaceURI != Keywords.DFFNS)) 5613if ((reader.NamespaceURI != Keywords.DFFNS) && (reader.NamespaceURI != Keywords.MSDNS)) { 5625if (((reader.LocalName == Keywords.SQL_BEFORE) && (reader.NamespaceURI == Keywords.DFFNS)) || 5626((reader.LocalName == Keywords.MSD_ERRORS) && (reader.NamespaceURI == Keywords.DFFNS))) 5673while (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI==Keywords.XSDNS) { 5927any.Namespace = Keywords.DFFNS;
fx\src\data\System\Data\SimpleType.cs (26)
96if ((ancestor != null) && (ancestor.QualifiedName.Namespace != Keywords.XSDNS)) { // I'm assuming that built-in types don't have a name! 104if (content.BaseTypeName.Namespace == Keywords.XSDNS) 159string tempStr = XSDSchema.GetMsdataAttribute(node, Keywords.TARGETNAMESPACE); 236return Keywords.XSD_PREFIXCOLON + name; 248XmlElement typeNode = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SIMPLETYPE, Keywords.XSDNS); 252typeNode.SetAttribute(Keywords.NAME, name); 254typeNode.SetAttribute(Keywords.TARGETNAMESPACE, Keywords.MSDNS, this.Namespace); 257XmlElement type = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_RESTRICTION, Keywords.XSDNS); 264type.SetAttribute(Keywords.BASE, (prefix +":"+ baseSimpleType.Name)); 267type.SetAttribute(Keywords.BASE, baseSimpleType.Name); 271type.SetAttribute(Keywords.BASE, baseSimpleType.Name); 275type.SetAttribute(Keywords.BASE, QualifiedName(baseType)); // has to be xs:SomePrimitiveType 279type.SetAttribute(Keywords.BASE, (baseSimpleType != null) ? baseSimpleType.Name : QualifiedName(baseType)); 284constraint = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_LENGTH, Keywords.XSDNS); 285constraint.SetAttribute(Keywords.VALUE, length.ToString(CultureInfo.InvariantCulture)); 289constraint = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_MAXLENGTH, Keywords.XSDNS); 290constraint.SetAttribute(Keywords.VALUE, maxLength.ToString(CultureInfo.InvariantCulture));
fx\src\data\System\Data\XDRSchema.cs (91)
40_schemaName = schemaRoot.GetAttribute(Keywords.NAME); 44Debug.Assert(FEqualIdentity(schemaRoot, Keywords.XDR_SCHEMA, Keywords.XDRNS), "Illegal node"); 60if (FEqualIdentity(child, Keywords.XDR_ELEMENTTYPE, Keywords.XDRNS)) { 76Debug.Assert(FEqualIdentity(node, Keywords.XDR_ELEMENT, Keywords.XDRNS) || 77FEqualIdentity(node, Keywords.XDR_SCHEMA, Keywords.XDRNS) || 78FEqualIdentity(node, Keywords.XDR_ATTRIBUTE, Keywords.XDRNS) || 79FEqualIdentity(node, Keywords.XDR_ELEMENTTYPE, Keywords.XDRNS), 82if (FEqualIdentity(node, Keywords.XDR_ELEMENTTYPE, Keywords.XDRNS)) 85strType = node.GetAttribute(Keywords.TYPE); 87if (FEqualIdentity(node, Keywords.XDR_ELEMENT, Keywords.XDRNS) || 88FEqualIdentity(node, Keywords.XDR_ATTRIBUTE, Keywords.XDRNS)) { 97if ((FEqualIdentity(vn, Keywords.XDR_ELEMENTTYPE, Keywords.XDRNS) && 98FEqualIdentity(node, Keywords.XDR_ELEMENT, Keywords.XDRNS)) || 99(FEqualIdentity(vn, Keywords.XDR_ATTRIBUTETYPE, Keywords.XDRNS) && 100FEqualIdentity(node, Keywords.XDR_ATTRIBUTE, Keywords.XDRNS))) { 101if (vn is XmlElement && ((XmlElement)vn).GetAttribute(Keywords.NAME) == strType) 128Debug.Assert(FEqualIdentity(node, Keywords.XDR_ELEMENTTYPE, Keywords.XDRNS), 131string value = node.GetAttribute(Keywords.CONTENT); 133string type = node.GetAttribute(Keywords.DT_TYPE, Keywords.DTNS); 140if (value == Keywords.EMPTY || value == Keywords.ELTONLY || value == Keywords.ELEMENTONLY || value == Keywords.MIXED) 142if (value == Keywords.TEXTONLY) 156if (FEqualIdentity(n, Keywords.XDR_ELEMENT, Keywords.XDRNS) || 157FEqualIdentity(n, Keywords.XDR_ATTRIBUTE, Keywords.XDRNS)) 161if (FEqualIdentity(node, Keywords.XDR_ELEMENT, Keywords.XDRNS)) { 173Debug.Assert(FEqualIdentity(node, Keywords.XDR_ELEMENTTYPE, Keywords.XDRNS) || 174FEqualIdentity(node, Keywords.XDR_ELEMENT, Keywords.XDRNS), "Invalid node type"); 180string occurs = node.GetAttribute(Keywords.MINOCCURS); 187occurs = node.GetAttribute(Keywords.MAXOCCURS); 290throw ExceptionBuilder.MissingAttribute("type", Keywords.DT_VALUES); 297if (FEqualIdentity(node, Keywords.XDR_ELEMENTTYPE, Keywords.XDRNS) || 298FEqualIdentity(node, Keywords.XDR_ATTRIBUTETYPE, Keywords.XDRNS)) { 299instanceName = node.GetAttribute(Keywords.NAME); 301throw ExceptionBuilder.MissingAttribute("Element", Keywords.NAME); 305instanceName = node.GetAttribute(Keywords.TYPE); 307throw ExceptionBuilder.MissingAttribute("Element", Keywords.TYPE); 314Debug.Assert(FEqualIdentity(node, Keywords.XDR_ELEMENT, Keywords.XDRNS) || 315FEqualIdentity(node, Keywords.XDR_ATTRIBUTE, Keywords.XDRNS), "Illegal node type"); 327string strUse = node.GetAttribute(Keywords.USE); 333string strRef = node.GetAttribute(Keywords.REF); 342if (FEqualIdentity(node, Keywords.XDR_ATTRIBUTE, Keywords.XDRNS)) 346if (FEqualIdentity(node, Keywords.XDR_ELEMENT, Keywords.XDRNS)) { 364strType = node.GetAttribute(Keywords.TYPE); 368strType = typeNode.GetAttribute(Keywords.DT_TYPE, Keywords.DTNS); 369strValues = typeNode.GetAttribute(Keywords.DT_VALUES, Keywords.DTNS); 404bool isAttribute = FEqualIdentity(node, Keywords.XDR_ATTRIBUTE, Keywords.XDRNS); 411strDefault = node.GetAttribute(Keywords.DEFAULT); 428if (node.Attributes[i].NamespaceURI == Keywords.MSDNS) { 437String targetNamespace = node.GetAttribute(Keywords.TARGETNAMESPACE); 460string occurs = elNode.GetAttribute(Keywords.MINOCCURS); 473occurs = elNode.GetAttribute(Keywords.MAXOCCURS); 476int bZeroOrMore = string.Compare(occurs, Keywords.STAR , StringComparison.Ordinal); 489throw ExceptionBuilder.AttributeValues("maxOccurs", "1", Keywords.STAR); 492throw ExceptionBuilder.AttributeValues("maxOccurs", "1", Keywords.STAR); 509if (FEqualIdentity(n, Keywords.XDR_ELEMENT, Keywords.XDRNS)) { 519if (FEqualIdentity(n, Keywords.XDR_ATTRIBUTE, Keywords.XDRNS) || 520FEqualIdentity(n, Keywords.XDR_ELEMENT, Keywords.XDRNS)) {
fx\src\data\System\Data\XmlDataLoader.cs (36)
217if (ns.Equals(Keywords.XSD_XMLNS_NS)) 358if (XMLSchema.GetBooleanAttribute(rowElement, Keywords.XSI_NIL, Keywords.XSINS, false) && Common.ADP.IsEmpty(text) ) 386if (XMLSchema.GetBooleanAttribute(e, Keywords.XSI_NIL, Keywords.XSINS, false) && Common.ADP.IsEmpty(text) ) 455if (parentElement.LocalName == Keywords.XSD_SCHEMA && parentElement.NamespaceURI == Keywords.XSDNS || 456parentElement.LocalName == Keywords.SQL_SYNC && parentElement.NamespaceURI == Keywords.UPDGNS || 457parentElement.LocalName == Keywords.XDR_SCHEMA && parentElement.NamespaceURI == Keywords.XDRNS) 548XSD_XMLNS_NS = nameTable.Add(Keywords.XSD_XMLNS_NS); 549XDR_SCHEMA = nameTable.Add(Keywords.XDR_SCHEMA); 550XDRNS = nameTable.Add(Keywords.XDRNS); 551SQL_SYNC = nameTable.Add(Keywords.SQL_SYNC); 552UPDGNS = nameTable.Add(Keywords.UPDGNS); 553XSD_SCHEMA = nameTable.Add(Keywords.XSD_SCHEMA); 554XSDNS = nameTable.Add(Keywords.XSDNS); 556DFFNS = nameTable.Add(Keywords.DFFNS); 557MSDNS = nameTable.Add(Keywords.MSDNS); 558DIFFID = nameTable.Add(Keywords.DIFFID); 559HASCHANGES = nameTable.Add(Keywords.HASCHANGES); 560ROWORDER = nameTable.Add(Keywords.ROWORDER); 877if ( dataReader.NamespaceURI == Keywords.DFFNS ) { 879case Keywords.DIFFID: // Is it a diffgeam ID ? 882case Keywords.HASCHANGES: // Has chages attribute ? 885case Keywords.HASERRORS: // Has errors attribute ? 891else if ( dataReader.NamespaceURI == Keywords.MSDNS ) { 892if ( dataReader.LocalName == Keywords.ROWORDER ) { 1023if ((hasChanges == Keywords.MODIFIED) || hasErrors) { 1087xsiNilString = dataReader.GetAttribute(Keywords.XSI_NIL, Keywords.XSINS); 1099xsiTypeString = dataReader.GetAttribute(Keywords.TYPE, Keywords.XSINS); 1100typeName = dataReader.GetAttribute(Keywords.MSD_INSTANCETYPE, Keywords.MSDNS);
fx\src\data\System\Data\XMLDiffLoader.cs (41)
32while (reader.LocalName == Keywords.SQL_BEFORE && reader.NamespaceURI==Keywords.DFFNS) { 37while (reader.LocalName == Keywords.MSD_ERRORS && reader.NamespaceURI==Keywords.DFFNS) { 39Debug.Assert(reader.LocalName == Keywords.MSD_ERRORS && reader.NamespaceURI==Keywords.DFFNS, "something fishy"); 61while (reader.LocalName == Keywords.SQL_BEFORE && reader.NamespaceURI==Keywords.DFFNS) { 66while (reader.LocalName == Keywords.MSD_ERRORS && reader.NamespaceURI==Keywords.DFFNS) { 68Debug.Assert(reader.LocalName == Keywords.MSD_ERRORS && reader.NamespaceURI==Keywords.DFFNS, "something fishy"); 95diffId = ssync.GetAttribute(Keywords.DIFFID, Keywords.DFFNS); 96bool hasErrors = (bool) (ssync.GetAttribute(Keywords.HASERRORS, Keywords.DFFNS) == Keywords.TRUE); 143diffId = ssync.GetAttribute(Keywords.DIFFID, Keywords.DFFNS); 144bool hasErrors = (bool) (ssync.GetAttribute(Keywords.HASERRORS, Keywords.DFFNS) == Keywords.TRUE); 184string diffId = ssync.GetAttribute(Keywords.DIFFID, Keywords.DFFNS); 186string rowError = ssync.GetAttribute(Keywords.MSD_ERROR, Keywords.DFFNS); 196string colError = ssync.GetAttribute(Keywords.MSD_ERROR, Keywords.DFFNS); 221string diffId = ssync.GetAttribute(Keywords.DIFFID, Keywords.DFFNS); 233string rowError = ssync.GetAttribute(Keywords.MSD_ERROR, Keywords.DFFNS); 244string colError = ssync.GetAttribute(Keywords.MSD_ERROR, Keywords.DFFNS); 293value = row.GetAttribute(Keywords.ROWORDER, Keywords.MSDNS); 309value = row.GetAttribute("hidden"+col.EncodedColumnName, Keywords.MSDNS); 357bool isPolymorphism = (column.DataType == typeof(Object)|| (row.GetAttribute(Keywords.MSD_INSTANCETYPE, Keywords.MSDNS) != null) || 358(row.GetAttribute(Keywords.TYPE, Keywords.XSINS) != null)) ;
fx\src\data\System\Data\xmlsaver.cs (449)
92s = Keywords.MSD_REL_PREFIX + s; 95s = Keywords.MSD_FK_PREFIX + s; 97node.SetAttribute(XmlConvert.EncodeLocalName(s), Keywords.MSPROPNS, v); 179root.SetAttribute(Keywords.MSD_DATATYPE, Keywords.MSDNS, col.DataType.FullName); 181else if ((dt.Length == 0) || bImplementsInullable || ((dt == Keywords.XSD_ANYTYPE) && (col.XmlDataType != Keywords.XSD_ANYTYPE))|| (col.DataType == typeof(DateTimeOffset))) { 197root.SetAttribute(pd.Name, Keywords.MSDNS, textValue); 239return Keywords.XSD_ANYTYPE; //"integer"; 247return Keywords.XSD_ANYTYPE; 339rootSchema.SetAttribute(Keywords.TARGETNAMESPACE, targetNamespace ); 340rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, targetNamespace ); 344rootSchema.SetAttribute(Keywords.XMLNS, targetNamespace); 345rootSchema.SetAttribute(Keywords.XMLNS_XSD, Keywords.XSDNS); 346rootSchema.SetAttribute(Keywords.XMLNS_MSDATA, Keywords.MSDNS); 348rootSchema.SetAttribute(Keywords.XMLNS_MSPROP, Keywords.MSPROPNS); 352rootSchema.SetAttribute(Keywords.XSD_ATTRIBUTEFORMDEFAULT, Keywords.QUALIFIED); 353rootSchema.SetAttribute(Keywords.XSD_ELEMENTFORMDEFAULT, Keywords.QUALIFIED); 472dsElement = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 502XmlElement rootSchema = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SCHEMA, Keywords.XSDNS); 508rootSchema.SetAttribute(Keywords.XSDID, XmlConvert.EncodeLocalName(_ds.DataSetName)); 511rootSchema.SetAttribute(Keywords.XSDID, XmlConvert.EncodeLocalName("NewDataSet")); 537rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, _ds.Namespace ); 588constraintSeparator = xd.CreateElement(Keywords.XSD_PREFIX, "SHOULDNOTBEHERE", Keywords.XSDNS); 617el.SetAttribute(Keywords.MINOCCURS, top[i].MinOccurs.ToString(CultureInfo.InvariantCulture)); 620el.SetAttribute(Keywords.MAXOCCURS, Keywords.ZERO_OR_MORE); 623el.SetAttribute(Keywords.MAXOCCURS, top[i].MaxOccurs.ToString(CultureInfo.InvariantCulture)); 629XmlElement node = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 631node.SetAttribute(Keywords.REF, top[i].EncodedTableName); 633node.SetAttribute(Keywords.REF, ((string)prefixes[top[i].Namespace])+':'+top[i].EncodedTableName); 641AppendChildWithoutRef(rootSchema, top[i].Namespace, el, Keywords.XSD_ELEMENT); 642XmlElement node = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 643node.SetAttribute(Keywords.REF, ((string)prefixes[top[i].Namespace])+':'+top[i].EncodedTableName); 676nodeAnn = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ANNOTATION, Keywords.XSDNS); 679nodeApp = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_APPINFO, Keywords.XSDNS); 698XmlElement _import = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_IMPORT, Keywords.XSDNS); 699_import.SetAttribute(Keywords.XSD_NAMESPACE, ns); 701_import.SetAttribute(Keywords.XSD_SCHEMALOCATION, fileName + "_" + prefixes[ns] + ".xsd"); 706rootSchema.SetAttribute(Keywords.MSD_FRAGMENTCOUNT, Keywords.MSDNS, namespaces.Count.ToString(CultureInfo.InvariantCulture)); 755XmlElement _import2 = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_IMPORT, Keywords.XSDNS); 756_import2.SetAttribute(Keywords.XSD_NAMESPACE, imp_ns); 761_import2.SetAttribute(Keywords.XSD_SCHEMALOCATION, fileName + fileExt); // for the dataset namespace don't append anything 763_import2.SetAttribute(Keywords.XSD_SCHEMALOCATION, fileName + "_" + prefix +".xsd"); 802dsElement = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 814XmlElement rootSchema = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SCHEMA, Keywords.XSDNS); 820constraintSeparator = xd.CreateElement(Keywords.XSD_PREFIX, "SHOULDNOTBEHERE", Keywords.XSDNS); 832rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, _ds.Namespace ); 843rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, dt.Namespace ); 868dsElement.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(dataSet.DataSetName)); 869dsElement.SetAttribute(Keywords.MSD_ISDATASET, Keywords.MSDNS, Keywords.TRUE); 871dsElement.SetAttribute(Keywords.MSD_MAINDATATABLE, Keywords.MSDNS, XmlConvert.EncodeLocalName(((dt.Namespace.Length == 0)?dt.TableName : (dt.Namespace + ":" + dt.TableName)))); 875dsElement.SetAttribute(Keywords.MSD_CASESENSITIVE, Keywords.MSDNS, Keywords.TRUE); 878dsElement.SetAttribute(Keywords.MSD_LOCALE, Keywords.MSDNS, dataSet.Locale.ToString()); 881dsElement.SetAttribute(Keywords.MSD_USECURRENTLOCALE, Keywords.MSDNS, Keywords.TRUE); 886dsElement.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName("NewDataSet")); 887dsElement.SetAttribute(Keywords.MSD_ISDATASET, Keywords.MSDNS, Keywords.TRUE); 888dsElement.SetAttribute(Keywords.MSD_MAINDATATABLE, Keywords.MSDNS, XmlConvert.EncodeLocalName(((dt.Namespace.Length == 0)?dt.TableName : (dt.Namespace + ":" + dt.TableName)))); 891dsElement.SetAttribute(Keywords.MSD_CASESENSITIVE, Keywords.MSDNS, Keywords.TRUE); 894dsElement.SetAttribute(Keywords.MSD_LOCALE, Keywords.MSDNS, dt.Locale.ToString()); 897dsElement.SetAttribute(Keywords.MSD_USECURRENTLOCALE, Keywords.MSDNS, Keywords.TRUE); 902XmlElement type = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_COMPLEXTYPE, Keywords.XSDNS); 904XmlElement compositor = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_CHOICE, Keywords.XSDNS); 905compositor.SetAttribute(Keywords.MINOCCURS, Keywords.ZERO_DIGIT); 906compositor.SetAttribute(Keywords.MAXOCCURS, Keywords.ZERO_OR_MORE); 965xw.WriteAttributeString(Keywords.MSD, Keywords.MSD_SCHEMASERIALIZATIONMODE, Keywords.MSDNS, Keywords.MSD_EXCLUDESCHEMA); 972XmlElement root = dc.CreateElement(Keywords.MSD, Keywords.MSD_RELATION, Keywords.MSDNS); 975root.SetAttribute( Keywords.NAME, XmlConvert.EncodeLocalName( rel.RelationName )); 977root.SetAttribute(Keywords.MSD_PARENT, Keywords.MSDNS, rel.ParentKey.Table.EncodedTableName); 978root.SetAttribute(Keywords.MSD_CHILD, Keywords.MSDNS, rel.ChildKey.Table.EncodedTableName); 981root.SetAttribute( Keywords.MSD_PARENTTABLENS, Keywords.MSDNS, rel.ParentKey.Table.Namespace); 984root.SetAttribute( Keywords.MSD_CHILDTABLENS, Keywords.MSDNS, rel.ChildKey.Table.Namespace); 994builder.Append(Keywords.MSD_KEYFIELDSEP).Append(key[i].EncodedColumnName); 998root.SetAttribute( Keywords.MSD_PARENTKEY, Keywords.MSDNS, text); 1011builder.Append(Keywords.MSD_KEYFIELDSEP).Append(key[i].EncodedColumnName); 1015root.SetAttribute( Keywords.MSD_CHILDKEY, Keywords.MSDNS, text); 1024if(e.GetAttribute(Keywords.NAME) == name) { 1035schemaEl = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SCHEMA, Keywords.XSDNS); 1038string prefix = Keywords.APP+Convert.ToString(++prefixCount, CultureInfo.InvariantCulture); 1049string keyword = Keywords.TYPE; 1051keyword = Keywords.BASE; 1125typeName = Keywords.XSD_ANYTYPE; 1138root.SetAttribute(Keywords.MSD_DATATYPE, Keywords.MSDNS, col.DataType.FullName); 1140else if ((dt.Length == 0) || col.ImplementsINullable || ((dt == Keywords.XSD_ANYTYPE) && (col.XmlDataType != Keywords.XSD_ANYTYPE))) { 1151root.SetAttribute("ReadOnly", Keywords.MSDNS, Keywords.TRUE); 1154root.SetAttribute("Expression", Keywords.MSDNS, col.Expression); 1157root.SetAttribute("AutoIncrement", Keywords.MSDNS, Keywords.TRUE); 1161root.SetAttribute("AutoIncrementSeed", Keywords.MSDNS, col.AutoIncrementSeed.ToString(CultureInfo.InvariantCulture)); 1164root.SetAttribute("AutoIncrementStep", Keywords.MSDNS, col.AutoIncrementStep.ToString(CultureInfo.InvariantCulture)); 1167root.SetAttribute("Caption", Keywords.MSDNS, col.Caption); 1170root.SetAttribute("Prefix", Keywords.MSDNS, col.Prefix); 1173root.SetAttribute("DateTimeMode", Keywords.MSDNS, col.DateTimeMode.ToString()); 1206String refString = (col.ColumnMapping != MappingType.Element) ? Keywords.XSD_ATTRIBUTE : Keywords.XSD_ELEMENT; 1207root = dc.CreateElement(Keywords.XSD_PREFIX, refString, Keywords.XSDNS); 1210root.SetAttribute( Keywords.NAME, col.EncodedColumnName); 1217root.SetAttribute( Keywords.FORM, Keywords.UNQUALIFIED); 1231root.SetAttribute(Keywords.MSD_ALLOWDBNULL, Keywords.MSDNS, Keywords.FALSE); 1235root.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, (bool)(col.DefaultValue)? Keywords.TRUE : Keywords.FALSE); 1239root.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, col.ConvertObjectToXml(col.DefaultValue)); 1248root.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, (bool)(col.DefaultValue)? Keywords.TRUE : Keywords.FALSE); 1251root.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, col.ConvertObjectToXml(col.DefaultValue)); 1256root.SetAttribute(Keywords.DEFAULT, (bool)(col.DefaultValue)? Keywords.TRUE : Keywords.FALSE); 1260root.SetAttribute(Keywords.DEFAULT, col.ConvertObjectToXml(col.DefaultValue)); 1269root.SetAttribute( Keywords.TARGETNAMESPACE, Keywords.MSDNS, col.Namespace); 1278root = _dc.CreateElement(Keywords.XSD_PREFIX, refString, Keywords.XSDNS); 1279root.SetAttribute( Keywords.REF, prefixes[ col.Namespace]+":"+ col.EncodedColumnName); 1293root.SetAttribute(Keywords.USE, Keywords.REQUIRED); 1297root.SetAttribute(Keywords.USE, Keywords.PROHIBITED); 1301root.SetAttribute(Keywords.MINOCCURS, minOccurs.ToString(CultureInfo.InvariantCulture)); 1304root.SetAttribute(Keywords.MSD_ORDINAL,Keywords.MSDNS, col.Ordinal.ToString(CultureInfo.InvariantCulture)); 1330if (FindTypeNode(schNode, el.GetAttribute(Keywords.NAME)) == null) 1344if (XSDSchema.FEqualIdentity(child, Keywords.XSD_ELEMENT, Keywords.XSDNS) || 1345XSDSchema.FEqualIdentity(child, Keywords.XSD_ATTRIBUTE, Keywords.XSDNS) || 1346XSDSchema.FEqualIdentity(child, Keywords.XSD_COMPLEXTYPE, Keywords.XSDNS) || 1347XSDSchema.FEqualIdentity(child, Keywords.XSD_SIMPLETYPE, Keywords.XSDNS)) { 1348if (child.GetAttribute(Keywords.NAME) == strType) 1474XmlElement root = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 1479root.SetAttribute( Keywords.TARGETNAMESPACE, Keywords.MSDNS, table.Namespace); 1482root.SetAttribute( Keywords.NAME, table.EncodedTableName ); 1510root.SetAttribute( Keywords.FORM, Keywords.UNQUALIFIED); 1518root.SetAttribute(Keywords.MSD_CASESENSITIVE, Keywords.MSDNS, table.CaseSensitive.ToString(CultureInfo.InvariantCulture)); 1521root.SetAttribute(Keywords.MSD_LOCALE, Keywords.MSDNS, table.Locale.ToString()); 1554_typeName = Keywords.XSD_ANYTYPE; 1557root.SetAttribute(Keywords.TYPE, XSDSchema.QualifiedName(_typeName)); 1562XmlElement type = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_COMPLEXTYPE, Keywords.XSDNS); 1576type.SetAttribute(Keywords.NAME, table.TypeName.Name); 1584root.SetAttribute( Keywords.TYPE, NewDiffgramGen.QualifiedName((string)prefixes[table.TypeName.Namespace], table.TypeName.Name) ); 1594XmlElement sc = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SIMPLECONTENT , Keywords.XSDNS); 1603root.SetAttribute(Keywords.XSD_NILLABLE, String.Empty, Keywords.TRUE); 1607sc.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, colTxt.ConvertObjectToXml(colTxt.DefaultValue)); 1610sc.SetAttribute(Keywords.MSD_COLUMNNAME, Keywords.MSDNS, colTxt.ColumnName); 1611sc.SetAttribute(Keywords.MSD_ORDINAL, Keywords.MSDNS, colTxt.Ordinal.ToString(CultureInfo.InvariantCulture)); 1614XmlElement ext = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_EXTENSION, Keywords.XSDNS); 1620compositor = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SEQUENCE, Keywords.XSDNS); 1656NestedTable = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 1658NestedTable.SetAttribute( Keywords.REF, table.EncodedTableName ); 1661NestedTable = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 1662NestedTable.SetAttribute( Keywords.REF, childTable.EncodedTableName); 1668NestedTable.SetAttribute(Keywords.MINOCCURS , "0"); 1669NestedTable.SetAttribute(Keywords.MAXOCCURS , Keywords.ZERO_OR_MORE); 1678NestedTable = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 1679NestedTable.SetAttribute( Keywords.REF, ((string)prefixes[childTable.Namespace])+':'+childTable.EncodedTableName); 1686XmlElement nodeAnn = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ANNOTATION, Keywords.XSDNS); 1689XmlElement nodeApp = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_APPINFO, Keywords.XSDNS); 1707String xpathprefix = (_ds != null)? (_ds.Namespace.Length != 0 ? Keywords.MSTNS_PREFIX : String.Empty) : String.Empty; 1728constraint = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_UNIQUE, Keywords.XSDNS); 1731constraint.SetAttribute( Keywords.MSD_TABLENS, Keywords.MSDNS, table.Namespace); 1733constraint.SetAttribute( Keywords.NAME, XmlConvert.EncodeLocalName( unique.SchemaName )); 1736constraint.SetAttribute(Keywords.MSD_CONSTRAINTNAME, Keywords.MSDNS, unique.ConstraintName); 1741selector = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SELECTOR, Keywords.XSDNS); 1742selector.SetAttribute(Keywords.XSD_XPATH, ".//"+xpathprefix+table.EncodedTableName); 1748constraint.SetAttribute(Keywords.MSD_PRIMARYKEY, Keywords.MSDNS, Keywords.TRUE); 1769field = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_FIELD, Keywords.XSDNS); 1770field.SetAttribute(Keywords.XSD_XPATH, encodedName.ToString()); 1799constraint = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_KEY, Keywords.XSDNS); 1800constraint.SetAttribute( Keywords.NAME, XmlConvert.EncodeLocalName( foreign.SchemaName )); 1803constraint.SetAttribute( Keywords.MSD_TABLENS, Keywords.MSDNS, table.Namespace); 1805selector = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SELECTOR, Keywords.XSDNS); 1806selector.SetAttribute(Keywords.XSD_XPATH, ".//"+xpathprefix+ foreign.RelatedTable.EncodedTableName); 1828field = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_FIELD, Keywords.XSDNS); 1829field.SetAttribute(Keywords.XSD_XPATH, encodedName.ToString()); 1838constraint = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_KEYREF, Keywords.XSDNS); 1840constraint.SetAttribute( Keywords.NAME,XmlConvert.EncodeLocalName( foreign.SchemaName )); 1843constraint.SetAttribute (Keywords.MSD_TABLENS, Keywords.MSDNS, foreign.Table.Namespace); 1846constraint.SetAttribute( Keywords.REFER, XmlConvert.EncodeLocalName( foreign.SchemaName )); 1848constraint.SetAttribute( Keywords.REFER, XmlConvert.EncodeLocalName( _constraint.SchemaName )); 1853constraint.SetAttribute(Keywords.MSD_CONSTRAINTNAME, Keywords.MSDNS, foreign.ConstraintName); 1856constraint.SetAttribute(Keywords.MSD_CONSTRAINTONLY , Keywords.MSDNS, Keywords.TRUE ); 1859constraint.SetAttribute(Keywords.MSD_ISNESTED, Keywords.MSDNS, Keywords.TRUE); 1863constraint.SetAttribute( Keywords.MSD_RELATIONNAME , Keywords.MSDNS, XmlConvert.EncodeLocalName( rel.RelationName )); 1867selector = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SELECTOR, Keywords.XSDNS); 1868selector.SetAttribute(Keywords.XSD_XPATH, ".//"+xpathprefix+table.EncodedTableName); 1873constraint.SetAttribute(Keywords.MSD_ACCEPTREJECTRULE, Keywords.MSDNS, 1877constraint.SetAttribute( Keywords.MSD_UPDATERULE, Keywords.MSDNS, TranslateRule(foreign.UpdateRule) ); 1880constraint.SetAttribute( Keywords.MSD_DELETERULE, Keywords.MSDNS, TranslateRule(foreign.DeleteRule) ); 1902field = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_FIELD, Keywords.XSDNS); 1903field.SetAttribute(Keywords.XSD_XPATH, encodedName.ToString()); 1938root.SetAttribute(Keywords.MSD_DATATYPE, Keywords.MSDNS, result); 2039_xmlw.WriteStartElement(Keywords.DFF, Keywords.DIFFGRAM, Keywords.DFFNS); 2040_xmlw.WriteAttributeString(Keywords.XMLNS, Keywords.MSD, null, Keywords.MSDNS); 2110_xmlw.WriteStartElement( Keywords.DFF, Keywords.MSD_ERRORS, Keywords.DFFNS ); 2114_xmlw.WriteAttributeString( Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, row.Table.TableName+row.rowID.ToString(CultureInfo.InvariantCulture)); 2115_xmlw.WriteAttributeString( Keywords.DFF, Keywords.MSD_ERROR, Keywords.DFFNS, row.RowError); 2130_xmlw.WriteStartElement( Keywords.DFF, Keywords.MSD_ERRORS, Keywords.DFFNS ); 2135_xmlw.WriteAttributeString( Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, row.Table.TableName+row.rowID.ToString(CultureInfo.InvariantCulture)); 2142_xmlw.WriteAttributeString( Keywords.DFF, Keywords.MSD_ERROR, Keywords.DFFNS, error); 2160_xmlw.WriteStartElement( Keywords.DFF, Keywords.SQL_BEFORE, Keywords.DFFNS); 2184_xmlw.WriteAttributeString( Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, rowIDString); 2187_xmlw.WriteAttributeString( Keywords.DFF, Keywords.HASERRORS, Keywords.DFFNS, Keywords.TRUE); 2190_xmlw.WriteAttributeString( Keywords.DFF, Keywords.DIFFPID, Keywords.DFFNS, parentId); 2192_xmlw.WriteAttributeString( Keywords.MSD, Keywords.ROWORDER, Keywords.MSDNS, rowsOrder[row].ToString()); 2212_xmlw.WriteAttributeString(Keywords.XSI, Keywords.XSI_NIL, Keywords.XSINS, Keywords.TRUE); 2224_xmlw.WriteAttributeString(Keywords.MSD, "hidden"+col.EncodedColumnName, Keywords.MSDNS, value); 2244_xmlw.WriteAttributeString(Keywords.XML, Keywords.SPACE, Keywords.XML_XMLNS, Keywords.PRESERVE); 2254_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, DataStorage.GetQualifiedName(valuesType)); 2275_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, valuesType.FullName); 2278_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, Keywords.TYPEINSTANCE); 2281string xsdTypeName = Keywords.XSD_PREFIXCOLON+ XmlTreeGen.XmlDataTypeName(valuesType); 2282_xmlw.WriteAttributeString(Keywords.XSI, Keywords.TYPE, Keywords.XSINS, xsdTypeName); 2283_xmlw.WriteAttributeString (Keywords.XMLNS_XSD, Keywords.XSDNS); 2433_xmlw.WriteStartElement(prefix, Keywords.DOCUMENTELEMENT, ( _dt.Namespace == null) ? "":_dt.Namespace); 2478_xmlw.WriteStartElement(prefix, Keywords.DOCUMENTELEMENT, _dt.Namespace); 2482_xmlw.WriteStartElement(prefix, Keywords.DOCUMENTELEMENT, _ds.Namespace); 2489_xmlw.WriteAttributeString(Keywords.XMLNS, Keywords.XSI, Keywords.XSD_XMLNS_NS, Keywords.XSINS); 2545_xmlw.WriteAttributeString( Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, row.Table.TableName+row.rowID.ToString(CultureInfo.InvariantCulture)); 2547_xmlw.WriteAttributeString( Keywords.MSD, Keywords.ROWORDER, Keywords.MSDNS, rowsOrder[row].ToString()); 2550_xmlw.WriteAttributeString( Keywords.DFF, Keywords.HASCHANGES, Keywords.DFFNS, Keywords.INSERTED); 2553_xmlw.WriteAttributeString( Keywords.DFF, Keywords.HASCHANGES, Keywords.DFFNS, Keywords.MODIFIED); 2557_xmlw.WriteAttributeString( Keywords.DFF, Keywords.HASERRORS, Keywords.DFFNS, Keywords.TRUE); 2587_xmlw.WriteAttributeString(Keywords.MSD, "hidden"+col.EncodedColumnName, Keywords.MSDNS, col.ConvertObjectToXml(value)); 2601_xmlw.WriteAttributeString(Keywords.XSI, Keywords.XSI_NIL, Keywords.XSINS, Keywords.TRUE); 2617_xmlw.WriteAttributeString(Keywords.XML, Keywords.SPACE, Keywords.XML_XMLNS, Keywords.PRESERVE); 2627_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, DataStorage.GetQualifiedName(valuesType)); 2646_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, valuesType.FullName); 2649_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, Keywords.TYPEINSTANCE); 2652string xsdTypeName = Keywords.XSD_PREFIXCOLON+ XmlTreeGen.XmlDataTypeName(valuesType); 2653_xmlw.WriteAttributeString(Keywords.XSI, Keywords.TYPE, Keywords.XSINS, xsdTypeName); 2654_xmlw.WriteAttributeString (Keywords.XMLNS_XSD, Keywords.XSDNS);
fx\src\data\System\Data\XMLSchema.cs (101)
42if (attrs[i].NamespaceURI == Keywords.MSDNS) { 86if ((value == Keywords.TRUE) || (value == Keywords.ONE_DIGIT)){ 89if ((value == Keywords.FALSE) || (value == Keywords.ZERO_DIGIT)){ 188MSDATATargetNamespace = XSDSchema.GetMsdataAttribute((XmlSchemaType)item, Keywords.TARGETNAMESPACE); 230return Keywords.XSD_PREFIXCOLON + name; 241if (attrs[i].NamespaceURI == Keywords.MSDNS) { 287if (attrs[i].NamespaceURI == Keywords.MSPROPNS) { 296if (propName.StartsWith(Keywords.MSD_FK_PREFIX, StringComparison.Ordinal)) 301if ((instance is DataRelation) && (propName.StartsWith(Keywords.MSD_REL_PREFIX, StringComparison.Ordinal))) { 304else if ((instance is DataRelation) && (propName.StartsWith(Keywords.MSD_FK_PREFIX, StringComparison.Ordinal))) { 320if (attrs[i].NamespaceURI == Keywords.MSDNS) { 337if (nodeAttributes[i].LocalName == ln && nodeAttributes[i].NamespaceURI == Keywords.MSDNS) 345if (attrs[i].NamespaceURI == Keywords.MSPROPNS) { 383strName = XmlConvert.DecodeName(node.GetAttribute(Keywords.NAME)); 389parentName = node.GetAttribute(Keywords.MSD_PARENT, Keywords.MSDNS); 394childName = node.GetAttribute(Keywords.MSD_CHILD, Keywords.MSDNS); 399value = node.GetAttribute(Keywords.MSD_PARENTKEY, Keywords.MSDNS); 403parentNames = value.TrimEnd(null).Split(new char[] {Keywords.MSD_KEYFIELDSEP, Keywords.MSD_KEYFIELDOLDSEP}); 404value = node.GetAttribute(Keywords.MSD_CHILDKEY, Keywords.MSDNS); 408childNames = value.TrimEnd(null).Split(new char[] {Keywords.MSD_KEYFIELDSEP, Keywords.MSD_KEYFIELDOLDSEP}); 417string parentNs = node.GetAttribute(Keywords.MSD_PARENTTABLENS, Keywords.MSDNS); 418string childNs = node.GetAttribute(Keywords.MSD_CHILDTABLENS, Keywords.MSDNS); 502if (GetBooleanAttribute(XmlElement, Keywords.MSD_ISDATASET, /*default:*/ false)) { 511if (GetBooleanAttribute(XmlElement, Keywords.MSD_ISDATASET, /*default:*/ false)) 517if (!GetBooleanAttribute(node, Keywords.MSD_ISDATASET, /*default:*/ true)) 620string mainName = GetStringAttribute (dsElement, Keywords.MSD_MAINDATATABLE, ""); 742if (FEqualIdentity(relations[i], Keywords.MSD_RELATION, Keywords.MSDNS)) 905if (ccExtension.BaseTypeName.Namespace != Keywords.XSDNS){ 1031if ((value == Keywords.TRUE) || (value == Keywords.ONE_DIGIT)){ 1034if ((value == Keywords.FALSE) || (value == Keywords.ZERO_DIGIT)){ 1091string tableNs = GetMsdataAttribute(keyref,Keywords.MSD_TABLENS); 1112if (GetBooleanAttribute(keyref, Keywords.MSD_CONSTRAINTONLY, /*default:*/ false)) { 1125string relName = XmlConvert.DecodeName(GetStringAttribute( keyref, Keywords.MSD_RELATIONNAME, keyref.Name)); 1153if (GetBooleanAttribute(keyref, Keywords.MSD_ISNESTED, /*default:*/ false)) { 1159string acceptRejectRule = GetMsdataAttribute(keyref, Keywords.MSD_ACCEPTREJECTRULE); 1160string updateRule = GetMsdataAttribute(keyref, Keywords.MSD_UPDATERULE); 1161string deleteRule = GetMsdataAttribute(keyref, Keywords.MSD_DELETERULE); 1183throw ExceptionBuilder.MissingAttribute(Keywords.NAME); 1190string tableNs = GetMsdataAttribute(keyNode,Keywords.MSD_TABLENS); 1199bool fPrimaryKey = GetBooleanAttribute(keyNode, Keywords.MSD_PRIMARYKEY, /*default:*/ false); 1369String value= GetStringAttribute(typeNode, Keywords.MSD_CASESENSITIVE, "") ; 1372value= GetStringAttribute(node, Keywords.MSD_CASESENSITIVE, "") ; 1375if ((value == Keywords.TRUE) || (value == "True")) 1377if ((value == Keywords.FALSE) || (value == "False")) 1381value = GetMsdataAttribute(node, Keywords.MSD_LOCALE); 1458bool isNested = GetBooleanAttribute(keyref, Keywords.MSD_ISNESTED, /*default:*/ false); 1675if (_typeNs == Keywords.XSDNS) 1701if (typeNode.QualifiedName.Name != null && typeNode.QualifiedName.Name.Length != 0 && typeNode.QualifiedName.Namespace != Keywords.XSDNS) { // this means UDSimpleType 1708if ((ancestor != null) && (ancestor.QualifiedName.Namespace != Keywords.XSDNS)) { 1758if ( attrs[i].LocalName == Keywords.MSD_ALLOWDBNULL && attrs[i].NamespaceURI == Keywords.MSDNS) 1759if ( attrs[i].Value == Keywords.FALSE) 1761if ( attrs[i].LocalName == Keywords.MSD_ORDINAL && attrs[i].NamespaceURI == Keywords.MSDNS) 1763if ( attrs[i].LocalName == Keywords.MSD_DEFAULTVALUE && attrs[i].NamespaceURI == Keywords.MSDNS) 1777if (XSDSchema.GetMsdataAttribute(typeNode, Keywords.TARGETNAMESPACE)!= null) { 1857if ( attrs[i].LocalName == Keywords.MSD_ALLOWDBNULL && attrs[i].NamespaceURI == Keywords.MSDNS) 1858if ( attrs[i].Value == Keywords.FALSE) 1860if ( attrs[i].LocalName == Keywords.MSD_ORDINAL && attrs[i].NamespaceURI == Keywords.MSDNS) 1862if ( attrs[i].LocalName == Keywords.MSD_DEFAULTVALUE && attrs[i].NamespaceURI == Keywords.MSDNS) 1916if (attr.SchemaTypeName.Namespace != Keywords.XSDNS) // it is UD Simple Type, can it be? 1927if (node.QualifiedName.Name != null && node.QualifiedName.Name.Length != 0 && node.QualifiedName.Namespace != Keywords.XSDNS) { // this means UDSimpleType 1989if (XSDSchema.GetMsdataAttribute(typeNode, Keywords.TARGETNAMESPACE)!= null) { 2014column.AllowDBNull = GetBooleanAttribute(attr, Keywords.MSD_ALLOWDBNULL, true) ; 2015String defValue = GetMsdataAttribute(attr, Keywords.MSD_DEFAULTVALUE); 2027string strDefault = (attrib.Use == XmlSchemaUse.Required) ? GetMsdataAttribute(attr, Keywords.MSD_DEFAULTVALUE) : attr.DefaultValue; 2067if (((XmlSchemaSimpleType)typeNode).Name != null && ((XmlSchemaSimpleType)typeNode).Name.Length != 0 && ((XmlSchemaSimpleType)typeNode).QualifiedName.Namespace != Keywords.XSDNS) { 2069string targetNamespace = XSDSchema.GetMsdataAttribute(typeNode, Keywords.TARGETNAMESPACE); 2074simpleTypeNode = (xsdType.XmlBaseType!= null && xsdType.XmlBaseType.Namespace != Keywords.XSDNS) ? 2079simpleTypeNode = (xsdType.XmlBaseType!= null && xsdType.XmlBaseType.Namespace != Keywords.XSDNS) ? 2097if (ADP.IsEmpty(XSDSchema.GetMsdataAttribute(elem, Keywords.MSD_DATATYPE))) { 2149if (XSDSchema.GetMsdataAttribute(typeNode, Keywords.TARGETNAMESPACE)!= null) { 2185String tmp = GetStringAttribute(elem, Keywords.MSD_ORDINAL, (-1).ToString(CultureInfo.CurrentCulture)); 2220String value = GetMsdataAttribute(node, Keywords.MSD_LOCALE); 2233if (GetBooleanAttribute(node, Keywords.MSD_USECURRENTLOCALE, false)) { 2243value = GetMsdataAttribute(node, Keywords.MSD_DATASETNAME); 2248value = GetMsdataAttribute(node, Keywords.MSD_DATASETNAMESPACE); 2336bool isNested = GetBooleanAttribute(keyref, Keywords.MSD_ISNESTED, /*default:*/ false); 2401return GetMsdataAttribute(key, Keywords.MSD_TABLENS); 2428if (attrib.LocalName == Keywords.MSD_DATATYPE && 2429attrib.Prefix == Keywords.MSD && 2430attrib.NamespaceURI == Keywords.MSDNS) 2493(this.NamespaceURI == Keywords.XML_XMLNS && this.LocalName != "lang")) { //try next one 2512(this.NamespaceURI == Keywords.XML_XMLNS && this.LocalName != "lang")) {
fx\src\data\System\NewXml\XmlBoundElement.cs (1)
242w.WriteAttributeString( "xmlns", "xsi", "http://www.w3.org/2000/xmlns/", Keywords.XSINS );
fx\src\data\System\NewXml\XmlDataDocument.cs (9)
651XmlAttribute attr = CreateAttribute( XSI, Keywords.XSI_NIL, Keywords.XSINS ); 652attr.Value = Keywords.TRUE; 1310attr = CreateAttribute( XSI, Keywords.XSI_NIL, Keywords.XSINS ); 1311attr.Value = Keywords.TRUE; 1316attr.Value = Keywords.TRUE; 1322attr.Value = Keywords.FALSE; 1379attr.Value = Keywords.FALSE;