901 references to Keywords
System.Data.Common (901)
System\Data\Common\ObjectStorage.cs (6)
370string? typeName = xmlReader.GetAttribute(Keywords.MSD_INSTANCETYPE, Keywords.MSDNS); 373string? xsdTypeName = xmlReader.GetAttribute(Keywords.TYPE, Keywords.XSINS); // this xsd type: Base type polymorphism 379if (xmlReader.LookupNamespace(_typename[0]) == Keywords.XSDNS) 399if (typeName == Keywords.TYPEINSTANCE)
System\Data\Common\SqlUDTStorage.cs (4)
177string? typeName = xmlReader.GetAttribute(Keywords.MSD_INSTANCETYPE, Keywords.MSDNS); 180string? xsdTypeName = xmlReader.GetAttribute(Keywords.MSD_INSTANCETYPE, Keywords.XSINS); // this xsd type
System\Data\DataException.cs (2)
714public static Exception MissingRefer(string name) => _Data(SR.Format(SR.Xml_MissingRefer, Keywords.REFER, Keywords.XSD_KEYREF, name));
System\Data\DataSet.cs (82)
206string? attribValue = reader.GetAttribute(Keywords.MSD_SCHEMASERIALIZATIONMODE, Keywords.MSDNS); 207if (string.Equals(attribValue, Keywords.MSD_EXCLUDESCHEMA, StringComparison.OrdinalIgnoreCase)) 211else if (string.Equals(attribValue, Keywords.MSD_INCLUDESCHEMA, StringComparison.OrdinalIgnoreCase)) 1699if (reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) 1706if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 1713if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 1715throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 1726if (reader.NamespaceURI.Equals(Keywords.XSD_XMLNS_NS)) 1743if (reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) 1750if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 1757if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 1759throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 1822if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 1826string? attribValue = reader.GetAttribute(Keywords.MSD_FRAGMENTCOUNT, Keywords.MSDNS); // this must not move the position 1834while (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 2120if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) 2129if (reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) 2136if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 2143if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 2145throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 2158if (reader.NamespaceURI.Equals(Keywords.XSD_XMLNS_NS)) 2173if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) 2185if (!fSchemaFound && !fDataFound && reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) 2194if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 2202if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 2204throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 2207if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) 2477if ((reader.LocalName != Keywords.DIFFGRAM) && (reader.NamespaceURI != Keywords.DFFNS)) 2492if ((reader.NamespaceURI != Keywords.DFFNS) && (reader.NamespaceURI != Keywords.MSDNS)) 2516if (((reader.LocalName == Keywords.SQL_BEFORE) && (reader.NamespaceURI == Keywords.DFFNS)) || 2517((reader.LocalName == Keywords.MSD_ERRORS) && (reader.NamespaceURI == Keywords.DFFNS))) 2644if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) 2659if (reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) 2674if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 2690if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 2692throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 2704if (reader.NamespaceURI.Equals(Keywords.XSD_XMLNS_NS)) 2719if (reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) 2736if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 2752if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) 2766if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 2767throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 3436const string xsinill = Keywords.XSI + ":" + Keywords.XSI_NIL; 3448const string UseDataSetSchemaOnlyString = Keywords.MSD + ":" + Keywords.USEDATASETSCHEMAONLY; 3460throw ExceptionBuilder.InvalidAttributeValue(Keywords.USEDATASETSCHEMAONLY, useDataSetSchemaOnly!); 3464const string udtIsWrappedString = Keywords.MSD + ":" + Keywords.UDTCOLUMNVALUEWRAPPED; 3476throw ExceptionBuilder.InvalidAttributeValue(Keywords.UDTCOLUMNVALUEWRAPPED, _udtIsWrappedString!); 3502any.Namespace = Keywords.DFFNS;
System\Data\DataTable.cs (55)
5713if (reader.AttributeCount == 0 || (reader.LocalName == Keywords.DIFFGRAM && reader.NamespaceURI == Keywords.DFFNS)) 5722(reader.Prefix == Keywords.XMLNS) && 5723(reader.NamespaceURI == Keywords.XSD_XMLNS_NS)) 5793if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) 5813if (reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) 5822if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 5830if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 5841throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 5854if (reader.NamespaceURI.Equals(Keywords.XSD_XMLNS_NS)) 5870if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) 5882if (!fSchemaFound && !fDataFound && reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) 5891if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 5899if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 5910throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 5913if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) 6044if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) 6069if (reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) 6084if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 6100if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 6111throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 6123if (reader.NamespaceURI.Equals(Keywords.XSD_XMLNS_NS)) 6140if (reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) 6156if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 6171if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) 6194if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 6205throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 6328if ((reader.LocalName != Keywords.DIFFGRAM) && (reader.NamespaceURI != Keywords.DFFNS)) 6343if ((reader.NamespaceURI != Keywords.DFFNS) && (reader.NamespaceURI != Keywords.MSDNS)) 6358if (((reader.LocalName == Keywords.SQL_BEFORE) && (reader.NamespaceURI == Keywords.DFFNS)) || 6359((reader.LocalName == Keywords.MSD_ERRORS) && (reader.NamespaceURI == Keywords.DFFNS))) 6417while (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 6699any.Namespace = Keywords.DFFNS;
System\Data\SimpleType.cs (26)
59if ((ancestor != null) && (ancestor.QualifiedName.Namespace != Keywords.XSDNS)) 66if (content.BaseTypeName.Namespace == Keywords.XSDNS) 122string? tempStr = XSDSchema.GetMsdataAttribute(node, Keywords.TARGETNAMESPACE); 217return Keywords.XSD_PREFIXCOLON + name; 230XmlElement typeNode = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SIMPLETYPE, Keywords.XSDNS); 235typeNode.SetAttribute(Keywords.NAME, _name); 238typeNode.SetAttribute(Keywords.TARGETNAMESPACE, Keywords.MSDNS, Namespace); 241XmlElement type = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_RESTRICTION, Keywords.XSDNS); 252type.SetAttribute(Keywords.BASE, (prefix + ":" + _baseSimpleType.Name)); 256type.SetAttribute(Keywords.BASE, _baseSimpleType.Name); 261type.SetAttribute(Keywords.BASE, _baseSimpleType.Name); 266type.SetAttribute(Keywords.BASE, QualifiedName(_baseType!)); // has to be xs:SomePrimitiveType 271type.SetAttribute(Keywords.BASE, (_baseSimpleType != null) ? _baseSimpleType.Name : QualifiedName(_baseType!)); 277constraint = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_LENGTH, Keywords.XSDNS); 278constraint.SetAttribute(Keywords.VALUE, _length.ToString(CultureInfo.InvariantCulture)); 283constraint = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_MAXLENGTH, Keywords.XSDNS); 284constraint.SetAttribute(Keywords.VALUE, _maxLength.ToString(CultureInfo.InvariantCulture));
System\Data\XDRSchema.cs (89)
36_schemaName = schemaRoot.GetAttribute(Keywords.NAME); 40Debug.Assert(FEqualIdentity(schemaRoot, Keywords.XDR_SCHEMA, Keywords.XDRNS), "Illegal node"); 57if (FEqualIdentity(child, Keywords.XDR_ELEMENTTYPE, Keywords.XDRNS)) 74Debug.Assert(FEqualIdentity(node, Keywords.XDR_ELEMENT, Keywords.XDRNS) || 75FEqualIdentity(node, Keywords.XDR_SCHEMA, Keywords.XDRNS) || 76FEqualIdentity(node, Keywords.XDR_ATTRIBUTE, Keywords.XDRNS) || 77FEqualIdentity(node, Keywords.XDR_ELEMENTTYPE, Keywords.XDRNS), 80if (FEqualIdentity(node, Keywords.XDR_ELEMENTTYPE, Keywords.XDRNS)) 83strType = node.GetAttribute(Keywords.TYPE); 85if (FEqualIdentity(node, Keywords.XDR_ELEMENT, Keywords.XDRNS) || 86FEqualIdentity(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))) 102if (vn is XmlElement && ((XmlElement)vn).GetAttribute(Keywords.NAME) == strType) 133Debug.Assert(FEqualIdentity(node, Keywords.XDR_ELEMENTTYPE, Keywords.XDRNS), $"Invalid node type {node.LocalName}"); 135string value = node.GetAttribute(Keywords.CONTENT); 138string type = node.GetAttribute(Keywords.DT_TYPE, Keywords.DTNS); 142if (value == Keywords.EMPTY || value == Keywords.ELTONLY || value == Keywords.ELEMENTONLY || value == Keywords.MIXED) 146if (value == Keywords.TEXTONLY) 164if (FEqualIdentity(n, Keywords.XDR_ELEMENT, Keywords.XDRNS) || 165FEqualIdentity(n, Keywords.XDR_ATTRIBUTE, Keywords.XDRNS)) 169if (FEqualIdentity(node, Keywords.XDR_ELEMENT, Keywords.XDRNS)) 184Debug.Assert(FEqualIdentity(node, Keywords.XDR_ELEMENTTYPE, Keywords.XDRNS) || 185FEqualIdentity(node, Keywords.XDR_ELEMENT, Keywords.XDRNS), "Invalid node type"); 191string occurs = node.GetAttribute(Keywords.MINOCCURS); 199occurs = node.GetAttribute(Keywords.MAXOCCURS); 315throw ExceptionBuilder.MissingAttribute("type", Keywords.DT_VALUES); 323if (FEqualIdentity(node, Keywords.XDR_ELEMENTTYPE, Keywords.XDRNS) || 324FEqualIdentity(node, Keywords.XDR_ATTRIBUTETYPE, Keywords.XDRNS)) 326instanceName = node.GetAttribute(Keywords.NAME); 329throw ExceptionBuilder.MissingAttribute("Element", Keywords.NAME); 334instanceName = node.GetAttribute(Keywords.TYPE); 336throw ExceptionBuilder.MissingAttribute("Element", Keywords.TYPE); 345Debug.Assert(FEqualIdentity(node, Keywords.XDR_ELEMENT, Keywords.XDRNS) || 346FEqualIdentity(node, Keywords.XDR_ATTRIBUTE, Keywords.XDRNS), "Illegal node type"); 361string strRef = node.GetAttribute(Keywords.REF); 372if (FEqualIdentity(node, Keywords.XDR_ATTRIBUTE, Keywords.XDRNS)) 377if (FEqualIdentity(node, Keywords.XDR_ELEMENT, Keywords.XDRNS)) 397strType = node.GetAttribute(Keywords.TYPE); 401strType = typeNode.GetAttribute(Keywords.DT_TYPE, Keywords.DTNS); 402strValues = typeNode.GetAttribute(Keywords.DT_VALUES, Keywords.DTNS); 443bool isAttribute = FEqualIdentity(node, Keywords.XDR_ATTRIBUTE, Keywords.XDRNS); 448strDefault = node.GetAttribute(Keywords.DEFAULT); 467if (node.Attributes[i].NamespaceURI == Keywords.MSDNS) 478string targetNamespace = node.GetAttribute(Keywords.TARGETNAMESPACE); 496string occurs = elNode.GetAttribute(Keywords.MINOCCURS); 504occurs = elNode.GetAttribute(Keywords.MAXOCCURS); 508int bZeroOrMore = string.Compare(occurs, Keywords.STAR, StringComparison.Ordinal); 515throw ExceptionBuilder.AttributeValues(nameof(maxOccurs), "1", Keywords.STAR); 530if (FEqualIdentity(n, Keywords.XDR_ELEMENT, Keywords.XDRNS)) 540if (FEqualIdentity(n, Keywords.XDR_ATTRIBUTE, Keywords.XDRNS) || 541FEqualIdentity(n, Keywords.XDR_ELEMENT, Keywords.XDRNS))
System\Data\XmlDataLoader.cs (36)
235return ns.Equals(Keywords.XSD_XMLNS_NS); 389if (XMLSchema.GetBooleanAttribute(rowElement, Keywords.XSI_NIL, Keywords.XSINS, false) && string.IsNullOrEmpty(text)) 423if (XMLSchema.GetBooleanAttribute(e, Keywords.XSI_NIL, Keywords.XSINS, false) && string.IsNullOrEmpty(text)) 505if (parentElement.LocalName == Keywords.XSD_SCHEMA && parentElement.NamespaceURI == Keywords.XSDNS || 506parentElement.LocalName == Keywords.SQL_SYNC && parentElement.NamespaceURI == Keywords.UPDGNS || 507parentElement.LocalName == Keywords.XDR_SCHEMA && parentElement.NamespaceURI == Keywords.XDRNS) 570_XSD_XMLNS_NS = nameTable.Add(Keywords.XSD_XMLNS_NS); 571_XDR_SCHEMA = nameTable.Add(Keywords.XDR_SCHEMA); 572_XDRNS = nameTable.Add(Keywords.XDRNS); 573_SQL_SYNC = nameTable.Add(Keywords.SQL_SYNC); 574_UPDGNS = nameTable.Add(Keywords.UPDGNS); 575_XSD_SCHEMA = nameTable.Add(Keywords.XSD_SCHEMA); 576_XSDNS = nameTable.Add(Keywords.XSDNS); 578_DFFNS = nameTable.Add(Keywords.DFFNS); 579_MSDNS = nameTable.Add(Keywords.MSDNS); 580_DIFFID = nameTable.Add(Keywords.DIFFID); 581_HASCHANGES = nameTable.Add(Keywords.HASCHANGES); 582_ROWORDER = nameTable.Add(Keywords.ROWORDER); 917if (_dataReader.NamespaceURI == Keywords.DFFNS) 921case Keywords.DIFFID: // Is it a diffgeam ID ? 924case Keywords.HASCHANGES: // Has changes attribute ? 927case Keywords.HASERRORS: // Has errors attribute ? 933else if (_dataReader.NamespaceURI == Keywords.MSDNS) 935if (_dataReader.LocalName == Keywords.ROWORDER) 1086if ((hasChanges == Keywords.MODIFIED) || hasErrors) 1155xsiNilString = _dataReader.GetAttribute(Keywords.XSI_NIL, Keywords.XSINS); 1169xsiTypeString = _dataReader.GetAttribute(Keywords.TYPE, Keywords.XSINS); 1170typeName = _dataReader.GetAttribute(Keywords.MSD_INSTANCETYPE, Keywords.MSDNS);
System\Data\XMLDiffLoader.cs (41)
24while (reader.LocalName == Keywords.SQL_BEFORE && reader.NamespaceURI == Keywords.DFFNS) 30while (reader.LocalName == Keywords.MSD_ERRORS && reader.NamespaceURI == Keywords.DFFNS) 33Debug.Assert(reader.LocalName == Keywords.MSD_ERRORS && reader.NamespaceURI == Keywords.DFFNS, "something fishy"); 61while (reader.LocalName == Keywords.SQL_BEFORE && reader.NamespaceURI == Keywords.DFFNS) 67while (reader.LocalName == Keywords.MSD_ERRORS && reader.NamespaceURI == Keywords.DFFNS) 70Debug.Assert(reader.LocalName == Keywords.MSD_ERRORS && reader.NamespaceURI == Keywords.DFFNS, "something fishy"); 96diffId = ssync.GetAttribute(Keywords.DIFFID, Keywords.DFFNS)!; 97bool hasErrors = ssync.GetAttribute(Keywords.HASERRORS, Keywords.DFFNS) == Keywords.TRUE; 149diffId = ssync.GetAttribute(Keywords.DIFFID, Keywords.DFFNS)!; 150bool hasErrors = ssync.GetAttribute(Keywords.HASERRORS, Keywords.DFFNS) == Keywords.TRUE; 194string diffId = ssync.GetAttribute(Keywords.DIFFID, Keywords.DFFNS)!; 196string? rowError = ssync.GetAttribute(Keywords.MSD_ERROR, Keywords.DFFNS); 208string colError = ssync.GetAttribute(Keywords.MSD_ERROR, Keywords.DFFNS)!; 235string diffId = ssync.GetAttribute(Keywords.DIFFID, Keywords.DFFNS)!; 250string? rowError = ssync.GetAttribute(Keywords.MSD_ERROR, Keywords.DFFNS); 263string? colError = ssync.GetAttribute(Keywords.MSD_ERROR, Keywords.DFFNS); 315value = row.GetAttribute(Keywords.ROWORDER, Keywords.MSDNS); 335value = row.GetAttribute("hidden" + col.EncodedColumnName, Keywords.MSDNS); 392bool isPolymorphism = (column.DataType == typeof(object) || (row.GetAttribute(Keywords.MSD_INSTANCETYPE, Keywords.MSDNS) != null) || 393(row.GetAttribute(Keywords.TYPE, Keywords.XSINS) != null));
System\Data\xmlsaver.cs (450)
98s = Keywords.MSD_REL_PREFIX + s; 102s = Keywords.MSD_FK_PREFIX + s; 104node.SetAttribute(XmlConvert.EncodeLocalName(s), Keywords.MSPROPNS, v); 201root.SetAttribute(Keywords.MSD_DATATYPE, Keywords.MSDNS, col.DataType.FullName); 203else if ((dt.Length == 0) || bImplementsInullable || ((dt == Keywords.XSD_ANYTYPE) && (col.XmlDataType != Keywords.XSD_ANYTYPE)) || (col.DataType == typeof(DateTimeOffset))) 221root.SetAttribute(pd.Name, Keywords.MSDNS, textValue); 266return Keywords.XSD_ANYTYPE; //"integer"; 274return Keywords.XSD_ANYTYPE; 389rootSchema.SetAttribute(Keywords.TARGETNAMESPACE, targetNamespace); 390rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, targetNamespace); 394rootSchema.SetAttribute(Keywords.XMLNS, targetNamespace); 395rootSchema.SetAttribute(Keywords.XMLNS_XSD, Keywords.XSDNS); 396rootSchema.SetAttribute(Keywords.XMLNS_MSDATA, Keywords.MSDNS); 399rootSchema.SetAttribute(Keywords.XMLNS_MSPROP, Keywords.MSPROPNS); 404rootSchema.SetAttribute(Keywords.XSD_ATTRIBUTEFORMDEFAULT, Keywords.QUALIFIED); 405rootSchema.SetAttribute(Keywords.XSD_ELEMENTFORMDEFAULT, Keywords.QUALIFIED); 551_dsElement = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 586XmlElement rootSchema = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SCHEMA, Keywords.XSDNS); 593rootSchema.SetAttribute(Keywords.XSDID, XmlConvert.EncodeLocalName(_ds.DataSetName)); 597rootSchema.SetAttribute(Keywords.XSDID, XmlConvert.EncodeLocalName("NewDataSet")); 631rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, _ds.Namespace); 686_constraintSeparator = xd.CreateElement(Keywords.XSD_PREFIX, "SHOULDNOTBEHERE", Keywords.XSDNS); 723el.SetAttribute(Keywords.MINOCCURS, top[i].MinOccurs.ToString(CultureInfo.InvariantCulture)); 727el.SetAttribute(Keywords.MAXOCCURS, Keywords.ZERO_OR_MORE); 731el.SetAttribute(Keywords.MAXOCCURS, top[i].MaxOccurs.ToString(CultureInfo.InvariantCulture)); 738XmlElement node = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 740node.SetAttribute(Keywords.REF, top[i].EncodedTableName); 742node.SetAttribute(Keywords.REF, ((string)_prefixes[top[i].Namespace]!) + ':' + top[i].EncodedTableName); 752XmlElement node = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 753node.SetAttribute(Keywords.REF, ((string)_prefixes[top[i].Namespace]!) + ':' + top[i].EncodedTableName); 793nodeAnn = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ANNOTATION, Keywords.XSDNS); 796nodeApp = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_APPINFO, Keywords.XSDNS); 818XmlElement _import = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_IMPORT, Keywords.XSDNS); 819_import.SetAttribute(Keywords.XSD_NAMESPACE, ns); 822_import.SetAttribute(Keywords.XSD_SCHEMALOCATION, _fileName + "_" + _prefixes[ns] + ".xsd"); 828rootSchema.SetAttribute(Keywords.MSD_FRAGMENTCOUNT, Keywords.MSDNS, _namespaces.Count.ToString(CultureInfo.InvariantCulture)); 887XmlElement _import2 = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_IMPORT, Keywords.XSDNS); 888_import2.SetAttribute(Keywords.XSD_NAMESPACE, imp_ns); 893_import2.SetAttribute(Keywords.XSD_SCHEMALOCATION, _fileName + _fileExt); // for the dataset namespace don't append anything 895_import2.SetAttribute(Keywords.XSD_SCHEMALOCATION, _fileName + "_" + prefix + ".xsd"); 945_dsElement = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 958XmlElement rootSchema = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SCHEMA, Keywords.XSDNS); 964_constraintSeparator = xd.CreateElement(Keywords.XSD_PREFIX, "SHOULDNOTBEHERE", Keywords.XSDNS); 980rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, _ds.Namespace); 994rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, dt.Namespace); 1024_dsElement.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(dataSet.DataSetName)); 1025_dsElement.SetAttribute(Keywords.MSD_ISDATASET, Keywords.MSDNS, Keywords.TRUE); 1027_dsElement.SetAttribute(Keywords.MSD_MAINDATATABLE, Keywords.MSDNS, XmlConvert.EncodeLocalName(((dt!.Namespace.Length == 0) ? dt.TableName : (dt.Namespace + ":" + dt.TableName)))); 1032_dsElement.SetAttribute(Keywords.MSD_CASESENSITIVE, Keywords.MSDNS, Keywords.TRUE); 1036_dsElement.SetAttribute(Keywords.MSD_LOCALE, Keywords.MSDNS, dataSet.Locale.ToString()); 1040_dsElement.SetAttribute(Keywords.MSD_USECURRENTLOCALE, Keywords.MSDNS, Keywords.TRUE); 1047_dsElement.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName("NewDataSet")); 1048_dsElement.SetAttribute(Keywords.MSD_ISDATASET, Keywords.MSDNS, Keywords.TRUE); 1049_dsElement.SetAttribute(Keywords.MSD_MAINDATATABLE, Keywords.MSDNS, XmlConvert.EncodeLocalName(((dt.Namespace.Length == 0) ? dt.TableName : (dt.Namespace + ":" + dt.TableName)))); 1054_dsElement.SetAttribute(Keywords.MSD_CASESENSITIVE, Keywords.MSDNS, Keywords.TRUE); 1058_dsElement.SetAttribute(Keywords.MSD_LOCALE, Keywords.MSDNS, dt.Locale.ToString()); 1062_dsElement.SetAttribute(Keywords.MSD_USECURRENTLOCALE, Keywords.MSDNS, Keywords.TRUE); 1067XmlElement type = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_COMPLEXTYPE, Keywords.XSDNS); 1069XmlElement compositor = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_CHOICE, Keywords.XSDNS); 1070compositor.SetAttribute(Keywords.MINOCCURS, Keywords.ZERO_DIGIT); 1071compositor.SetAttribute(Keywords.MAXOCCURS, Keywords.ZERO_OR_MORE); 1149xw.WriteAttributeString(Keywords.MSD, Keywords.MSD_SCHEMASERIALIZATIONMODE, Keywords.MSDNS, Keywords.MSD_EXCLUDESCHEMA); 1156XmlElement root = dc.CreateElement(Keywords.MSD, Keywords.MSD_RELATION, Keywords.MSDNS); 1159root.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(rel.RelationName)); 1161root.SetAttribute(Keywords.MSD_PARENT, Keywords.MSDNS, rel.ParentKey.Table.EncodedTableName); 1162root.SetAttribute(Keywords.MSD_CHILD, Keywords.MSDNS, rel.ChildKey.Table.EncodedTableName); 1165root.SetAttribute(Keywords.MSD_PARENTTABLENS, Keywords.MSDNS, rel.ParentKey.Table.Namespace); 1168root.SetAttribute(Keywords.MSD_CHILDTABLENS, Keywords.MSDNS, rel.ChildKey.Table.Namespace); 1180builder.Append(Keywords.MSD_KEYFIELDSEP).Append(key[i].EncodedColumnName); 1184root.SetAttribute(Keywords.MSD_PARENTKEY, Keywords.MSDNS, text); 1201builder.Append(Keywords.MSD_KEYFIELDSEP).Append(key[i].EncodedColumnName); 1205root.SetAttribute(Keywords.MSD_CHILDKEY, Keywords.MSDNS, text); 1214if (n is XmlElement e && e.GetAttribute(Keywords.NAME) == name) 1227schemaEl = _dc!.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SCHEMA, Keywords.XSDNS); 1231string prefix = Keywords.APP + Convert.ToString(++_prefixCount, CultureInfo.InvariantCulture); 1245string keyword = Keywords.TYPE; 1247keyword = Keywords.BASE; 1336typeName = Keywords.XSD_ANYTYPE; 1350root.SetAttribute(Keywords.MSD_DATATYPE, Keywords.MSDNS, col.DataType.FullName); 1352else if ((dt.Length == 0) || col.ImplementsINullable || ((dt == Keywords.XSD_ANYTYPE) && (col.XmlDataType != Keywords.XSD_ANYTYPE))) 1364root.SetAttribute("ReadOnly", Keywords.MSDNS, Keywords.TRUE); 1367root.SetAttribute("Expression", Keywords.MSDNS, col.Expression); 1371root.SetAttribute("AutoIncrement", Keywords.MSDNS, Keywords.TRUE); 1375root.SetAttribute("AutoIncrementSeed", Keywords.MSDNS, col.AutoIncrementSeed.ToString(CultureInfo.InvariantCulture)); 1378root.SetAttribute("AutoIncrementStep", Keywords.MSDNS, col.AutoIncrementStep.ToString(CultureInfo.InvariantCulture)); 1381root.SetAttribute("Caption", Keywords.MSDNS, col.Caption); 1384root.SetAttribute("Prefix", Keywords.MSDNS, col.Prefix); 1388root.SetAttribute("DateTimeMode", Keywords.MSDNS, col.DateTimeMode.ToString()); 1433string refString = (col.ColumnMapping != MappingType.Element) ? Keywords.XSD_ATTRIBUTE : Keywords.XSD_ELEMENT; 1434root = dc.CreateElement(Keywords.XSD_PREFIX, refString, Keywords.XSDNS); 1437root.SetAttribute(Keywords.NAME, col.EncodedColumnName); 1446root.SetAttribute(Keywords.FORM, Keywords.UNQUALIFIED); 1461root.SetAttribute(Keywords.MSD_ALLOWDBNULL, Keywords.MSDNS, Keywords.FALSE); 1465root.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, (bool)(col.DefaultValue) ? Keywords.TRUE : Keywords.FALSE); 1469root.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, col.ConvertObjectToXml(col.DefaultValue)); 1481root.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, (bool)(col.DefaultValue) ? Keywords.TRUE : Keywords.FALSE); 1485root.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, col.ConvertObjectToXml(col.DefaultValue)); 1492root.SetAttribute(Keywords.DEFAULT, (bool)(col.DefaultValue) ? Keywords.TRUE : Keywords.FALSE); 1498root.SetAttribute(Keywords.DEFAULT, col.ConvertObjectToXml(col.DefaultValue)); 1508root.SetAttribute(Keywords.TARGETNAMESPACE, Keywords.MSDNS, col.Namespace); 1516root = _dc.CreateElement(Keywords.XSD_PREFIX, refString, Keywords.XSDNS); 1517root.SetAttribute(Keywords.REF, _prefixes[col.Namespace] + ":" + col.EncodedColumnName); 1531root.SetAttribute(Keywords.USE, Keywords.REQUIRED); 1536root.SetAttribute(Keywords.USE, Keywords.PROHIBITED); 1540root.SetAttribute(Keywords.MINOCCURS, minOccurs.ToString(CultureInfo.InvariantCulture)); 1543root.SetAttribute(Keywords.MSD_ORDINAL, Keywords.MSDNS, col.Ordinal.ToString(CultureInfo.InvariantCulture)); 1570if (FindTypeNode(schNode, el.GetAttribute(Keywords.NAME)) == null) 1586if (XSDSchema.FEqualIdentity(child, Keywords.XSD_ELEMENT, Keywords.XSDNS) || 1587XSDSchema.FEqualIdentity(child, Keywords.XSD_ATTRIBUTE, Keywords.XSDNS) || 1588XSDSchema.FEqualIdentity(child, Keywords.XSD_COMPLEXTYPE, Keywords.XSDNS) || 1589XSDSchema.FEqualIdentity(child, Keywords.XSD_SIMPLETYPE, Keywords.XSDNS)) 1591if (child.GetAttribute(Keywords.NAME) == strType) 1733XmlElement root = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 1738root.SetAttribute(Keywords.TARGETNAMESPACE, Keywords.MSDNS, table.Namespace); 1741root.SetAttribute(Keywords.NAME, table.EncodedTableName); 1777root.SetAttribute(Keywords.FORM, Keywords.UNQUALIFIED); 1785root.SetAttribute(Keywords.MSD_CASESENSITIVE, Keywords.MSDNS, table.CaseSensitive.ToString()); 1789root.SetAttribute(Keywords.MSD_LOCALE, Keywords.MSDNS, table.Locale.ToString()); 1827_typeName = Keywords.XSD_ANYTYPE; 1830root.SetAttribute(Keywords.TYPE, XSDSchema.QualifiedName(_typeName)); 1835XmlElement type = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_COMPLEXTYPE, Keywords.XSDNS); 1851type.SetAttribute(Keywords.NAME, table.TypeName.Name); 1861root.SetAttribute(Keywords.TYPE, NewDiffgramGen.QualifiedName((string)_prefixes[table.TypeName.Namespace]!, table.TypeName.Name)); 1870XmlElement sc = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SIMPLECONTENT, Keywords.XSDNS); 1879root.SetAttribute(Keywords.XSD_NILLABLE, string.Empty, Keywords.TRUE); 1883sc.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, colTxt.ConvertObjectToXml(colTxt.DefaultValue)); 1886sc.SetAttribute(Keywords.MSD_COLUMNNAME, Keywords.MSDNS, colTxt.ColumnName); 1887sc.SetAttribute(Keywords.MSD_ORDINAL, Keywords.MSDNS, colTxt.Ordinal.ToString(CultureInfo.InvariantCulture)); 1890XmlElement ext = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_EXTENSION, Keywords.XSDNS); 1896compositor = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SEQUENCE, Keywords.XSDNS); 1936NestedTable = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 1938NestedTable.SetAttribute(Keywords.REF, table.EncodedTableName); 1942NestedTable = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 1943NestedTable.SetAttribute(Keywords.REF, childTable.EncodedTableName); 1950NestedTable.SetAttribute(Keywords.MINOCCURS, "0"); 1951NestedTable.SetAttribute(Keywords.MAXOCCURS, Keywords.ZERO_OR_MORE); 1962NestedTable = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 1963NestedTable.SetAttribute(Keywords.REF, ((string)_prefixes[childTable.Namespace]!) + ':' + childTable.EncodedTableName); 1970XmlElement nodeAnn = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ANNOTATION, Keywords.XSDNS); 1973XmlElement nodeApp = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_APPINFO, Keywords.XSDNS); 1989string xpathprefix = (_ds != null) ? (_ds.Namespace.Length != 0 ? Keywords.MSTNS_PREFIX : string.Empty) : string.Empty; 2010constraint = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_UNIQUE, Keywords.XSDNS); 2013constraint.SetAttribute(Keywords.MSD_TABLENS, Keywords.MSDNS, table.Namespace); 2015constraint.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(unique.SchemaName)); 2018constraint.SetAttribute(Keywords.MSD_CONSTRAINTNAME, Keywords.MSDNS, unique.ConstraintName); 2023selector = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SELECTOR, Keywords.XSDNS); 2024selector.SetAttribute(Keywords.XSD_XPATH, ".//" + xpathprefix + table.EncodedTableName); 2031constraint.SetAttribute(Keywords.MSD_PRIMARYKEY, Keywords.MSDNS, Keywords.TRUE); 2058field = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_FIELD, Keywords.XSDNS); 2059field.SetAttribute(Keywords.XSD_XPATH, encodedName.ToString()); 2091constraint = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_KEY, Keywords.XSDNS); 2092constraint.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(foreign.SchemaName)); 2095constraint.SetAttribute(Keywords.MSD_TABLENS, Keywords.MSDNS, table.Namespace); 2097selector = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SELECTOR, Keywords.XSDNS); 2098selector.SetAttribute(Keywords.XSD_XPATH, ".//" + xpathprefix + foreign.RelatedTable.EncodedTableName); 2126field = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_FIELD, Keywords.XSDNS); 2127field.SetAttribute(Keywords.XSD_XPATH, encodedName.ToString()); 2136constraint = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_KEYREF, Keywords.XSDNS); 2138constraint.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(foreign.SchemaName)); 2141constraint.SetAttribute(Keywords.MSD_TABLENS, Keywords.MSDNS, foreign.Table!.Namespace); 2144constraint.SetAttribute(Keywords.REFER, XmlConvert.EncodeLocalName(foreign.SchemaName)); 2146constraint.SetAttribute(Keywords.REFER, XmlConvert.EncodeLocalName(_constraint.SchemaName)); 2151constraint.SetAttribute(Keywords.MSD_CONSTRAINTNAME, Keywords.MSDNS, foreign.ConstraintName); 2155constraint.SetAttribute(Keywords.MSD_CONSTRAINTONLY, Keywords.MSDNS, Keywords.TRUE); 2160constraint.SetAttribute(Keywords.MSD_ISNESTED, Keywords.MSDNS, Keywords.TRUE); 2165constraint.SetAttribute(Keywords.MSD_RELATIONNAME, Keywords.MSDNS, XmlConvert.EncodeLocalName(rel.RelationName)); 2169selector = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SELECTOR, Keywords.XSDNS); 2170selector.SetAttribute(Keywords.XSD_XPATH, ".//" + xpathprefix + table.EncodedTableName); 2175constraint.SetAttribute(Keywords.MSD_ACCEPTREJECTRULE, Keywords.MSDNS, 2179constraint.SetAttribute(Keywords.MSD_UPDATERULE, Keywords.MSDNS, TranslateRule(foreign.UpdateRule)); 2182constraint.SetAttribute(Keywords.MSD_DELETERULE, Keywords.MSDNS, TranslateRule(foreign.DeleteRule)); 2210field = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_FIELD, Keywords.XSDNS); 2211field.SetAttribute(Keywords.XSD_XPATH, encodedName.ToString()); 2245root.SetAttribute(Keywords.MSD_DATATYPE, Keywords.MSDNS, result); 2359_xmlw.WriteStartElement(Keywords.DFF, Keywords.DIFFGRAM, Keywords.DFFNS); 2360_xmlw.WriteAttributeString(Keywords.XMLNS, Keywords.MSD, null, Keywords.MSDNS); 2446_xmlw.WriteStartElement(Keywords.DFF, Keywords.MSD_ERRORS, Keywords.DFFNS); 2450_xmlw.WriteAttributeString(Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, row.Table.TableName + row.rowID.ToString(CultureInfo.InvariantCulture)); 2451_xmlw.WriteAttributeString(Keywords.DFF, Keywords.MSD_ERROR, Keywords.DFFNS, row.RowError); 2470_xmlw.WriteStartElement(Keywords.DFF, Keywords.MSD_ERRORS, Keywords.DFFNS); 2475_xmlw.WriteAttributeString(Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, row.Table.TableName + row.rowID.ToString(CultureInfo.InvariantCulture)); 2481_xmlw.WriteAttributeString(Keywords.DFF, Keywords.MSD_ERROR, Keywords.DFFNS, error); 2502_xmlw.WriteStartElement(Keywords.DFF, Keywords.SQL_BEFORE, Keywords.DFFNS); 2525_xmlw.WriteAttributeString(Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, rowIDString); 2528_xmlw.WriteAttributeString(Keywords.DFF, Keywords.HASERRORS, Keywords.DFFNS, Keywords.TRUE); 2531_xmlw.WriteAttributeString(Keywords.DFF, Keywords.DIFFPID, Keywords.DFFNS, parentId); 2533_xmlw.WriteAttributeString(Keywords.MSD, Keywords.ROWORDER, Keywords.MSDNS, _rowsOrder[row]!.ToString()); 2559_xmlw.WriteAttributeString(Keywords.XSI, Keywords.XSI_NIL, Keywords.XSINS, Keywords.TRUE); 2571_xmlw.WriteAttributeString(Keywords.MSD, "hidden" + col.EncodedColumnName, Keywords.MSDNS, value); 2595_xmlw.WriteAttributeString(Keywords.XML, Keywords.SPACE, Keywords.XML_XMLNS, Keywords.PRESERVE); 2609_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, DataStorage.GetQualifiedName(valuesType)); 2635_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, valuesType.FullName); 2639_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, Keywords.TYPEINSTANCE); 2643string xsdTypeName = Keywords.XSD_PREFIXCOLON + XmlTreeGen.XmlDataTypeName(valuesType); 2644_xmlw.WriteAttributeString(Keywords.XSI, Keywords.TYPE, Keywords.XSINS, xsdTypeName); 2645_xmlw.WriteAttributeString(Keywords.XSD_PREFIX, Keywords.XMLNS, Keywords.XSDNS, xsdTypeName); 2814_xmlw.WriteStartElement(prefix, Keywords.DOCUMENTELEMENT, (_dt!.Namespace == null) ? "" : _dt.Namespace); 2868_xmlw.WriteStartElement(prefix, Keywords.DOCUMENTELEMENT, _dt!.Namespace); 2873_xmlw.WriteStartElement(prefix, Keywords.DOCUMENTELEMENT, _ds.Namespace); 2882_xmlw.WriteAttributeString(Keywords.XMLNS, Keywords.XSI, Keywords.XSD_XMLNS_NS, Keywords.XSINS); 2951_xmlw.WriteAttributeString(Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, row.Table.TableName + row.rowID.ToString(CultureInfo.InvariantCulture)); 2953_xmlw.WriteAttributeString(Keywords.MSD, Keywords.ROWORDER, Keywords.MSDNS, _rowsOrder![row]!.ToString()); 2957_xmlw.WriteAttributeString(Keywords.DFF, Keywords.HASCHANGES, Keywords.DFFNS, Keywords.INSERTED); 2961_xmlw.WriteAttributeString(Keywords.DFF, Keywords.HASCHANGES, Keywords.DFFNS, Keywords.MODIFIED); 2966_xmlw.WriteAttributeString(Keywords.DFF, Keywords.HASERRORS, Keywords.DFFNS, Keywords.TRUE); 2995_xmlw.WriteAttributeString(Keywords.MSD, "hidden" + col.EncodedColumnName, Keywords.MSDNS, col.ConvertObjectToXml(value)); 3009_xmlw.WriteAttributeString(Keywords.XSI, Keywords.XSI_NIL, Keywords.XSINS, Keywords.TRUE); 3031_xmlw.WriteAttributeString(Keywords.XML, Keywords.SPACE, Keywords.XML_XMLNS, Keywords.PRESERVE); 3043_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, DataStorage.GetQualifiedName(valuesType)); 3067_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, valuesType.FullName); 3071_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, Keywords.TYPEINSTANCE); 3075string xsdTypeName = Keywords.XSD_PREFIXCOLON + XmlTreeGen.XmlDataTypeName(valuesType); 3076_xmlw.WriteAttributeString(Keywords.XSI, Keywords.TYPE, Keywords.XSINS, xsdTypeName); 3077_xmlw.WriteAttributeString(Keywords.XSD_PREFIX, Keywords.XMLNS, Keywords.XSDNS, xsdTypeName);
System\Data\XMLSchema.cs (100)
31if (attrs[i].NamespaceURI == Keywords.MSDNS) 87if ((value == Keywords.TRUE) || (value == Keywords.ONE_DIGIT)) 91if ((value == Keywords.FALSE) || (value == Keywords.ZERO_DIGIT)) 209MSDATATargetNamespace = XSDSchema.GetMsdataAttribute((XmlSchemaType)item, Keywords.TARGETNAMESPACE); 253return Keywords.XSD_PREFIXCOLON + name; 267if (attrs[i].NamespaceURI == Keywords.MSDNS) 327if (attrs[i].NamespaceURI == Keywords.MSPROPNS) 339if (propName.StartsWith(Keywords.MSD_FK_PREFIX, StringComparison.Ordinal)) 344if ((instance is DataRelation) && (propName.StartsWith(Keywords.MSD_REL_PREFIX, StringComparison.Ordinal))) 348else if ((instance is DataRelation) && (propName.StartsWith(Keywords.MSD_FK_PREFIX, StringComparison.Ordinal))) 368if (attrs[i].NamespaceURI == Keywords.MSDNS) 387if (nodeAttributes[i].LocalName == ln && nodeAttributes[i].NamespaceURI == Keywords.MSDNS) 398if (attrs[i].NamespaceURI == Keywords.MSPROPNS) 442strName = XmlConvert.DecodeName(node.GetAttribute(Keywords.NAME)); 449parentName = node.GetAttribute(Keywords.MSD_PARENT, Keywords.MSDNS); 454childName = node.GetAttribute(Keywords.MSD_CHILD, Keywords.MSDNS); 459value = node.GetAttribute(Keywords.MSD_PARENTKEY, Keywords.MSDNS); 463parentNames = value.TrimEnd(null).Split(new char[] { Keywords.MSD_KEYFIELDSEP, Keywords.MSD_KEYFIELDOLDSEP }); 464value = node.GetAttribute(Keywords.MSD_CHILDKEY, Keywords.MSDNS); 468childNames = value.TrimEnd(null).Split(new char[] { Keywords.MSD_KEYFIELDSEP, Keywords.MSD_KEYFIELDOLDSEP }); 477string parentNs = node.GetAttribute(Keywords.MSD_PARENTTABLENS, Keywords.MSDNS); 478string childNs = node.GetAttribute(Keywords.MSD_CHILDTABLENS, Keywords.MSDNS); 575if (GetBooleanAttribute(XmlElement, Keywords.MSD_ISDATASET, /*default:*/ false)) 587if (GetBooleanAttribute(XmlElement, Keywords.MSD_ISDATASET, /*default:*/ false)) 593if (!GetBooleanAttribute(node, Keywords.MSD_ISDATASET, /*default:*/ true)) 715string mainName = GetStringAttribute(_dsElement, Keywords.MSD_MAINDATATABLE, ""); 868if (FEqualIdentity(relations[i], Keywords.MSD_RELATION, Keywords.MSDNS)) 1073if (ccExtension.BaseTypeName.Namespace != Keywords.XSDNS) 1221if ((value == Keywords.TRUE) || (value == Keywords.ONE_DIGIT)) 1225if ((value == Keywords.FALSE) || (value == Keywords.ZERO_DIGIT)) 1289string? tableNs = GetMsdataAttribute(keyref, Keywords.MSD_TABLENS); 1311if (GetBooleanAttribute(keyref, Keywords.MSD_CONSTRAINTONLY, /*default:*/ false)) 1328string relName = XmlConvert.DecodeName(GetStringAttribute(keyref, Keywords.MSD_RELATIONNAME, keyref.Name!)); 1361if (GetBooleanAttribute(keyref, Keywords.MSD_ISNESTED, /*default:*/ false)) 1367string? acceptRejectRule = GetMsdataAttribute(keyref, Keywords.MSD_ACCEPTREJECTRULE); 1368string? updateRule = GetMsdataAttribute(keyref, Keywords.MSD_UPDATERULE); 1369string? deleteRule = GetMsdataAttribute(keyref, Keywords.MSD_DELETERULE); 1393throw ExceptionBuilder.MissingAttribute(Keywords.NAME); 1400string? tableNs = GetMsdataAttribute(keyNode, Keywords.MSD_TABLENS); 1409bool fPrimaryKey = GetBooleanAttribute(keyNode, Keywords.MSD_PRIMARYKEY, /*default:*/ false); 1592string? value = GetStringAttribute(typeNode, Keywords.MSD_CASESENSITIVE, ""); 1595value = GetStringAttribute(node, Keywords.MSD_CASESENSITIVE, ""); 1599if ((value == Keywords.TRUE) || (value == "True")) 1601if ((value == Keywords.FALSE) || (value == "False")) 1605value = GetMsdataAttribute(node, Keywords.MSD_LOCALE); 1691bool isNested = GetBooleanAttribute(keyref, Keywords.MSD_ISNESTED, /*default:*/ false); 1938if (_typeNs == Keywords.XSDNS) 1968if (!string.IsNullOrEmpty(typeNode.QualifiedName.Name) && typeNode.QualifiedName.Namespace != Keywords.XSDNS) 1977if ((ancestor != null) && (ancestor.QualifiedName.Namespace != Keywords.XSDNS)) 2035if (attrs[i].LocalName == Keywords.MSD_ALLOWDBNULL && attrs[i].NamespaceURI == Keywords.MSDNS) 2036if (attrs[i].Value == Keywords.FALSE) 2038if (attrs[i].LocalName == Keywords.MSD_ORDINAL && attrs[i].NamespaceURI == Keywords.MSDNS) 2040if (attrs[i].LocalName == Keywords.MSD_DEFAULTVALUE && attrs[i].NamespaceURI == Keywords.MSDNS) 2056if (XSDSchema.GetMsdataAttribute(typeNode, Keywords.TARGETNAMESPACE) != null) 2149if (attrs[i].LocalName == Keywords.MSD_ALLOWDBNULL && attrs[i].NamespaceURI == Keywords.MSDNS) 2150if (attrs[i].Value == Keywords.FALSE) 2152if (attrs[i].LocalName == Keywords.MSD_ORDINAL && attrs[i].NamespaceURI == Keywords.MSDNS) 2154if (attrs[i].LocalName == Keywords.MSD_DEFAULTVALUE && attrs[i].NamespaceURI == Keywords.MSDNS) 2216if (attr.SchemaTypeName.Namespace != Keywords.XSDNS) // it is UD Simple Type, can it be? 2226if (!string.IsNullOrEmpty(node.QualifiedName.Name) && node.QualifiedName.Namespace != Keywords.XSDNS) 2298if (XSDSchema.GetMsdataAttribute(typeNode!, Keywords.TARGETNAMESPACE) != null) 2328column.AllowDBNull = GetBooleanAttribute(attr, Keywords.MSD_ALLOWDBNULL, true); 2329string? defValue = GetMsdataAttribute(attr, Keywords.MSD_DEFAULTVALUE); 2343string? strDefault = (attrib.Use == XmlSchemaUse.Required) ? GetMsdataAttribute(attr, Keywords.MSD_DEFAULTVALUE) : attr.DefaultValue; 2391if (!string.IsNullOrEmpty(((XmlSchemaSimpleType)typeNode).Name) && ((XmlSchemaSimpleType)typeNode).QualifiedName.Namespace != Keywords.XSDNS) 2398simpleTypeNode = (xsdType.XmlBaseType != null && xsdType.XmlBaseType.Namespace != Keywords.XSDNS) ? 2404simpleTypeNode = (xsdType.XmlBaseType != null && xsdType.XmlBaseType.Namespace != Keywords.XSDNS) ? 2425if (string.IsNullOrEmpty(XSDSchema.GetMsdataAttribute(elem, Keywords.MSD_DATATYPE))) 2485if (XSDSchema.GetMsdataAttribute(typeNode!, Keywords.TARGETNAMESPACE) != null) 2529string tmp = GetStringAttribute(elem, Keywords.MSD_ORDINAL, (-1).ToString(CultureInfo.CurrentCulture)); 2569string? value = GetMsdataAttribute(node, Keywords.MSD_LOCALE); 2585if (GetBooleanAttribute(node, Keywords.MSD_USECURRENTLOCALE, false)) 2597value = GetMsdataAttribute(node, Keywords.MSD_DATASETNAME); 2603value = GetMsdataAttribute(node, Keywords.MSD_DATASETNAMESPACE); 2710bool isNested = GetBooleanAttribute(keyref, Keywords.MSD_ISNESTED, /*default:*/ false); 2787return GetMsdataAttribute(key, Keywords.MSD_TABLENS); 2818if (attrib.LocalName == Keywords.MSD_DATATYPE && 2819attrib.Prefix == Keywords.MSD && 2820attrib.NamespaceURI == Keywords.MSDNS) 2890(NamespaceURI == Keywords.XML_XMLNS && LocalName != "lang")) 2914(NamespaceURI == Keywords.XML_XMLNS && LocalName != "lang"))
System\Xml\XmlBoundElement.cs (1)
289w.WriteAttributeString("xmlns", "xsi", "http://www.w3.org/2000/xmlns/", Keywords.XSINS);
System\Xml\XmlDataDocument.cs (9)
725XmlAttribute attr = CreateAttribute(XSI, Keywords.XSI_NIL, Keywords.XSINS); 726attr.Value = Keywords.TRUE; 1458attr = CreateAttribute(XSI, Keywords.XSI_NIL, Keywords.XSINS); 1459attr.Value = Keywords.TRUE; 1465attr.Value = Keywords.TRUE; 1473attr.Value = Keywords.FALSE; 1543attr.Value = Keywords.FALSE;