Office Zealot

Where Office geeks come to play...
Welcome to Office Zealot Sign in | Join | Help
in Search

Browse by Tags

All Tags » Tips » XPaths
  • XPath Calculations

    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 ...
    Posted to Office Server 2007 Ramblings (Weblog) by bsandeman on October 19, 2006
  • Safe setting of field value through code

    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 ...
    Posted to Office Server 2007 Ramblings (Weblog) by bsandeman on October 12, 2006
Powered by Community Server (Commercial Edition), by Telligent Systems