- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
if (dlgOpen.ShowDialog() != DialogResult.OK) return;
txtLog.Clear();
string customXMLFileName = dlgOpen.FileName;
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(customXMLFileName);
foreach (XmlNode node in xmlDoc.DocumentElement.ChildNodes)
{
if (node.Name == "Surfaces")
{
foreach (XmlNode childNode in node.ChildNodes)
{
txtLog.AppendText(childNode.Name.ToString() + Environment.NewLine);
foreach (XmlNode _childNode in childNode.ChildNodes)
{
if (_childNode.Name == "SourceData")
{
foreach (XmlNode __childNode in _childNode.ChildNodes)
{
txtLog.AppendText(__childNode.Name.ToString() + Environment.NewLine);
if (__childNode.Name == "Breaklines")
{
foreach (XmlNode ___childNode in __childNode.ChildNodes)
{
txtLog.AppendText(___childNode.Name.ToString() + Environment.NewLine);
XmlNode dataNode = ___childNode.LastChild;
string txtData = dataNode.InnerText;
txtLog.AppendText(txtData + Environment.NewLine);
}
}
}
}
}
}
}
}