Import std.data.xml_path
XmlPath
class
Public Class XmlPath
XPath 1.0's location paths, a subset of them, which select nodes of an XmlNode's tree.
Examples
Local root = Try Xml.Read("<a><b>1</b><c><b>2</b></c></a>")
Local everywhere = XmlPath("//b")
Expect(everywhere.Query(root).Count == 2)
Expect(XmlPath("c/b").Query(root)[0].Text == "2")-
The path
textwrites. Panics when it isn't one XmlPath reads. -
The nodes the path selects from
node, in the document's order, each once. An attribute is a node of its own, an ATTRIBUTE, made for what selects it. -
The path, as it was written.
Report an issue with this page or with FutureBlitz on GitHub.