|
|
Browse by Tags
All Tags » Tips » XPaths
-
Another handy thing to know
String xpath = ''sum(/ns1:Invoice/ns1:InvoiceDetail/ns1:Lines/ns1:Line/ns1:AmountMatched)'';int amountMatched = Int32.Parse(this.MainDataSource.CreateNavigator().Evaluate(xpath, this.NamespaceManager).ToString);
The above code shows how to evaluate any valid xpath expression so that you can calculate ...
-
Bodacious!
I am very very happy, I have been struggling for ages with a rather spurious error - ''non-datatype error''. It turns out that it's due to having the xsi:nil parameter within my schema definition.
So to be sure that you are always able to set the value of your field use the following code (as provided by the most wonderful Scott Heim ...
|
|
|