Exemplo n.º 1
0
 internal XPathExpression CompileMatchPattern( string xpath ) {
     bool hasPrefix;
     IQuery query = new QueryBuilder().BuildPatternQuery(xpath, out hasPrefix);
     return new CompiledXpathExpr( query, xpath, hasPrefix );
 } 
Exemplo n.º 2
0
 internal CompiledXpathExpr(IQuery query, string expression, bool hasPrefix) {
     _compiledQuery = query;
     _expr = expression;
     _builder = new QueryBuilder();
     _hasUnresolvedPrefix = hasPrefix;
 }
Exemplo n.º 3
0
 // Selection
 /// <include file='doc\XPathNavigator.uex' path='docs/doc[@for="XPathNavigator.Compile"]/*' />
 public virtual XPathExpression Compile( string xpath ) {
     bool hasPrefix;
     IQuery query = new QueryBuilder().Build(xpath, out hasPrefix);
     return new CompiledXpathExpr( query, xpath, hasPrefix );
 }