Skip to content
Thomas Weinert edited this page Jul 31, 2014 · 15 revisions

FluentDOM\Query

FluentDOM\Query is a node list for element and text nodes. It is an implementation of jQuery APIs for taversing and manipulation of 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