locked
how to filter and load data from xml file RRS feed

  • Question

  • Suppose i have xml file which has customer data.  In that file some customer first name is missing.  So how could i pull only those customer data whose first name is not missing. How to do it with xmldocument class?

    Provide some example code. Thanks

    Friday, July 26, 2019 8:09 PM

Answers

  • You can use Linq-2-XML or you  can use Xpath against the XML loaded into the XMLdocument

    https://www.dotnetcurry.com/linq/564/linq-to-xml-tutorials-examples

    https://www.codeproject.com/Articles/18960/A-beginner-s-guide-to-XPath

    • Marked as answer by Sudip_inn Saturday, July 27, 2019 3:55 PM
    Saturday, July 27, 2019 12:29 PM