Я передаю следующее в своем коде C # (.NET 3.5):
XPathNavigator.
Compile(/windward-studios/Products/Product/@ProductID[position() le 10001])
и получаю:
System.Xml.XPath.XPathException произошла
Сообщение = '/ windward-studios / Products / Product / @ ProductID [position () le 10001]' имеет недопустимый токен.
Source = System.Xml StackTrace: в MS.Internal.Xml.XPath.XPathParser.CheckToken (LexKind t) в MS.Internal.Xml.XPath.XPathParser.ParsePredicate (AstNode qyInput) в MS.Internal.Xml.XPath.XPathParser.ParseStep (AstNode qyInput) в MS.Internal.Xml.XPathserPP.AstNode qyInput) при MS.Internal.Xml.XPath.XPathParser.ParseRelativeLocationPath (AstNode qyInput) в MS.Internal.Xml.XPath.XPathParser.ParseRelativeLocationPath (AstNode qyInput) в MS.Internal.Xml.XPath.XPathParser.ParseRelativeLocationPath (AstNode qyInput) в MS.Internal.Xml.XPath.XPathParser.ParseLocationPath (AstNode qyInput) в MS.Internal.Xml.XPath.XPathParser.ParsePathExpr (AstNode qyInput) в MS.Internal.Xml.XPath.XPathParser.Parse(AstNode qyInput) по адресу MS.Internal.Xml.XPath.XPathParser.ParseUnaryExpr (AstNode qyInput) по адресу MS.Internal.Xml.XPath.XPathParser.ParseMultiplicativeExpr (AstNode qyInput) по адресу MS.Internal.XExPr.qyInput) по адресу MS.Internal.Xml.XPath.XPathParser.ParseRelationalExpr (AstNode qyInput) по адресу MS.Internal.Xml.XPath.XPathParser.ParseEqualityExpr (AstNode qyInput) по адресу MS.Internal.Xml.XPath.ExParPlayer (XPath.XPar)по адресу MS.Internal.Xml.XPath.XPathParser.ParseOrExpr (AstNode qyInput) по адресу MS.Internal.Xml.XPath.XPathParser.ParseXPathExpresion (String xpathExpresion) по адресу MS.Internal.Xml.XPath.QueryBleanarBuilder., Boolean allowKey) в MS.Internal.Xml.XPath.QueryBuilder.Build (строковый запрос, Boolean & needContext) в System.Xml.XPath.XPathExpression.Compile (строковый xpath, IXmlNamespaceResolver nsResolverNS).(Строка xpath) в WindwardReportsDrivers.net.windward.datasource.xml.XPathDataSource.XPathDocNode.SelectNodes (XPathNavigator nav, String xpath, String sortXPath)
InnerException:
Есть идеи, почему?
спасибо - Дейв