FluentDOM icon indicating copy to clipboard operation
FluentDOM copied to clipboard

A fluent api for working with XML in PHP

Results 10 FluentDOM issues
Sort by recently updated
recently updated
newest added

Implement JSON to XML mapping using in Xpath/XSLT 2.0. https://www.w3.org/TR/xpath-functions-31/#func-parse-json

feature

https://www.w3.org/TR/dom41/#interface-parentnode

improvement

``` Paragraph 1 Paragraph 2Paragraph 3 ``` As there is no root, how can I search the `p` and replace it? I tired to use `filter` and `replace`, but it...

DOMNode::getNodePath() does not work well with namespaces at the moment. FluentDOM can have a namespace registration on the document, so it should be able to create more specific and readable...

feature
improvement

Add `NodeFilter` interface, `NodeIterator` and `TreeWalker` classes. `NodeFilter`: https://developer.mozilla.org/en-US/docs/Web/API/NodeFilter `NodeIterator`: https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator `TreeWalker`: https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker

feature

Select the top level nodes (document element) for new instances if a manipulation function is used before find().

suggestion

setAttributeNodeNS() actually behaves different from setAttributeNode(). Think about redefining the behavior or at least documenting it: ``` php $dom = new DOMDocument(); $dom->formatOutput = TRUE; $dom->appendChild($dom->createElement('element')); $dom->documentElement->setAttributeNS('urn:foo', 'foo:attribute', 42); $attribute...

note

Currently this library emits a lot of warnings on PHP. An example: ``` Deprecated: Return type of FluentDOM\Serializer\Factory\Group::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute...