XPathNavigator.Compile() throws exception on equation

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi all;
I am getting an exception calling:
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; private <span style="color:Blue; object SelectSingleNodeTyped(XPathNavigator nav, <span style="color:Blue; string <span style="color:Blue; select, XsltArgumentList parameters)
{

XPathExpression exp = nav.Compile(<span style="color:#A31515; "-7.105427357601002E-15 + 1.1234E-4");

[/code]
The exception is:

<pre>System.Xml.XPath.XPathException occurred
Message=-7.105427357601002E-15 + 1.1234E-4 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/>
Why?

thanks - dave

<hr class="sig http://www.the-business-intelligence-guy.com/2011/05/the-future-of-bi-raw-uncut.html The future of B.I. - Raw & Uncut

View the full article
 
Back
Top