예제 #1
0
 public static string ExtractContent(this XPathNavigator node)
 {
     if (node == null)
     {
         return((string)null);
     }
     return(XmlTextHelper.NormalizeIndentation(XPathNavigatorExtensions.ConstPattern.Replace(XPathNavigatorExtensions.ParamPattern.Replace(node.InnerXml, new MatchEvaluator(XPathNavigatorExtensions.GetParamRefName)), new MatchEvaluator(XPathNavigatorExtensions.GetConstRefName))));
 }
        public static string ExtractContent(this XPathNavigator node)
        {
            if (node == null)
            {
                return(null);
            }

            return(XmlTextHelper.NormalizeIndentation(
                       ConstPattern.Replace(
                           ParamPattern.Replace(node.InnerXml, GetParamRefName),
                           GetConstRefName)
                       ));
        }