예제 #1
0
        public static object Evaluate(OPathDocument opathDocument, OPathExpression opathExpression)
        {
            OPathNavigator targetNavigator = CreateNavigator(opathDocument);

            object opathValue = targetNavigator.Evaluate(opathExpression, OPathOptions.Defaults);

            return(opathValue);
        }
예제 #2
0
        public static object Evaluate(OPathDocument opathDocument, OPathExpression opathExpression,
                                      OPathOptions opathOptions, object defaultValue, ValueLogger valueLogger)
        {
            OPathNavigator targetNavigator = CreateNavigator(opathDocument);

            object opathValue =
                targetNavigator.Evaluate(opathExpression, opathOptions, defaultValue, valueLogger);

            return(opathValue);
        }
예제 #3
0
        public static OPathNavigator CreateNavigator(OPathDocument opathDocument)
        {
            OPathNavigator opathNavigator = new OPathNavigator(opathDocument);

            return(opathNavigator);
        }