Represents the path to an element or an attribute in a XML fragment.
Namespace:
MbUnit.FrameworkAssembly: MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
public class XmlPath |
| Visual Basic (Declaration) |
|---|
Public Class XmlPath |
Examples
Consider the following XML fragment:
<Root>
<Parent>
<Child value="123"/>
</Parent>
<Root>
The path to the attribute value of the element Child is specified as follows:
var path = XmlPath.Element("Root").Element("Parent").Element("Child").Attribute("value");
Inheritance Hierarchy
System..::.Object
MbUnit.Framework..::.XmlPath
MbUnit.Framework..::.XmlPath
