901 references to Keywords
System.Data.Common (901)
System\Data\Common\ObjectStorage.cs (6)
368string? typeName = xmlReader.GetAttribute(Keywords.MSD_INSTANCETYPE, Keywords.MSDNS); 371string? xsdTypeName = xmlReader.GetAttribute(Keywords.TYPE, Keywords.XSINS); // this xsd type: Base type polymorphism 377if (xmlReader.LookupNamespace(_typename[0]) == Keywords.XSDNS) 397if (typeName == Keywords.TYPEINSTANCE)
System\Data\Common\SqlUDTStorage.cs (4)
175string? typeName = xmlReader.GetAttribute(Keywords.MSD_INSTANCETYPE, Keywords.MSDNS); 178string? 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)
199string? attribValue = reader.GetAttribute(Keywords.MSD_SCHEMASERIALIZATIONMODE, Keywords.MSDNS); 200if (string.Equals(attribValue, Keywords.MSD_EXCLUDESCHEMA, StringComparison.OrdinalIgnoreCase)) 204else if (string.Equals(attribValue, Keywords.MSD_INCLUDESCHEMA, StringComparison.OrdinalIgnoreCase)) 1679if (reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) 1686if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 1693if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 1695throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 1706if (reader.NamespaceURI.Equals(Keywords.XSD_XMLNS_NS)) 1723if (reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) 1730if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 1737if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 1739throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 1801if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 1805string? attribValue = reader.GetAttribute(Keywords.MSD_FRAGMENTCOUNT, Keywords.MSDNS); // this must not move the position 1813while (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 2082if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) 2091if (reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) 2098if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 2105if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 2107throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 2120if (reader.NamespaceURI.Equals(Keywords.XSD_XMLNS_NS)) 2135if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) 2147if (!fSchemaFound && !fDataFound && reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) 2156if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 2164if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 2166throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 2169if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) 2434if ((reader.LocalName != Keywords.DIFFGRAM) && (reader.NamespaceURI != Keywords.DFFNS)) 2449if ((reader.NamespaceURI != Keywords.DFFNS) && (reader.NamespaceURI != Keywords.MSDNS)) 2473if (((reader.LocalName == Keywords.SQL_BEFORE) && (reader.NamespaceURI == Keywords.DFFNS)) || 2474((reader.LocalName == Keywords.MSD_ERRORS) && (reader.NamespaceURI == Keywords.DFFNS))) 2599if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) 2614if (reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) 2629if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 2645if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 2647throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 2659if (reader.NamespaceURI.Equals(Keywords.XSD_XMLNS_NS)) 2674if (reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) 2691if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 2707if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) 2721if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 2722throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 3379const string xsinill = Keywords.XSI + ":" + Keywords.XSI_NIL; 3391const string UseDataSetSchemaOnlyString = Keywords.MSD + ":" + Keywords.USEDATASETSCHEMAONLY; 3403throw ExceptionBuilder.InvalidAttributeValue(Keywords.USEDATASETSCHEMAONLY, useDataSetSchemaOnly!); 3407const string udtIsWrappedString = Keywords.MSD + ":" + Keywords.UDTCOLUMNVALUEWRAPPED; 3419throw ExceptionBuilder.InvalidAttributeValue(Keywords.UDTCOLUMNVALUEWRAPPED, _udtIsWrappedString!); 3445any.Namespace = Keywords.DFFNS;
System\Data\DataTable.cs (55)
5680if (reader.AttributeCount == 0 || (reader.LocalName == Keywords.DIFFGRAM && reader.NamespaceURI == Keywords.DFFNS)) 5689(reader.Prefix == Keywords.XMLNS) && 5690(reader.NamespaceURI == Keywords.XSD_XMLNS_NS)) 5759if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) 5779if (reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) 5788if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 5796if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 5807throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 5820if (reader.NamespaceURI.Equals(Keywords.XSD_XMLNS_NS)) 5836if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) 5848if (!fSchemaFound && !fDataFound && reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) 5857if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 5865if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 5876throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 5879if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) 6009if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) 6034if (reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) 6049if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 6065if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 6076throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 6088if (reader.NamespaceURI.Equals(Keywords.XSD_XMLNS_NS)) 6105if (reader.LocalName == Keywords.XDR_SCHEMA && reader.NamespaceURI == Keywords.XDRNS) 6121if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 6136if ((reader.LocalName == Keywords.DIFFGRAM) && (reader.NamespaceURI == Keywords.DFFNS)) 6159if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal)) 6170throw ExceptionBuilder.DataSetUnsupportedSchema(Keywords.XSDNS); 6292if ((reader.LocalName != Keywords.DIFFGRAM) && (reader.NamespaceURI != Keywords.DFFNS)) 6307if ((reader.NamespaceURI != Keywords.DFFNS) && (reader.NamespaceURI != Keywords.MSDNS)) 6322if (((reader.LocalName == Keywords.SQL_BEFORE) && (reader.NamespaceURI == Keywords.DFFNS)) || 6323((reader.LocalName == Keywords.MSD_ERRORS) && (reader.NamespaceURI == Keywords.DFFNS))) 6380while (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI == Keywords.XSDNS) 6657any.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); 387if (XMLSchema.GetBooleanAttribute(rowElement, Keywords.XSI_NIL, Keywords.XSINS, false) && string.IsNullOrEmpty(text)) 421if (XMLSchema.GetBooleanAttribute(e, Keywords.XSI_NIL, Keywords.XSINS, false) && string.IsNullOrEmpty(text)) 502if (parentElement.LocalName == Keywords.XSD_SCHEMA && parentElement.NamespaceURI == Keywords.XSDNS || 503parentElement.LocalName == Keywords.SQL_SYNC && parentElement.NamespaceURI == Keywords.UPDGNS || 504parentElement.LocalName == Keywords.XDR_SCHEMA && parentElement.NamespaceURI == Keywords.XDRNS) 566_XSD_XMLNS_NS = nameTable.Add(Keywords.XSD_XMLNS_NS); 567_XDR_SCHEMA = nameTable.Add(Keywords.XDR_SCHEMA); 568_XDRNS = nameTable.Add(Keywords.XDRNS); 569_SQL_SYNC = nameTable.Add(Keywords.SQL_SYNC); 570_UPDGNS = nameTable.Add(Keywords.UPDGNS); 571_XSD_SCHEMA = nameTable.Add(Keywords.XSD_SCHEMA); 572_XSDNS = nameTable.Add(Keywords.XSDNS); 574_DFFNS = nameTable.Add(Keywords.DFFNS); 575_MSDNS = nameTable.Add(Keywords.MSDNS); 576_DIFFID = nameTable.Add(Keywords.DIFFID); 577_HASCHANGES = nameTable.Add(Keywords.HASCHANGES); 578_ROWORDER = nameTable.Add(Keywords.ROWORDER); 910if (_dataReader.NamespaceURI == Keywords.DFFNS) 914case Keywords.DIFFID: // Is it a diffgeam ID ? 917case Keywords.HASCHANGES: // Has changes attribute ? 920case Keywords.HASERRORS: // Has errors attribute ? 926else if (_dataReader.NamespaceURI == Keywords.MSDNS) 928if (_dataReader.LocalName == Keywords.ROWORDER) 1079if ((hasChanges == Keywords.MODIFIED) || hasErrors) 1147xsiNilString = _dataReader.GetAttribute(Keywords.XSI_NIL, Keywords.XSINS); 1161xsiTypeString = _dataReader.GetAttribute(Keywords.TYPE, Keywords.XSINS); 1162typeName = _dataReader.GetAttribute(Keywords.MSD_INSTANCETYPE, Keywords.MSDNS);
System\Data\XMLDiffLoader.cs (41)
23while (reader.LocalName == Keywords.SQL_BEFORE && reader.NamespaceURI == Keywords.DFFNS) 29while (reader.LocalName == Keywords.MSD_ERRORS && reader.NamespaceURI == Keywords.DFFNS) 32Debug.Assert(reader.LocalName == Keywords.MSD_ERRORS && reader.NamespaceURI == Keywords.DFFNS, "something fishy"); 59while (reader.LocalName == Keywords.SQL_BEFORE && reader.NamespaceURI == Keywords.DFFNS) 65while (reader.LocalName == Keywords.MSD_ERRORS && reader.NamespaceURI == Keywords.DFFNS) 68Debug.Assert(reader.LocalName == Keywords.MSD_ERRORS && reader.NamespaceURI == Keywords.DFFNS, "something fishy"); 93diffId = ssync.GetAttribute(Keywords.DIFFID, Keywords.DFFNS)!; 94bool hasErrors = ssync.GetAttribute(Keywords.HASERRORS, Keywords.DFFNS) == Keywords.TRUE; 145diffId = ssync.GetAttribute(Keywords.DIFFID, Keywords.DFFNS)!; 146bool hasErrors = ssync.GetAttribute(Keywords.HASERRORS, Keywords.DFFNS) == Keywords.TRUE; 190string diffId = ssync.GetAttribute(Keywords.DIFFID, Keywords.DFFNS)!; 192string? rowError = ssync.GetAttribute(Keywords.MSD_ERROR, Keywords.DFFNS); 204string colError = ssync.GetAttribute(Keywords.MSD_ERROR, Keywords.DFFNS)!; 231string diffId = ssync.GetAttribute(Keywords.DIFFID, Keywords.DFFNS)!; 246string? rowError = ssync.GetAttribute(Keywords.MSD_ERROR, Keywords.DFFNS); 259string? colError = ssync.GetAttribute(Keywords.MSD_ERROR, Keywords.DFFNS); 310value = row.GetAttribute(Keywords.ROWORDER, Keywords.MSDNS); 330value = row.GetAttribute("hidden" + col.EncodedColumnName, Keywords.MSDNS); 387bool isPolymorphism = (column.DataType == typeof(object) || (row.GetAttribute(Keywords.MSD_INSTANCETYPE, Keywords.MSDNS) != null) || 388(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); 550_dsElement = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 585XmlElement rootSchema = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SCHEMA, Keywords.XSDNS); 592rootSchema.SetAttribute(Keywords.XSDID, XmlConvert.EncodeLocalName(_ds.DataSetName)); 596rootSchema.SetAttribute(Keywords.XSDID, XmlConvert.EncodeLocalName("NewDataSet")); 630rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, _ds.Namespace); 685_constraintSeparator = xd.CreateElement(Keywords.XSD_PREFIX, "SHOULDNOTBEHERE", Keywords.XSDNS); 722el.SetAttribute(Keywords.MINOCCURS, top[i].MinOccurs.ToString(CultureInfo.InvariantCulture)); 726el.SetAttribute(Keywords.MAXOCCURS, Keywords.ZERO_OR_MORE); 730el.SetAttribute(Keywords.MAXOCCURS, top[i].MaxOccurs.ToString(CultureInfo.InvariantCulture)); 737XmlElement node = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 739node.SetAttribute(Keywords.REF, top[i].EncodedTableName); 741node.SetAttribute(Keywords.REF, ((string)_prefixes[top[i].Namespace]!) + ':' + top[i].EncodedTableName); 751XmlElement node = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 752node.SetAttribute(Keywords.REF, ((string)_prefixes[top[i].Namespace]!) + ':' + top[i].EncodedTableName); 792nodeAnn = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ANNOTATION, Keywords.XSDNS); 795nodeApp = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_APPINFO, Keywords.XSDNS); 817XmlElement _import = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_IMPORT, Keywords.XSDNS); 818_import.SetAttribute(Keywords.XSD_NAMESPACE, ns); 821_import.SetAttribute(Keywords.XSD_SCHEMALOCATION, _fileName + "_" + _prefixes[ns] + ".xsd"); 827rootSchema.SetAttribute(Keywords.MSD_FRAGMENTCOUNT, Keywords.MSDNS, _namespaces.Count.ToString(CultureInfo.InvariantCulture)); 886XmlElement _import2 = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_IMPORT, Keywords.XSDNS); 887_import2.SetAttribute(Keywords.XSD_NAMESPACE, imp_ns); 892_import2.SetAttribute(Keywords.XSD_SCHEMALOCATION, _fileName + _fileExt); // for the dataset namespace don't append anything 894_import2.SetAttribute(Keywords.XSD_SCHEMALOCATION, _fileName + "_" + prefix + ".xsd"); 943_dsElement = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 956XmlElement rootSchema = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SCHEMA, Keywords.XSDNS); 962_constraintSeparator = xd.CreateElement(Keywords.XSD_PREFIX, "SHOULDNOTBEHERE", Keywords.XSDNS); 978rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, _ds.Namespace); 992rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, dt.Namespace); 1022_dsElement.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(dataSet.DataSetName)); 1023_dsElement.SetAttribute(Keywords.MSD_ISDATASET, Keywords.MSDNS, Keywords.TRUE); 1025_dsElement.SetAttribute(Keywords.MSD_MAINDATATABLE, Keywords.MSDNS, XmlConvert.EncodeLocalName(((dt!.Namespace.Length == 0) ? dt.TableName : (dt.Namespace + ":" + dt.TableName)))); 1030_dsElement.SetAttribute(Keywords.MSD_CASESENSITIVE, Keywords.MSDNS, Keywords.TRUE); 1034_dsElement.SetAttribute(Keywords.MSD_LOCALE, Keywords.MSDNS, dataSet.Locale.ToString()); 1038_dsElement.SetAttribute(Keywords.MSD_USECURRENTLOCALE, Keywords.MSDNS, Keywords.TRUE); 1045_dsElement.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName("NewDataSet")); 1046_dsElement.SetAttribute(Keywords.MSD_ISDATASET, Keywords.MSDNS, Keywords.TRUE); 1047_dsElement.SetAttribute(Keywords.MSD_MAINDATATABLE, Keywords.MSDNS, XmlConvert.EncodeLocalName(((dt.Namespace.Length == 0) ? dt.TableName : (dt.Namespace + ":" + dt.TableName)))); 1052_dsElement.SetAttribute(Keywords.MSD_CASESENSITIVE, Keywords.MSDNS, Keywords.TRUE); 1056_dsElement.SetAttribute(Keywords.MSD_LOCALE, Keywords.MSDNS, dt.Locale.ToString()); 1060_dsElement.SetAttribute(Keywords.MSD_USECURRENTLOCALE, Keywords.MSDNS, Keywords.TRUE); 1065XmlElement type = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_COMPLEXTYPE, Keywords.XSDNS); 1067XmlElement compositor = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_CHOICE, Keywords.XSDNS); 1068compositor.SetAttribute(Keywords.MINOCCURS, Keywords.ZERO_DIGIT); 1069compositor.SetAttribute(Keywords.MAXOCCURS, Keywords.ZERO_OR_MORE); 1142xw.WriteAttributeString(Keywords.MSD, Keywords.MSD_SCHEMASERIALIZATIONMODE, Keywords.MSDNS, Keywords.MSD_EXCLUDESCHEMA); 1149XmlElement root = dc.CreateElement(Keywords.MSD, Keywords.MSD_RELATION, Keywords.MSDNS); 1152root.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(rel.RelationName)); 1154root.SetAttribute(Keywords.MSD_PARENT, Keywords.MSDNS, rel.ParentKey.Table.EncodedTableName); 1155root.SetAttribute(Keywords.MSD_CHILD, Keywords.MSDNS, rel.ChildKey.Table.EncodedTableName); 1158root.SetAttribute(Keywords.MSD_PARENTTABLENS, Keywords.MSDNS, rel.ParentKey.Table.Namespace); 1161root.SetAttribute(Keywords.MSD_CHILDTABLENS, Keywords.MSDNS, rel.ChildKey.Table.Namespace); 1173builder.Append(Keywords.MSD_KEYFIELDSEP).Append(key[i].EncodedColumnName); 1177root.SetAttribute(Keywords.MSD_PARENTKEY, Keywords.MSDNS, text); 1194builder.Append(Keywords.MSD_KEYFIELDSEP).Append(key[i].EncodedColumnName); 1198root.SetAttribute(Keywords.MSD_CHILDKEY, Keywords.MSDNS, text); 1207if (n is XmlElement e && e.GetAttribute(Keywords.NAME) == name) 1220schemaEl = _dc!.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SCHEMA, Keywords.XSDNS); 1224string prefix = Keywords.APP + Convert.ToString(++_prefixCount, CultureInfo.InvariantCulture); 1238string keyword = Keywords.TYPE; 1240keyword = Keywords.BASE; 1329typeName = Keywords.XSD_ANYTYPE; 1343root.SetAttribute(Keywords.MSD_DATATYPE, Keywords.MSDNS, col.DataType.FullName); 1345else if ((dt.Length == 0) || col.ImplementsINullable || ((dt == Keywords.XSD_ANYTYPE) && (col.XmlDataType != Keywords.XSD_ANYTYPE))) 1357root.SetAttribute("ReadOnly", Keywords.MSDNS, Keywords.TRUE); 1360root.SetAttribute("Expression", Keywords.MSDNS, col.Expression); 1364root.SetAttribute("AutoIncrement", Keywords.MSDNS, Keywords.TRUE); 1368root.SetAttribute("AutoIncrementSeed", Keywords.MSDNS, col.AutoIncrementSeed.ToString(CultureInfo.InvariantCulture)); 1371root.SetAttribute("AutoIncrementStep", Keywords.MSDNS, col.AutoIncrementStep.ToString(CultureInfo.InvariantCulture)); 1374root.SetAttribute("Caption", Keywords.MSDNS, col.Caption); 1377root.SetAttribute("Prefix", Keywords.MSDNS, col.Prefix); 1381root.SetAttribute("DateTimeMode", Keywords.MSDNS, col.DateTimeMode.ToString()); 1425string refString = (col.ColumnMapping != MappingType.Element) ? Keywords.XSD_ATTRIBUTE : Keywords.XSD_ELEMENT; 1426root = dc.CreateElement(Keywords.XSD_PREFIX, refString, Keywords.XSDNS); 1429root.SetAttribute(Keywords.NAME, col.EncodedColumnName); 1438root.SetAttribute(Keywords.FORM, Keywords.UNQUALIFIED); 1453root.SetAttribute(Keywords.MSD_ALLOWDBNULL, Keywords.MSDNS, Keywords.FALSE); 1457root.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, (bool)(col.DefaultValue) ? Keywords.TRUE : Keywords.FALSE); 1461root.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, col.ConvertObjectToXml(col.DefaultValue)); 1473root.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, (bool)(col.DefaultValue) ? Keywords.TRUE : Keywords.FALSE); 1477root.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, col.ConvertObjectToXml(col.DefaultValue)); 1484root.SetAttribute(Keywords.DEFAULT, (bool)(col.DefaultValue) ? Keywords.TRUE : Keywords.FALSE); 1490root.SetAttribute(Keywords.DEFAULT, col.ConvertObjectToXml(col.DefaultValue)); 1500root.SetAttribute(Keywords.TARGETNAMESPACE, Keywords.MSDNS, col.Namespace); 1508root = _dc.CreateElement(Keywords.XSD_PREFIX, refString, Keywords.XSDNS); 1509root.SetAttribute(Keywords.REF, _prefixes[col.Namespace] + ":" + col.EncodedColumnName); 1523root.SetAttribute(Keywords.USE, Keywords.REQUIRED); 1528root.SetAttribute(Keywords.USE, Keywords.PROHIBITED); 1532root.SetAttribute(Keywords.MINOCCURS, minOccurs.ToString(CultureInfo.InvariantCulture)); 1535root.SetAttribute(Keywords.MSD_ORDINAL, Keywords.MSDNS, col.Ordinal.ToString(CultureInfo.InvariantCulture)); 1562if (FindTypeNode(schNode, el.GetAttribute(Keywords.NAME)) == null) 1578if (XSDSchema.FEqualIdentity(child, Keywords.XSD_ELEMENT, Keywords.XSDNS) || 1579XSDSchema.FEqualIdentity(child, Keywords.XSD_ATTRIBUTE, Keywords.XSDNS) || 1580XSDSchema.FEqualIdentity(child, Keywords.XSD_COMPLEXTYPE, Keywords.XSDNS) || 1581XSDSchema.FEqualIdentity(child, Keywords.XSD_SIMPLETYPE, Keywords.XSDNS)) 1583if (child.GetAttribute(Keywords.NAME) == strType) 1723XmlElement root = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 1728root.SetAttribute(Keywords.TARGETNAMESPACE, Keywords.MSDNS, table.Namespace); 1731root.SetAttribute(Keywords.NAME, table.EncodedTableName); 1767root.SetAttribute(Keywords.FORM, Keywords.UNQUALIFIED); 1775root.SetAttribute(Keywords.MSD_CASESENSITIVE, Keywords.MSDNS, table.CaseSensitive.ToString()); 1779root.SetAttribute(Keywords.MSD_LOCALE, Keywords.MSDNS, table.Locale.ToString()); 1817_typeName = Keywords.XSD_ANYTYPE; 1820root.SetAttribute(Keywords.TYPE, XSDSchema.QualifiedName(_typeName)); 1825XmlElement type = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_COMPLEXTYPE, Keywords.XSDNS); 1841type.SetAttribute(Keywords.NAME, table.TypeName.Name); 1851root.SetAttribute(Keywords.TYPE, NewDiffgramGen.QualifiedName((string)_prefixes[table.TypeName.Namespace]!, table.TypeName.Name)); 1860XmlElement sc = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SIMPLECONTENT, Keywords.XSDNS); 1869root.SetAttribute(Keywords.XSD_NILLABLE, string.Empty, Keywords.TRUE); 1873sc.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, colTxt.ConvertObjectToXml(colTxt.DefaultValue)); 1876sc.SetAttribute(Keywords.MSD_COLUMNNAME, Keywords.MSDNS, colTxt.ColumnName); 1877sc.SetAttribute(Keywords.MSD_ORDINAL, Keywords.MSDNS, colTxt.Ordinal.ToString(CultureInfo.InvariantCulture)); 1880XmlElement ext = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_EXTENSION, Keywords.XSDNS); 1886compositor = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SEQUENCE, Keywords.XSDNS); 1926NestedTable = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 1928NestedTable.SetAttribute(Keywords.REF, table.EncodedTableName); 1932NestedTable = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 1933NestedTable.SetAttribute(Keywords.REF, childTable.EncodedTableName); 1940NestedTable.SetAttribute(Keywords.MINOCCURS, "0"); 1941NestedTable.SetAttribute(Keywords.MAXOCCURS, Keywords.ZERO_OR_MORE); 1952NestedTable = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS); 1953NestedTable.SetAttribute(Keywords.REF, ((string)_prefixes[childTable.Namespace]!) + ':' + childTable.EncodedTableName); 1960XmlElement nodeAnn = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ANNOTATION, Keywords.XSDNS); 1963XmlElement nodeApp = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_APPINFO, Keywords.XSDNS); 1979string xpathprefix = (_ds != null) ? (_ds.Namespace.Length != 0 ? Keywords.MSTNS_PREFIX : string.Empty) : string.Empty; 2000constraint = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_UNIQUE, Keywords.XSDNS); 2003constraint.SetAttribute(Keywords.MSD_TABLENS, Keywords.MSDNS, table.Namespace); 2005constraint.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(unique.SchemaName)); 2008constraint.SetAttribute(Keywords.MSD_CONSTRAINTNAME, Keywords.MSDNS, unique.ConstraintName); 2013selector = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SELECTOR, Keywords.XSDNS); 2014selector.SetAttribute(Keywords.XSD_XPATH, ".//" + xpathprefix + table.EncodedTableName); 2021constraint.SetAttribute(Keywords.MSD_PRIMARYKEY, Keywords.MSDNS, Keywords.TRUE); 2048field = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_FIELD, Keywords.XSDNS); 2049field.SetAttribute(Keywords.XSD_XPATH, encodedName.ToString()); 2081constraint = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_KEY, Keywords.XSDNS); 2082constraint.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(foreign.SchemaName)); 2085constraint.SetAttribute(Keywords.MSD_TABLENS, Keywords.MSDNS, table.Namespace); 2087selector = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SELECTOR, Keywords.XSDNS); 2088selector.SetAttribute(Keywords.XSD_XPATH, ".//" + xpathprefix + foreign.RelatedTable.EncodedTableName); 2116field = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_FIELD, Keywords.XSDNS); 2117field.SetAttribute(Keywords.XSD_XPATH, encodedName.ToString()); 2126constraint = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_KEYREF, Keywords.XSDNS); 2128constraint.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(foreign.SchemaName)); 2131constraint.SetAttribute(Keywords.MSD_TABLENS, Keywords.MSDNS, foreign.Table!.Namespace); 2134constraint.SetAttribute(Keywords.REFER, XmlConvert.EncodeLocalName(foreign.SchemaName)); 2136constraint.SetAttribute(Keywords.REFER, XmlConvert.EncodeLocalName(_constraint.SchemaName)); 2141constraint.SetAttribute(Keywords.MSD_CONSTRAINTNAME, Keywords.MSDNS, foreign.ConstraintName); 2145constraint.SetAttribute(Keywords.MSD_CONSTRAINTONLY, Keywords.MSDNS, Keywords.TRUE); 2150constraint.SetAttribute(Keywords.MSD_ISNESTED, Keywords.MSDNS, Keywords.TRUE); 2155constraint.SetAttribute(Keywords.MSD_RELATIONNAME, Keywords.MSDNS, XmlConvert.EncodeLocalName(rel.RelationName)); 2159selector = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SELECTOR, Keywords.XSDNS); 2160selector.SetAttribute(Keywords.XSD_XPATH, ".//" + xpathprefix + table.EncodedTableName); 2165constraint.SetAttribute(Keywords.MSD_ACCEPTREJECTRULE, Keywords.MSDNS, 2169constraint.SetAttribute(Keywords.MSD_UPDATERULE, Keywords.MSDNS, TranslateRule(foreign.UpdateRule)); 2172constraint.SetAttribute(Keywords.MSD_DELETERULE, Keywords.MSDNS, TranslateRule(foreign.DeleteRule)); 2200field = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_FIELD, Keywords.XSDNS); 2201field.SetAttribute(Keywords.XSD_XPATH, encodedName.ToString()); 2235root.SetAttribute(Keywords.MSD_DATATYPE, Keywords.MSDNS, result); 2347_xmlw.WriteStartElement(Keywords.DFF, Keywords.DIFFGRAM, Keywords.DFFNS); 2348_xmlw.WriteAttributeString(Keywords.XMLNS, Keywords.MSD, null, Keywords.MSDNS); 2433_xmlw.WriteStartElement(Keywords.DFF, Keywords.MSD_ERRORS, Keywords.DFFNS); 2437_xmlw.WriteAttributeString(Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, row.Table.TableName + row.rowID.ToString(CultureInfo.InvariantCulture)); 2438_xmlw.WriteAttributeString(Keywords.DFF, Keywords.MSD_ERROR, Keywords.DFFNS, row.RowError); 2457_xmlw.WriteStartElement(Keywords.DFF, Keywords.MSD_ERRORS, Keywords.DFFNS); 2462_xmlw.WriteAttributeString(Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, row.Table.TableName + row.rowID.ToString(CultureInfo.InvariantCulture)); 2468_xmlw.WriteAttributeString(Keywords.DFF, Keywords.MSD_ERROR, Keywords.DFFNS, error); 2488_xmlw.WriteStartElement(Keywords.DFF, Keywords.SQL_BEFORE, Keywords.DFFNS); 2511_xmlw.WriteAttributeString(Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, rowIDString); 2514_xmlw.WriteAttributeString(Keywords.DFF, Keywords.HASERRORS, Keywords.DFFNS, Keywords.TRUE); 2517_xmlw.WriteAttributeString(Keywords.DFF, Keywords.DIFFPID, Keywords.DFFNS, parentId); 2519_xmlw.WriteAttributeString(Keywords.MSD, Keywords.ROWORDER, Keywords.MSDNS, _rowsOrder[row]!.ToString()); 2544_xmlw.WriteAttributeString(Keywords.XSI, Keywords.XSI_NIL, Keywords.XSINS, Keywords.TRUE); 2556_xmlw.WriteAttributeString(Keywords.MSD, "hidden" + col.EncodedColumnName, Keywords.MSDNS, value); 2580_xmlw.WriteAttributeString(Keywords.XML, Keywords.SPACE, Keywords.XML_XMLNS, Keywords.PRESERVE); 2594_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, DataStorage.GetQualifiedName(valuesType)); 2620_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, valuesType.FullName); 2624_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, Keywords.TYPEINSTANCE); 2628string xsdTypeName = Keywords.XSD_PREFIXCOLON + XmlTreeGen.XmlDataTypeName(valuesType); 2629_xmlw.WriteAttributeString(Keywords.XSI, Keywords.TYPE, Keywords.XSINS, xsdTypeName); 2630_xmlw.WriteAttributeString(Keywords.XSD_PREFIX, Keywords.XMLNS, Keywords.XSDNS, xsdTypeName); 2798_xmlw.WriteStartElement(prefix, Keywords.DOCUMENTELEMENT, (_dt!.Namespace == null) ? "" : _dt.Namespace); 2851_xmlw.WriteStartElement(prefix, Keywords.DOCUMENTELEMENT, _dt!.Namespace); 2856_xmlw.WriteStartElement(prefix, Keywords.DOCUMENTELEMENT, _ds.Namespace); 2865_xmlw.WriteAttributeString(Keywords.XMLNS, Keywords.XSI, Keywords.XSD_XMLNS_NS, Keywords.XSINS); 2933_xmlw.WriteAttributeString(Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, row.Table.TableName + row.rowID.ToString(CultureInfo.InvariantCulture)); 2935_xmlw.WriteAttributeString(Keywords.MSD, Keywords.ROWORDER, Keywords.MSDNS, _rowsOrder![row]!.ToString()); 2939_xmlw.WriteAttributeString(Keywords.DFF, Keywords.HASCHANGES, Keywords.DFFNS, Keywords.INSERTED); 2943_xmlw.WriteAttributeString(Keywords.DFF, Keywords.HASCHANGES, Keywords.DFFNS, Keywords.MODIFIED); 2948_xmlw.WriteAttributeString(Keywords.DFF, Keywords.HASERRORS, Keywords.DFFNS, Keywords.TRUE); 2977_xmlw.WriteAttributeString(Keywords.MSD, "hidden" + col.EncodedColumnName, Keywords.MSDNS, col.ConvertObjectToXml(value)); 2991_xmlw.WriteAttributeString(Keywords.XSI, Keywords.XSI_NIL, Keywords.XSINS, Keywords.TRUE); 3013_xmlw.WriteAttributeString(Keywords.XML, Keywords.SPACE, Keywords.XML_XMLNS, Keywords.PRESERVE); 3025_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, DataStorage.GetQualifiedName(valuesType)); 3049_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, valuesType.FullName); 3053_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, Keywords.TYPEINSTANCE); 3057string xsdTypeName = Keywords.XSD_PREFIXCOLON + XmlTreeGen.XmlDataTypeName(valuesType); 3058_xmlw.WriteAttributeString(Keywords.XSI, Keywords.TYPE, Keywords.XSINS, xsdTypeName); 3059_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)) 713string mainName = GetStringAttribute(_dsElement, Keywords.MSD_MAINDATATABLE, ""); 866if (FEqualIdentity(relations[i], Keywords.MSD_RELATION, Keywords.MSDNS)) 1067if (ccExtension.BaseTypeName.Namespace != Keywords.XSDNS) 1215if ((value == Keywords.TRUE) || (value == Keywords.ONE_DIGIT)) 1219if ((value == Keywords.FALSE) || (value == Keywords.ZERO_DIGIT)) 1283string? tableNs = GetMsdataAttribute(keyref, Keywords.MSD_TABLENS); 1305if (GetBooleanAttribute(keyref, Keywords.MSD_CONSTRAINTONLY, /*default:*/ false)) 1322string relName = XmlConvert.DecodeName(GetStringAttribute(keyref, Keywords.MSD_RELATIONNAME, keyref.Name!)); 1355if (GetBooleanAttribute(keyref, Keywords.MSD_ISNESTED, /*default:*/ false)) 1361string? acceptRejectRule = GetMsdataAttribute(keyref, Keywords.MSD_ACCEPTREJECTRULE); 1362string? updateRule = GetMsdataAttribute(keyref, Keywords.MSD_UPDATERULE); 1363string? deleteRule = GetMsdataAttribute(keyref, Keywords.MSD_DELETERULE); 1387throw ExceptionBuilder.MissingAttribute(Keywords.NAME); 1394string? tableNs = GetMsdataAttribute(keyNode, Keywords.MSD_TABLENS); 1403bool fPrimaryKey = GetBooleanAttribute(keyNode, Keywords.MSD_PRIMARYKEY, /*default:*/ false); 1584string? value = GetStringAttribute(typeNode, Keywords.MSD_CASESENSITIVE, ""); 1587value = GetStringAttribute(node, Keywords.MSD_CASESENSITIVE, ""); 1591if ((value == Keywords.TRUE) || (value == "True")) 1593if ((value == Keywords.FALSE) || (value == "False")) 1597value = GetMsdataAttribute(node, Keywords.MSD_LOCALE); 1683bool isNested = GetBooleanAttribute(keyref, Keywords.MSD_ISNESTED, /*default:*/ false); 1930if (_typeNs == Keywords.XSDNS) 1959if (!string.IsNullOrEmpty(typeNode.QualifiedName.Name) && typeNode.QualifiedName.Namespace != Keywords.XSDNS) 1968if ((ancestor != null) && (ancestor.QualifiedName.Namespace != Keywords.XSDNS)) 2026if (attrs[i].LocalName == Keywords.MSD_ALLOWDBNULL && attrs[i].NamespaceURI == Keywords.MSDNS) 2027if (attrs[i].Value == Keywords.FALSE) 2029if (attrs[i].LocalName == Keywords.MSD_ORDINAL && attrs[i].NamespaceURI == Keywords.MSDNS) 2031if (attrs[i].LocalName == Keywords.MSD_DEFAULTVALUE && attrs[i].NamespaceURI == Keywords.MSDNS) 2047if (XSDSchema.GetMsdataAttribute(typeNode, Keywords.TARGETNAMESPACE) != null) 2139if (attrs[i].LocalName == Keywords.MSD_ALLOWDBNULL && attrs[i].NamespaceURI == Keywords.MSDNS) 2140if (attrs[i].Value == Keywords.FALSE) 2142if (attrs[i].LocalName == Keywords.MSD_ORDINAL && attrs[i].NamespaceURI == Keywords.MSDNS) 2144if (attrs[i].LocalName == Keywords.MSD_DEFAULTVALUE && attrs[i].NamespaceURI == Keywords.MSDNS) 2205if (attr.SchemaTypeName.Namespace != Keywords.XSDNS) // it is UD Simple Type, can it be? 2215if (!string.IsNullOrEmpty(node.QualifiedName.Name) && node.QualifiedName.Namespace != Keywords.XSDNS) 2287if (XSDSchema.GetMsdataAttribute(typeNode!, Keywords.TARGETNAMESPACE) != null) 2317column.AllowDBNull = GetBooleanAttribute(attr, Keywords.MSD_ALLOWDBNULL, true); 2318string? defValue = GetMsdataAttribute(attr, Keywords.MSD_DEFAULTVALUE); 2332string? strDefault = (attrib.Use == XmlSchemaUse.Required) ? GetMsdataAttribute(attr, Keywords.MSD_DEFAULTVALUE) : attr.DefaultValue; 2379if (!string.IsNullOrEmpty(((XmlSchemaSimpleType)typeNode).Name) && ((XmlSchemaSimpleType)typeNode).QualifiedName.Namespace != Keywords.XSDNS) 2386simpleTypeNode = (xsdType.XmlBaseType != null && xsdType.XmlBaseType.Namespace != Keywords.XSDNS) ? 2392simpleTypeNode = (xsdType.XmlBaseType != null && xsdType.XmlBaseType.Namespace != Keywords.XSDNS) ? 2413if (string.IsNullOrEmpty(XSDSchema.GetMsdataAttribute(elem, Keywords.MSD_DATATYPE))) 2473if (XSDSchema.GetMsdataAttribute(typeNode!, Keywords.TARGETNAMESPACE) != null) 2517string tmp = GetStringAttribute(elem, Keywords.MSD_ORDINAL, (-1).ToString(CultureInfo.CurrentCulture)); 2556string? value = GetMsdataAttribute(node, Keywords.MSD_LOCALE); 2572if (GetBooleanAttribute(node, Keywords.MSD_USECURRENTLOCALE, false)) 2584value = GetMsdataAttribute(node, Keywords.MSD_DATASETNAME); 2590value = GetMsdataAttribute(node, Keywords.MSD_DATASETNAMESPACE); 2697bool isNested = GetBooleanAttribute(keyref, Keywords.MSD_ISNESTED, /*default:*/ false); 2774return GetMsdataAttribute(key, Keywords.MSD_TABLENS); 2805if (attrib.LocalName == Keywords.MSD_DATATYPE && 2806attrib.Prefix == Keywords.MSD && 2807attrib.NamespaceURI == Keywords.MSDNS) 2876(NamespaceURI == Keywords.XML_XMLNS && LocalName != "lang")) 2900(NamespaceURI == Keywords.XML_XMLNS && LocalName != "lang"))
System\Xml\XmlBoundElement.cs (1)
318w.WriteAttributeString("xmlns", "xsi", "http://www.w3.org/2000/xmlns/", Keywords.XSINS);
System\Xml\XmlDataDocument.cs (9)
746XmlAttribute attr = CreateAttribute(XSI, Keywords.XSI_NIL, Keywords.XSINS); 747attr.Value = Keywords.TRUE; 1475attr = CreateAttribute(XSI, Keywords.XSI_NIL, Keywords.XSINS); 1476attr.Value = Keywords.TRUE; 1482attr.Value = Keywords.TRUE; 1490attr.Value = Keywords.FALSE; 1560attr.Value = Keywords.FALSE;