windows phone 7 - HtmlAgilityPack XPath Invalid Token -


Sometimes the exception is not thrown at all by seeing the invalid token exception and XPath is static. Not sure what is happening.

  doc.DocumentNode.SelectSingleNode ("// * [In [@ itemprop, 'softwareWarson']]");  

.

  Message: '// * [In this (@ itemprop,' softwareversion ')] has an invalid token StackTrace: MS.Internal.Xml.XPath.XPathParser.ParsePredicate on MS.Internal .xml.XPath.XPathParser.CheckToken (AstNode qyInput) MS.Internal.Xml.XPath.XPathParser.ParseStep at (AstNode qyInput) MS.Internal.Xml.XPath.XPathParser.ParseRelativeLocationPath on (AstNode qyInput) MS In MS.Internal.Xml.XPath.XPathParser.ParseLocationPath (AstNode qyInput) embedded in MS.Internal.Xml.XPath.XPathParser.ParsePathExpr (AstNode qyInput) MS. Explore XML.xpath.expathpresor.PersUnianXPro (MS.Innal.XML.xpath.expathpresor.partsUniereXpropper (ASTNodeQyInput) on MS.INNAlXaxx.xpath.expathpers.paras multiplexerxp (Astonode qyInput). MS.Inx.XPathParser .xPath.XPathParser on MS.Internal.XPath.XPathParser.ParseRelationalExpr (AstNode qyInput) on MS.Internal.Xml.XPath.XPathParser.ParseEqualityExpr (AstNode qyInput) on MS.Internal.Xml on PerseAdditiveExpr (AstNode qyInput). ParseAndExpr (AstNode qyInput) MS.Internal.Xml.XPath.XPathParser.ParseOrExpr (AstNode qy at MS.In Input) on System.Xml.XPath.XPathNavigator on System.Xml.Xpath.XPathExpression.Compile (string xpath, IXmlNamespaceResolver nsResolver) at ternal.Xml.Xpath.XPathParser.ParseXPathExpresion (string xpathExpresion). HtmlAgilityPack.HtmlNode.SelectSingleNode Select (String xpath) (string xpath)  

I also sometimes see this, with the exception of the same invalid token

  doc .DocumentNode.SelectNodes ("// * [include (class, 'item')]");  

"*" Try without:

Doc.DocumentNode.SelectSingleNode ("// [(itemprop ('softwareVersion')]);


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -