EDN Admin
Well-known member
I am calling XPathNavigator.SelectSingleNode(".[@stateAbbreviation=NJ]"). And it is throwing an exception of:
<pre class="prettyprint System.Xml.XPath.XPathException occurred
Message=.[@stateAbbreviation=NJ] has an invalid token.
Source=System.Xml
StackTrace:
at MS.Internal.Xml.XPath.XPathParser.ParseXPathExpresion(String xpathExpresion)
at MS.Internal.Xml.XPath.QueryBuilder.Build(String query, Boolean allowVar, Boolean allowKey)
at MS.Internal.Xml.XPath.QueryBuilder.Build(String query, Boolean& needContext)
at System.Xml.XPath.XPathExpression.Compile(String xpath, IXmlNamespaceResolver nsResolver)
at System.Xml.XPath.XPathNavigator.Compile(String xpath)
at WindwardReportsDrivers.net.windward.datasource.xml.XPathDataSource.XPathDocNode.SelectSingleNodeTyped(XPathNavigator nav, String select, XsltArgumentList parameters)
InnerException:
[/code]
<br/>
What is illegal about this? This is driving me nuts!<br/>
thanks - dave <hr class="sig Who will win http://www.windward.net/Windward_International_Collegiate_Programming_Championships.php
The International Collegiate Programming Championships ?
View the full article
<pre class="prettyprint System.Xml.XPath.XPathException occurred
Message=.[@stateAbbreviation=NJ] has an invalid token.
Source=System.Xml
StackTrace:
at MS.Internal.Xml.XPath.XPathParser.ParseXPathExpresion(String xpathExpresion)
at MS.Internal.Xml.XPath.QueryBuilder.Build(String query, Boolean allowVar, Boolean allowKey)
at MS.Internal.Xml.XPath.QueryBuilder.Build(String query, Boolean& needContext)
at System.Xml.XPath.XPathExpression.Compile(String xpath, IXmlNamespaceResolver nsResolver)
at System.Xml.XPath.XPathNavigator.Compile(String xpath)
at WindwardReportsDrivers.net.windward.datasource.xml.XPathDataSource.XPathDocNode.SelectSingleNodeTyped(XPathNavigator nav, String select, XsltArgumentList parameters)
InnerException:
[/code]
<br/>
What is illegal about this? This is driving me nuts!<br/>
thanks - dave <hr class="sig Who will win http://www.windward.net/Windward_International_Collegiate_Programming_Championships.php
The International Collegiate Programming Championships ?
View the full article