Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CreateElement() [3/3]

override XmlElement System.Xml.XmlDataDocument.CreateElement ( string? prefix,
string localName,
string? namespaceURI )
inlinevirtual

Reimplemented from System.Xml.XmlDocument.

Definition at line 335 of file XmlDataDocument.cs.

336 {
337 if (prefix == null)
338 {
339 prefix = string.Empty;
340 }
341 if (namespaceURI == null)
342 {
343 namespaceURI = string.Empty;
344 }
346 {
347 return new XmlBoundElement(prefix, localName, namespaceURI, this);
348 }
351 if (dataTable != null)
352 {
353 DataRow dataRow = dataTable.CreateEmptyRow();
354 foreach (DataColumn column in dataTable.Columns)
355 {
356 if (column.ColumnMapping != MappingType.Hidden)
357 {
359 }
360 }
361 XmlBoundElement element = dataRow.Element;
363 return element;
364 }
365 return new XmlBoundElement(prefix, localName, namespaceURI, this);
366 }
DataTable SearchMatchingTableSchema(string localName, string namespaceURI)
static void SetRowValueToNull(DataRow row, DataColumn col)

References System.Xml.XmlDataDocument._fAssociateDataRow, System.Xml.XmlDataDocument._mapper, System.Xml.Dictionary, System.Xml.XmlDataDocument.EnsurePopulatedMode(), System.prefix, System.Xml.DataSetMapper.SearchMatchingTableSchema(), and System.Xml.XmlDataDocument.SetRowValueToNull().

Referenced by System.Xml.XmlDataDocument.CloneNode().