Exemplo n.º 1
0
 private static string GetNodePath(XmlNode xmlNode)
 {
     if (xmlNode == null)
     {
         return("");
     }
     return(xmlNode.ParentNode == null ? "\\" + xmlNode.LocalName : MamlNode.GetNodePath(xmlNode.ParentNode) + "\\" + xmlNode.LocalName + MamlNode.GetNodeIndex(xmlNode));
 }
Exemplo n.º 2
0
 private void WriteMamlInvalidChildNodeError(XmlNode node, XmlNode childNode) => this.Errors.Add(new ErrorRecord((Exception) new ParentContainsErrorRecordException("MamlInvalidChildNodeError"), "MamlInvalidChildNodeError", ErrorCategory.SyntaxError, (object)null)
 {
     ErrorDetails = new ErrorDetails(Assembly.GetExecutingAssembly(), "HelpErrors", "MamlInvalidChildNodeError", new object[3]
     {
         (object)node.LocalName,
         (object)childNode.LocalName,
         (object)MamlNode.GetNodePath(node)
     })
 });