<xpath>

XPath/CSS Selector plugin that provides expression evaluation functionality

Core v2.2.0

Overview

The XPath plugin evaluates XPath expressions OR CSS selectors against XML/HTML content. It requires both content and expression as sub-elements.

Usage Examples

Examples

example-1.xml
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://org.webharvest/schema/2.1/core">
<!-- Extract single element text -->
<xpath expression="//title/text()">
  <html-to-xml>
    <http url="https://example.com"/>
  </html-to-xml>
</xpath>
</config>

Parameters

Important Notes

Related Processors