Import std.data.xml_path
std.data.xml_path
XmlPath: XPath 1.0's location paths over an XmlNode's tree, a subset of them: steps on the child, descendant, descendant-or-self, parent, ancestor, ancestor-or-self, following-sibling, preceding-sibling, self, and attribute axes, written out or abbreviated ('//', '.', '..', '@'); tests of a name, '*', text(), node(), comment(), and processing-instruction(); and predicates of positions, paths, strings, and numbers, compared with =, !=, <, <=, >, and >=, joined with and and or, and the functions last(), position(), count(), not(), contains(), starts-with(), string(), name(), true(), and false(). Paths can be joined with '|', which binds tighter than the comparisons, as in XPath. A path that starts with '/' starts at a document whose root element is the node it's selecting from. Names are matched as they're written, prefixes and all. A run of text and CDATA next to each other is one text node, as XPath's data model has no CDATA, a TEXT of their text when there are more than one.
std/data/xml_path.fb
Types
XmlPath
class
Public Class XmlPath
XPath 1.0's location paths, a subset of them, which select nodes of an XmlNode's tree.
-
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.