Usage Example: FluentDOM::filter() with XPath expression
<?php
/**
*
* @version $Id: filter-expr.php 322 2009-09-14 20:19:48Z subjective $
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @copyright Copyright (c) 2009 Bastian Feder, Thomas Weinert
*/
header('Content-type: text/plain');
$xml = <<<XML
<html>
<head></head>
<body>
<div></div>
<div class="middle"></div>
<div class="middle"></div>
<div class="middle"></div>
<div class="middle"></div>
<div></div>
</body>
</html>
XML;
require_once('../FluentDOM.php');
->attr('style', 'text-align: center;');
?>
|
|