xpath (RWBill) - 4/25/2006 1:26 PM PST RRS feed

  • Question

  • By: RWBill

    I am wanting to count the number of nodes in an xml file and display that 
    number in the content of a lable.  I have bound the data to content.  In the 
    data binding dialog it allows for an alternate xpath expression.  I do not 
    seem to be able to write the xpath statement correctly.  Would you be able to 
    show how this syntax should be.
    Monday, February 18, 2008 11:47 PM


  • By: Unni Ravindranathan (MS)
    The best way to do this as far as I can think is to parse the markup -
    create a collection of objects that you want to bind against and expose a
    property in the model that you can then bind against as well. I am
    personally not a big fan on XmlDataProvider - it is only useful for very
    limited cases.

    This posting is provided "AS IS" with no warranties, and confers no rights.

    "RWBill" <RWBill@discussions.microsoft.com> wrote in message

    Click to show or hide original message or reply text.

    Tuesday, February 19, 2008 4:58 PM