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

◆ LoadRows()

void System.Data.XmlDataLoader.LoadRows ( DataRow parentRow,
XmlNode parentElement )
inlineprivate

Definition at line 479 of file XmlDataLoader.cs.

480 {
481 if (parentElement == null || (parentElement.LocalName == "schema" && parentElement.NamespaceURI == "http://www.w3.org/2001/XMLSchema") || (parentElement.LocalName == "sync" && parentElement.NamespaceURI == "urn:schemas-microsoft-com:xml-updategram") || (parentElement.LocalName == "Schema" && parentElement.NamespaceURI == "urn:schemas-microsoft-com:xml-data"))
482 {
483 return;
484 }
485 for (XmlNode xmlNode = parentElement.FirstChild; xmlNode != null; xmlNode = xmlNode.NextSibling)
486 {
487 if (!(xmlNode is XmlElement))
488 {
489 continue;
490 }
493 if (schemaForNode != null && schemaForNode is DataTable)
494 {
496 if (dataRow == null)
497 {
498 if (parentRow != null && FColumnElement(xmlElement))
499 {
500 continue;
501 }
502 dataRow = ((DataTable)schemaForNode).CreateEmptyRow();
505 }
507 }
508 else
509 {
510 LoadRows(null, xmlNode);
511 }
512 }
513 }
bool FColumnElement(XmlElement e)
readonly Hashtable _nodeToRowMap
void LoadRowData(DataRow row, XmlElement rowElement)
XmlToDatasetMap _nodeToSchemaMap
bool FIgnoreNamespace(XmlNode node)
void LoadRows(DataRow parentRow, XmlNode parentElement)
DataRow GetRowFromElement(XmlElement e)
object GetSchemaForNode(XmlNode node, bool fIgnoreNamespace)

References System.Data.XmlDataLoader._nodeToRowMap, System.Data.XmlDataLoader._nodeToSchemaMap, System.Xml.Dictionary, System.Data.XmlDataLoader.FColumnElement(), System.Data.XmlDataLoader.FIgnoreNamespace(), System.Data.XmlDataLoader.GetRowFromElement(), System.Data.XmlToDatasetMap.GetSchemaForNode(), System.Data.XmlDataLoader.LoadRowData(), and System.Data.XmlDataLoader.LoadRows().

Referenced by System.Data.XmlDataLoader.LoadData(), and System.Data.XmlDataLoader.LoadRows().