-
Notifications
You must be signed in to change notification settings - Fork 20
Extended DOM
Thomas Weinert edited this page Jul 12, 2018
·
3 revisions
FluentDOM provides extended versions the most DOM node classes.
-
FluentDOM\DOM\Attribute extends
DOMAttribute
-
FluentDOM\DOM\CdataSection extends
DOMCdataSection
-
FluentDOM\DOM\Comment extends
DOMComment
-
FluentDOM\DOM\Document extends
DOMDocument
-
FluentDOM\DOM\DocumentFragment extends
DOMDocumentFragment
-
FluentDOM\DOM\EntityReference extends
DOMEntityReference
-
FluentDOM\DOM\Element extends
DOMElement
-
FluentDOM\DOM\Implementation extends
DOMImplementation
-
FluentDOM\DOM\ProcessingInstruction extends
DOMProcessingInstruction
-
FluentDOM\DOM\Text extends
DOMText
Nodes can be called as functions. This will evaluate an Xpath expression in the context of the node. The following two statements are equal:
$xpath = new FluentDOM\DOM\Xpath($node->ownerDocument);
$result = $xpath->evaluate($expression, $node);
$result = $node($expression);
Except for the FluentDOM\DOM\Document casting a node into a string will return the nodes text content. The document will return an XML string.
FluentDOM implements parts of DOM Living Standard. The following interfaces are implemented:
- NonElementParentNode
- ParentNode
- NonDocumentTypeChildNode
- ChildNode
- Home
- Getting Started
- Tasks
- Plugins
- Functions
- Lists
- Creator (5.1)
- CSS Selectors
- Convertors
- Loaders
- Serializers (5.1)
- Transformers (5.1)
- Extended DOM
- XMLReader (6.1)
- XMLWriter (6.1)
- Interfaces