Query - ThomasWeinert/FluentDOM GitHub Wiki

FluentDOM\Query

FluentDOM\Query is a node list for element and text nodes. It is an implementation of jQuery APIs for traversing and manipulating XML DOMs. FluentDOM\Query extends from FluentDOM\Nodes.

Basic Usage

FluentDOM\Query can be created using the FluentDOM() function, the FluentDOM factory class functions or by creating a FluentDOM\Query object.

$fd = FluentDOM('<greeting>Hello World</greeting>');
echo $fd->find('//greeting')->text();

Traversing

Manipulation

Manipulation - Attributes

Manipulation - Data Attributes

Manipulation - Css

⚠️ **GitHub.com Fallback** ⚠️