PHPackages                             volux/dom - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. volux/dom

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

volux/dom
=========

Extended DOM objects with jQuery-like functionality. Create and transform, traversal and manipulation well-formed XML and HTML.

v1.3.1(12y ago)1148MITPHPPHP &gt;=5.3.6

Since Jul 29Pushed 12y agoCompare

[ Source](https://github.com/volux/dom)[ Packagist](https://packagist.org/packages/volux/dom)[ Docs](https://github.com/volux/dom)[ RSS](/packages/volux-dom/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (7)Dependencies (1)Versions (8)Used By (0)

volux\\Dom v1.3.1 [![Build Status](https://camo.githubusercontent.com/00a4c7fb1d40e43b0193097d9cae7c186988732ea5275eb25384772790c70471/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f766f6c75782f646f6d2e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/volux/dom)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#voluxdom-v131-)

PHP version &gt;= 5.3.6 extended DOM Objects via \\DOMDocument::registerNodeClass with jQuery-like functionality:

- volux\\Dom\\Html &gt; volux\\Dom\\Document &gt; \\DOMDocument, volux\\Dom\\Attr &gt; \\DOMAttr, volux\\Dom\\Tag &gt; volux\\Dom\\Element &gt; \\DOMElement, volux\\Dom\\Text &gt; \\DOMText, volux\\Dom\\Comment &gt; \\DOMComment, volux\\Dom\\Cdata &gt; \\DOMCdataSection;
- volux\\Dom\\Table and volux\\Dom\\Form (with volux\\Dom\\Field) helpers;
- extended \\DOMXPath via volux\\Dom\\XPath with ***converting CSS selectors to XPath expression***;
- volux\\Dom\\Xslt class implement shadow load XSLT file or XSLT string (including from lambda function) and transformation with replacing target element;
- wrapped DOMNodelist and DOMNamedNodeMap with volux\\Set who implement \\ArrayIterator and \\RecursiveIterator interfaces.

### Links

[](#links)

[volux\\Dom Wiki](https://github.com/volux/dom/wiki)

### Install

[](#install)

Add to your composer.json

```
{
    "require": {
        "volux/dom": "dev-master"
    }
}
```

or copy `src\volux` to `vendor` directory and use your PRS-0 autoloader.

### Parse external html example

[](#parse-external-html-example)

```
