Skip to content
Thomas Weinert edited this page Jun 7, 2014 · 15 revisions

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.

Basic Usage

FluentDOM\Query can be created using the FluentDOM() function, the FluentDOM factory class functions or by creating a FluentDOM\Query object. Additionally FluentDOM\Element::find() and FluentDOM\Document::find() will return a FluentDOM\Query instance.

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

Traversing

Manipulation

Clone this wiki locally