Skip to content
Haoran edited this page May 10, 2018 · 15 revisions

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

Clone this wiki locally