>_ IzzyLab

Topic breakdown

XPath is a language for addressing nodes in XML: /config/host follows an exact path, //host finds the node at any depth, @attr refers to an attribute, functions like string() and count() return values, and text() is a node test that selects an element's text nodes. xmllint --xpath '<expression>' file evaluates it. The string(...) wrapper matters: without it xmllint returns an element in full with its tags, while string() gives just the text content. This is the main way to pull specific data out of XML configs and API responses.

What's checked

  1. host value extracted

What it looks like