I show how to query an XML document with XPath in C# in this video. I start with an overview explanation of XPath, and how it can be used. Next, I implement several examples of these XPath expressions in a C# project in Visual Studio 2019. Then, I start the application in debug mode, upload an XML file, and show the results that the XPath query generates. I use several classes and techniques from System.Xml: XmlNode, XmlNodeList, XmlDocument, and InnerText.
This video is part of a playlist on integrating JSON Data APIs in C# Visual Studio 2019: • Azure Fundamentals: Ov...
Source code is freely available on GitHub at github.com/discospiff/PlantDiary
Негізгі бет XPath and C#: Get data from an XML Document
Пікірлер: 21