Skip to content

Commit e9efb6a

Browse files
committed
Call XmlUtils to validate parent instead
1 parent d60dd66 commit e9efb6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/XmlContentTranslator/Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private bool OpenFirstXmlDocument(XmlDocument doc)
9999
var treeNode = new TreeNode(childNode.Name);
100100
treeNode.Tag = childNode;
101101
treeView1.Nodes.Add(treeNode);
102-
if (childNode.ChildNodes.Count > 0 && !XmlUtils.IsTextNode(childNode))
102+
if (XmlUtils.IsParentElement(childNode))
103103
{
104104
ExpandNode(treeNode, childNode);
105105
}

0 commit comments

Comments
 (0)