Proposal for "XML_CSSSelector"

» Metadata » Status
» Description

The CssParser class lets us to work with CSS Selector expressions. For example:


<?php

// loads an xml document and returns the nodes
// the function 'query' returns an array of DOMElement objects
$parser = new CssParser("doc.xml");
$nodes = $parser->query("books item:not(books item.sci-fi[author_id ^= arthur])");

// prints nodes
foreach ($nodes as $node) {
    echo $parser->dom2str($node) . "\n~~~\n";
}
?>
» Dependencies » Links
» Timeline » Changelog
  • First Draft: 2013-09-20
  • Proposal: 2013-09-25
  • Call for Votes: 2014-01-29
  • Voting Extended: 2014-02-05