repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Builder/namespaced_attribute.php | src/Xml/Dom/Builder/namespaced_attribute.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Builder;
use Closure;
use Dom\Element;
use function VeeWee\Xml\Assertion\assert_strict_prefixed_name;
/**
* @return Closure(Element): Element
*/
function namespaced_attribute(string $namespace, string $qualifiedName, string $value): Closure
{
return stat... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Builder/escaped_value.php | src/Xml/Dom/Builder/escaped_value.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Builder;
use Closure;
use Dom\Element;
/**
* @return Closure(Element): Element
*/
function escaped_value(string $value): Closure
{
return static function (Element $node) use ($value): Element {
return value(htmlspecialchars($value, ENT_XML1|ENT_Q... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Builder/attributes.php | src/Xml/Dom/Builder/attributes.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Builder;
use Closure;
use Dom\Element;
use function Psl\Iter\reduce_with_keys;
/**
* @param array<string, string> $attributes
* @return Closure(Element): Element
*/
function attributes(array $attributes): Closure
{
return static function (Element $node)... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Builder/namespaced_attributes.php | src/Xml/Dom/Builder/namespaced_attributes.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Builder;
use Closure;
use Dom\Element;
use function Psl\Iter\reduce_with_keys;
/**
* @param array<string, string> $attributes
* @return Closure(Element): Element
*/
function namespaced_attributes(string $namespace, array $attributes): Closure
{
return s... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Builder/cdata.php | src/Xml/Dom/Builder/cdata.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Builder;
use Closure;
use Dom\CDATASection;
use Dom\Node;
use function VeeWee\Xml\Dom\Assert\assert_cdata;
use function VeeWee\Xml\Dom\Locator\Node\detect_document;
use function VeeWee\Xml\Internal\configure;
/**
* @param list<callable(CDATASection): CDATASec... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Builder/xmlns_attributes.php | src/Xml/Dom/Builder/xmlns_attributes.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Builder;
use Closure;
use Dom\Element;
use function Psl\Iter\reduce_with_keys;
/**
* @param array<string, string> $attributes - A map of namespace prefix with namespace URI
* @return Closure(Element): Element
*/
function xmlns_attributes(array $attributes):... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Builder/default_xmlns_attribute.php | src/Xml/Dom/Builder/default_xmlns_attribute.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Builder;
use Closure;
use Dom\Element;
use VeeWee\Xml\Xmlns\Xmlns;
/**
* @return Closure(Element): Element
*/
function default_xmlns_attribute(string $namespaceURI): Closure
{
return static function (Element $node) use ($namespaceURI): Element {
... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Builder/namespaced_element.php | src/Xml/Dom/Builder/namespaced_element.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Builder;
use Closure;
use Dom\Element;
use Dom\Node;
use function VeeWee\Xml\Dom\Assert\assert_element;
use function VeeWee\Xml\Dom\Locator\Node\detect_document;
use function VeeWee\Xml\Internal\configure;
/**
* @param list<callable(Element): Element> $config... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Builder/value.php | src/Xml/Dom/Builder/value.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Builder;
use Closure;
use Dom\Element;
/**
* @return Closure(Element): Element
*/
function value(string $value): Closure
{
return static function (Element $node) use ($value): Element {
$node->substitutedNodeValue = $value;
return $node;... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Builder/children.php | src/Xml/Dom/Builder/children.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Builder;
use Closure;
use Dom\Node;
/**
* @template T of Node
*
* @param list<callable(T): Node> $builders
*
* @return Closure(T): T
*/
function children(callable ...$builders): Closure
{
return static function (Node $node) use ($builders): Node {
... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Manipulator/append.php | src/Xml/Dom/Manipulator/append.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Manipulator;
use Closure;
use Dom\Node;
use VeeWee\Xml\Exception\RuntimeException;
use function VeeWee\Xml\Dom\Predicate\is_attribute;
use function VeeWee\Xml\Dom\Predicate\is_element;
use function VeeWee\Xml\ErrorHandling\disallow_issues;
/**
* @no-named-arg... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Manipulator/Xmlns/rename.php | src/Xml/Dom/Manipulator/Xmlns/rename.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Manipulator\Xmlns;
use Dom\Attr;
use VeeWee\Xml\Exception\RuntimeException;
use VeeWee\Xml\Xmlns\Xmlns;
use function VeeWee\Xml\ErrorHandling\disallow_issues;
/**
* @throws RuntimeException
*/
function rename(Attr $target, string $newQName): Attr
{
disal... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Manipulator/Xmlns/rename_element_namespace.php | src/Xml/Dom/Manipulator/Xmlns/rename_element_namespace.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Manipulator\Xmlns;
use Dom\Attr;
use Dom\Element;
use DOMException;
use VeeWee\Xml\Exception\RuntimeException;
use function VeeWee\Xml\Dom\Locator\Attribute\attributes_list;
use function VeeWee\Xml\Dom\Locator\Element\children;
use function VeeWee\Xml\Dom\Predi... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Manipulator/Document/optimize_namespaces.php | src/Xml/Dom/Manipulator/Document/optimize_namespaces.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Manipulator\Document;
use Dom\NamespaceInfo;
use Dom\XMLDocument;
use VeeWee\Xml\Exception\RuntimeException;
use function Psl\Dict\unique;
use function Psl\Vec\map;
use function Psl\Vec\sort;
use function Psl\Vec\values;
use function VeeWee\Xml\Dom\Builder\xmln... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Manipulator/Node/remove_namespace.php | src/Xml/Dom/Manipulator/Node/remove_namespace.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Manipulator\Node;
use Dom\Attr;
use Dom\Element;
use VeeWee\Xml\Exception\RuntimeException;
use function VeeWee\Xml\ErrorHandling\disallow_issues;
use function VeeWee\Xml\ErrorHandling\disallow_libxml_false_returns;
/**
* @throws RuntimeException
*/
function... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Manipulator/Node/rename.php | src/Xml/Dom/Manipulator/Node/rename.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Manipulator\Node;
use Dom\Node;
use VeeWee\Xml\Exception\RuntimeException;
use function VeeWee\Xml\Dom\Manipulator\Attribute\rename as rename_attribute;
use function VeeWee\Xml\Dom\Manipulator\Element\rename as rename_element;
use function VeeWee\Xml\Dom\Predic... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Manipulator/Node/replace_by_external_node.php | src/Xml/Dom/Manipulator/Node/replace_by_external_node.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Manipulator\Node;
use Dom\Node;
use VeeWee\Xml\Exception\RuntimeException;
use Webmozart\Assert\Assert;
use function get_class;
use function VeeWee\Xml\ErrorHandling\disallow_issues;
use function VeeWee\Xml\ErrorHandling\disallow_libxml_false_returns;
/**
* @... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Manipulator/Node/remove.php | src/Xml/Dom/Manipulator/Node/remove.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Manipulator\Node;
use Dom\Node;
use VeeWee\Xml\Exception\RuntimeException;
use function VeeWee\Xml\Dom\Locator\Element\parent_element;
use function VeeWee\Xml\Dom\Predicate\is_attribute;
use function VeeWee\Xml\ErrorHandling\disallow_issues;
use function VeeWee... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Manipulator/Node/replace_by_external_nodes.php | src/Xml/Dom/Manipulator/Node/replace_by_external_nodes.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Manipulator\Node;
use Dom\Node;
use VeeWee\Xml\Exception\RuntimeException;
use Webmozart\Assert\Assert;
use function get_class;
use function Psl\Dict\map;
use function VeeWee\Xml\Dom\Predicate\is_document_element;
use function VeeWee\Xml\ErrorHandling\disallow_... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Manipulator/Node/import_node_deeply.php | src/Xml/Dom/Manipulator/Node/import_node_deeply.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Manipulator\Node;
use Dom\Node;
use VeeWee\Xml\Exception\RuntimeException;
use function VeeWee\Xml\Dom\Locator\Node\detect_document;
use function VeeWee\Xml\ErrorHandling\disallow_issues;
use function VeeWee\Xml\ErrorHandling\disallow_libxml_false_returns;
/**... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Manipulator/Node/append_external_node.php | src/Xml/Dom/Manipulator/Node/append_external_node.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Manipulator\Node;
use Dom\Node;
use VeeWee\Xml\Exception\RuntimeException;
/**
* @throws RuntimeException
*/
function append_external_node(Node $target, Node $source): Node
{
$copy = import_node_deeply($target, $source);
$target->appendChild($copy);
... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Manipulator/Element/rename.php | src/Xml/Dom/Manipulator/Element/rename.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Manipulator\Element;
use Dom\Element;
use VeeWee\Xml\Exception\RuntimeException;
use function VeeWee\Xml\ErrorHandling\disallow_issues;
/**
* @throws RuntimeException
*/
function rename(Element $target, string $newQName, ?string $newNamespaceURI = null): Ele... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Manipulator/Element/copy_named_xmlns_attributes.php | src/Xml/Dom/Manipulator/Element/copy_named_xmlns_attributes.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Manipulator\Element;
use Dom\Attr;
use Dom\Element;
use VeeWee\Xml\Exception\RuntimeException;
use function VeeWee\Xml\Dom\Builder\xmlns_attribute;
use function VeeWee\Xml\Dom\Locator\Attribute\xmlns_attributes_list;
/**
* @throws RuntimeException
*/
functio... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Manipulator/Attribute/rename.php | src/Xml/Dom/Manipulator/Attribute/rename.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Manipulator\Attribute;
use Dom\Attr;
use VeeWee\Xml\Exception\RuntimeException;
use function VeeWee\Xml\Dom\Manipulator\Xmlns\rename as rename_xmlns_attribute;
use function VeeWee\Xml\Dom\Predicate\is_xmlns_attribute;
use function VeeWee\Xml\ErrorHandling\disal... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Traverser/Traverser.php | src/Xml/Dom/Traverser/Traverser.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Traverser;
use Dom\Node;
use function VeeWee\Xml\Dom\Locator\Attribute\attributes_list;
use function VeeWee\Xml\Dom\Locator\Node\children;
final class Traverser
{
/**
* @var list<Visitor>
*/
private array $visitors;
/**
* @no-named-... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Traverser/Action.php | src/Xml/Dom/Traverser/Action.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Traverser;
use Dom\Node;
interface Action
{
public function __invoke(Node $currentNode): void;
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Traverser/Visitor.php | src/Xml/Dom/Traverser/Visitor.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Traverser;
use Dom\Node;
interface Visitor
{
public function onNodeEnter(Node $node): Action;
public function onNodeLeave(Node $node): Action;
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Traverser/Visitor/RemoveNamespaces.php | src/Xml/Dom/Traverser/Visitor/RemoveNamespaces.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Traverser\Visitor;
use Dom\Attr;
use Dom\Element;
use Dom\Node;
use VeeWee\Xml\Dom\Traverser\Action;
use VeeWee\Xml\Exception\RuntimeException;
use function Psl\Iter\contains;
use function VeeWee\Xml\Dom\Predicate\is_attribute;
use function VeeWee\Xml\Dom\Predic... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Traverser/Visitor/SortAttributes.php | src/Xml/Dom/Traverser/Visitor/SortAttributes.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Traverser\Visitor;
use Dom\Attr;
use Dom\Node;
use VeeWee\Xml\Dom\Traverser\Action;
use function VeeWee\Xml\Dom\Locator\Attribute\attributes_list;
use function VeeWee\Xml\Dom\Manipulator\append;
use function VeeWee\Xml\Dom\Manipulator\Node\remove;
use function ... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Traverser/Visitor/AbstractVisitor.php | src/Xml/Dom/Traverser/Visitor/AbstractVisitor.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Traverser\Visitor;
use Dom\Node;
use VeeWee\Xml\Dom\Traverser\Action;
use VeeWee\Xml\Dom\Traverser\Visitor;
abstract class AbstractVisitor implements Visitor
{
public function onNodeEnter(Node $node): Action
{
return new Action\Noop();
}
... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Traverser/Action/RenameNode.php | src/Xml/Dom/Traverser/Action/RenameNode.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Traverser\Action;
use Dom\Node;
use VeeWee\Xml\Dom\Traverser\Action;
use VeeWee\Xml\Exception\RuntimeException;
use function VeeWee\Xml\Dom\Manipulator\Node\rename;
final class RenameNode implements Action
{
public function __construct(
private str... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Traverser/Action/ReplaceNode.php | src/Xml/Dom/Traverser/Action/ReplaceNode.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Traverser\Action;
use Dom\Node;
use VeeWee\Xml\Dom\Traverser\Action;
use VeeWee\Xml\Exception\RuntimeException;
use function VeeWee\Xml\Dom\Manipulator\Node\replace_by_external_node;
final class ReplaceNode implements Action
{
public function __construct(
... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Traverser/Action/RemoveNode.php | src/Xml/Dom/Traverser/Action/RemoveNode.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Traverser\Action;
use Dom\Node;
use VeeWee\Xml\Dom\Traverser\Action;
use VeeWee\Xml\Exception\RuntimeException;
use function VeeWee\Xml\Dom\Manipulator\Node\remove;
final class RemoveNode implements Action
{
/**
* @throws RuntimeException
*/
... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Traverser/Action/Noop.php | src/Xml/Dom/Traverser/Action/Noop.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Traverser\Action;
use Dom\Node;
use VeeWee\Xml\Dom\Traverser\Action;
final class Noop implements Action
{
public function __invoke(Node $currentNode): void
{
}
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Xpath/Locator/evaluate.php | src/Xml/Dom/Xpath/Locator/evaluate.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Xpath\Locator;
use Closure;
use Dom\Node;
use Dom\XPath;
use Psl\Type\TypeInterface;
use function VeeWee\Xml\ErrorHandling\disallow_issues;
use function VeeWee\Xml\ErrorHandling\disallow_libxml_false_returns;
/**
* @template T
*
* @param TypeInterface<T> $ty... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Xpath/Locator/query.php | src/Xml/Dom/Xpath/Locator/query.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Xpath\Locator;
use Closure;
use Dom\Node;
use Dom\NodeList as DOMNodeList;
use Dom\XPath;
use VeeWee\Xml\Dom\Collection\NodeList;
use function VeeWee\Xml\Dom\Assert\assert_dom_node_list;
use function VeeWee\Xml\ErrorHandling\disallow_issues;
use function VeeWee\... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Xpath/Locator/query_single.php | src/Xml/Dom/Xpath/Locator/query_single.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Xpath\Locator;
use Closure;
use Dom\Node;
use Dom\NodeList;
use Dom\XPath;
use InvalidArgumentException;
use VeeWee\Xml\Exception\RuntimeException;
use Webmozart\Assert\Assert;
use function Psl\Str\format;
use function VeeWee\Xml\Dom\Assert\assert_dom_node_list;... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Xpath/Locator/Locator.php | src/Xml/Dom/Xpath/Locator/Locator.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Xpath\Locator;
use Dom\XPath;
/**
* @template T
*/
interface Locator
{
/**
* @return T
*/
public function __invoke(XPath $xpath): mixed;
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Xpath/Configurator/Configurator.php | src/Xml/Dom/Xpath/Configurator/Configurator.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Xpath\Configurator;
use Dom\XPath;
interface Configurator
{
public function __invoke(XPath $xpath): XPath;
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Xpath/Configurator/all_functions.php | src/Xml/Dom/Xpath/Configurator/all_functions.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Xpath\Configurator;
use Closure;
use Dom\XPath;
/**
* @return Closure(XPath): XPath
*/
function all_functions(): Closure
{
return static function (XPath $xpath): XPath {
php_namespace()($xpath);
$xpath->registerPhpFunctions();
re... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Xpath/Configurator/functions.php | src/Xml/Dom/Xpath/Configurator/functions.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Xpath\Configurator;
use Closure;
use Dom\XPath;
/**
* @param array<string, (callable(mixed...): mixed)> $functions
*
* @return Closure(XPath): XPath
*/
function functions(array $functions): Closure
{
return static function (XPath $xpath) use ($function... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Xpath/Configurator/namespaces.php | src/Xml/Dom/Xpath/Configurator/namespaces.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Xpath\Configurator;
use Closure;
use Dom\XPath;
/**
* @param array<string, string> $namespaces
*
* @return Closure(XPath): XPath
*/
function namespaces(array $namespaces): Closure
{
return static function (XPath $xpath) use ($namespaces) : XPath {
... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Xpath/Configurator/namespaced_functions.php | src/Xml/Dom/Xpath/Configurator/namespaced_functions.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Xpath\Configurator;
use Closure;
use Dom\XPath;
/**
* @param array<string, (callable(mixed...): mixed)> $functions
*
* @return Closure(XPath): XPath
*/
function namespaced_functions(string $namespace, string $prefix, array $functions): Closure
{
return... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Xpath/Configurator/php_namespace.php | src/Xml/Dom/Xpath/Configurator/php_namespace.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Xpath\Configurator;
use Closure;
use Dom\XPath;
use VeeWee\Xml\Xmlns\Xmlns;
/**
* @return Closure(XPath): XPath
*/
function php_namespace(): Closure
{
return static function (XPath $xpath): XPath {
namespaces(['php' => Xmlns::phpXpath()->value()]... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Collection/NodeList.php | src/Xml/Dom/Collection/NodeList.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Collection;
use Countable;
use Dom\Element;
use Dom\HTMLCollection;
use Dom\Node;
use Dom\NodeList as DOMNodeList;
use Dom\XPath as DOMXPath;
use Generator;
use InvalidArgumentException;
use IteratorAggregate;
use Psl\Type\TypeInterface;
use Traversable;
use Ve... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Loader/Loader.php | src/Xml/Dom/Loader/Loader.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Loader;
use Dom\XMLDocument;
interface Loader
{
public function __invoke(): XMLDocument;
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Loader/xml_file_loader.php | src/Xml/Dom/Loader/xml_file_loader.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Loader;
use Closure;
use Dom\XMLDocument;
use Webmozart\Assert\Assert;
use function VeeWee\Xml\ErrorHandling\disallow_issues;
/**
* @param int $options - bitmask of LIBXML_* constants https://www.php.net/manual/en/libxml.constants.php
* @return Closure(): XM... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Loader/xml_string_loader.php | src/Xml/Dom/Loader/xml_string_loader.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Loader;
use Closure;
use Dom\XMLDocument;
use function VeeWee\Xml\ErrorHandling\disallow_issues;
/**
* @param non-empty-string $xml
* @param int $options - bitmask of LIBXML_* constants https://www.php.net/manual/en/libxml.constants.php
* @return Closure():... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Loader/xml_node_loader.php | src/Xml/Dom/Loader/xml_node_loader.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Loader;
use Closure;
use Dom\Node;
use Dom\XMLDocument;
use function VeeWee\Xml\Dom\Manipulator\Node\append_external_node;
use function VeeWee\Xml\ErrorHandling\disallow_issues;
/**
* @return Closure(): XMLDocument
*/
function xml_node_loader(Node $importedN... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Loader/xml_document_loader.php | src/Xml/Dom/Loader/xml_document_loader.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Loader;
use Closure;
use Dom\XMLDocument;
use function Psl\Type\non_empty_string;
use function VeeWee\Xml\ErrorHandling\disallow_issues;
/**
* Loads a copy of current document.
*
* @param int $options - bitmask of LIBXML_* constants https://www.php.net/manu... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Assert/assert_attribute.php | src/Xml/Dom/Assert/assert_attribute.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Assert;
use Dom\Attr;
use Dom\Element;
use Psl\Type\Exception\AssertException;
use function Psl\Type\instance_of;
/**
* @psalm-assert Element $node
* @throws AssertException
*/
function assert_attribute(mixed $node): Attr
{
return instance_of(Attr::clas... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Assert/assert_element.php | src/Xml/Dom/Assert/assert_element.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Assert;
use Dom\Element;
use Psl\Type\Exception\AssertException;
use function Psl\Type\instance_of;
/**
* @psalm-assert Element $node
* @throws AssertException
*/
function assert_element(mixed $node): Element
{
return instance_of(Element::class)->assert... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Assert/assert_dom_node_list.php | src/Xml/Dom/Assert/assert_dom_node_list.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Assert;
use Dom\NodeList;
use Psl\Type\Exception\AssertException;
use function Psl\Type\instance_of;
/**
* @psalm-assert NodeList $node
* @throws AssertException
*/
function assert_dom_node_list(mixed $node): NodeList
{
return instance_of(NodeList::clas... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Assert/assert_cdata.php | src/Xml/Dom/Assert/assert_cdata.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Assert;
use Dom\CDATASection;
use Psl\Type\Exception\AssertException;
use function Psl\Type\instance_of;
/**
* @psalm-assert CDATASection $node
* @throws AssertException
*/
function assert_cdata(mixed $node): CDATASection
{
return instance_of(CDATASecti... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Assert/assert_document.php | src/Xml/Dom/Assert/assert_document.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Assert;
use Dom\XMLDocument;
use Psl\Type\Exception\AssertException;
use function Psl\Type\instance_of;
/**
* @psalm-assert XMLDocument $node
* @throws AssertException
*/
function assert_document(mixed $node): XMLDocument
{
return instance_of(XMLDocumen... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Predicate/is_attribute.php | src/Xml/Dom/Predicate/is_attribute.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Predicate;
use Dom\Attr;
use Dom\Node;
/**
* @psalm-assert-if-true Attr $node
*/
function is_attribute(Node $node): bool
{
return $node instanceof Attr;
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Predicate/is_document.php | src/Xml/Dom/Predicate/is_document.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Predicate;
use Dom\Node;
use Dom\XMLDocument;
/**
* @psalm-assert-if-true XMLDocument $node
*/
function is_document(Node $node): bool
{
return $node instanceof XMLDocument;
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Predicate/is_non_empty_text.php | src/Xml/Dom/Predicate/is_non_empty_text.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Predicate;
use Dom\Node;
function is_non_empty_text(Node $node): bool
{
return is_text($node) && trim($node->nodeValue ?? '') !== '';
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Predicate/is_text.php | src/Xml/Dom/Predicate/is_text.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Predicate;
use Dom\Node;
use Dom\Text;
/**
* @psalm-assert-if-true Text $node
*/
function is_text(Node $node): bool
{
return $node instanceof Text;
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Predicate/is_document_element.php | src/Xml/Dom/Predicate/is_document_element.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Predicate;
use Dom\Node;
use function VeeWee\Xml\Dom\Locator\Node\detect_document;
function is_document_element(Node $node): bool
{
return is_element($node) && detect_document($node)->documentElement === $node;
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Predicate/is_element.php | src/Xml/Dom/Predicate/is_element.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Predicate;
use Dom\Element;
use Dom\Node;
/**
* @psalm-assert-if-true Element $node
*/
function is_element(Node $node): bool
{
return $node instanceof Element;
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Predicate/is_xmlns_attribute.php | src/Xml/Dom/Predicate/is_xmlns_attribute.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Predicate;
use Dom\Attr;
use Dom\Node;
use VeeWee\Xml\Xmlns\Xmlns;
/**
* @psalm-assert-if-true Attr $node
*/
function is_xmlns_attribute(Node $node): bool
{
return is_attribute($node) && $node->namespaceURI === Xmlns::xmlns()->value();
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Predicate/is_prefixed_node_name.php | src/Xml/Dom/Predicate/is_prefixed_node_name.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Predicate;
function is_prefixed_node_name(string $nodeName): bool
{
return (bool)preg_match('/^[^:]+:[^:]+$/', $nodeName);
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Predicate/is_whitespace.php | src/Xml/Dom/Predicate/is_whitespace.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Predicate;
use Dom\Node;
function is_whitespace(Node $node): bool
{
return is_text($node) && trim($node->nodeValue ?? '') === '';
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Predicate/is_default_xmlns_attribute.php | src/Xml/Dom/Predicate/is_default_xmlns_attribute.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Predicate;
use Dom\Node;
function is_default_xmlns_attribute(Node $node): bool
{
return is_xmlns_attribute($node) && $node->prefix === null;
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Predicate/is_cdata.php | src/Xml/Dom/Predicate/is_cdata.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Predicate;
use Dom\CDATASection;
use Dom\Node;
/**
* @psalm-assert-if-true CDATASection $node
*/
function is_cdata(Node $node): bool
{
return $node instanceof CDATASection;
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Mapper/xml_string.php | src/Xml/Dom/Mapper/xml_string.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Mapper;
use Closure;
use Dom\Node;
use function Psl\Type\non_empty_string;
use function VeeWee\Xml\Dom\Locator\Node\detect_document;
use function VeeWee\Xml\Dom\Predicate\is_document;
use function VeeWee\Xml\ErrorHandling\disallow_issues;
use function VeeWee\Xm... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Mapper/Mapper.php | src/Xml/Dom/Mapper/Mapper.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Mapper;
use Dom\XMLDocument;
/**
* @template R
*/
interface Mapper
{
/**
* @return R
*/
public function __invoke(XMLDocument $document): mixed;
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Mapper/xslt_template.php | src/Xml/Dom/Mapper/xslt_template.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Mapper;
use Closure;
use Dom\XMLDocument;
use VeeWee\Xml\Dom\Document;
use VeeWee\Xml\Xslt\Processor;
use XSLTProcessor;
/**
* @param list<callable(XSLTProcessor): XSLTProcessor> $configurators
* @return Closure(XMLDocument): string
*/
function xslt_templat... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Validator/xsd_validator.php | src/Xml/Dom/Validator/xsd_validator.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Validator;
use Closure;
use Dom\XMLDocument;
use VeeWee\Xml\ErrorHandling\Issue\IssueCollection;
use function VeeWee\Xml\ErrorHandling\detect_issues;
/**
* @return Closure(XMLDocument): IssueCollection
*/
function xsd_validator(string $xsd): Closure
{
re... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Validator/internal_xsd_validator.php | src/Xml/Dom/Validator/internal_xsd_validator.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Validator;
use Closure;
use Dom\XMLDocument;
use VeeWee\Xml\ErrorHandling\Issue\IssueCollection;
use VeeWee\Xml\Xsd\Schema\Schema;
use VeeWee\Xml\Xsd\Schema\SchemaCollection;
use function VeeWee\Xml\Dom\Locator\Xsd\locate_all_xsd_schemas;
use function VeeWee\Xm... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Validator/Validator.php | src/Xml/Dom/Validator/Validator.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Validator;
use Dom\XMLDocument;
use VeeWee\Xml\ErrorHandling\Issue\IssueCollection;
interface Validator
{
public function __invoke(XMLDocument $document): IssueCollection;
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Validator/validator_chain.php | src/Xml/Dom/Validator/validator_chain.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Validator;
use Closure;
use Dom\XMLDocument;
use VeeWee\Xml\ErrorHandling\Issue\IssueCollection;
use function Psl\Iter\reduce;
/**
* @param list<callable(XMLDocument): IssueCollection> $validators
* @return Closure(XMLDocument): IssueCollection
*/
function ... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Locator/elements_with_namespaced_tagname.php | src/Xml/Dom/Locator/elements_with_namespaced_tagname.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Locator;
use Closure;
use Dom\Element;
use Dom\XMLDocument;
use VeeWee\Xml\Dom\Collection\NodeList;
use function VeeWee\Xml\Dom\Locator\Element\locate_by_namespaced_tag_name;
/**
* @return Closure(XMLDocument): NodeList<Element>
*/
function elements_with_nam... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Locator/document_element.php | src/Xml/Dom/Locator/document_element.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Locator;
use Closure;
use Dom\Element;
use Dom\XMLDocument;
use function VeeWee\Xml\Dom\Assert\assert_element;
/**
* @return Closure(XMLDocument): Element
*/
function document_element(): Closure
{
return static fn (XMLDocument $document): Element => asse... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Locator/root_namespace.php | src/Xml/Dom/Locator/root_namespace.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Locator;
use Closure;
use Dom\XMLDocument;
/**
* @return Closure(XMLDocument): ?string
*/
function root_namespace_uri(): Closure
{
return static fn (XMLDocument $document): ?string => document_element()($document)->namespaceURI;
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Locator/elements_with_tagname.php | src/Xml/Dom/Locator/elements_with_tagname.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Locator;
use Closure;
use Dom\Element;
use Dom\XMLDocument;
use VeeWee\Xml\Dom\Collection\NodeList;
use function VeeWee\Xml\Dom\Locator\Element\locate_by_tag_name;
/**
* @return Closure(XMLDocument): NodeList<Element>
*/
function elements_with_tagname(string... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Locator/Xmlns/linked_namespaces.php | src/Xml/Dom/Locator/Xmlns/linked_namespaces.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Locator\Xmlns;
use Dom\Element;
use Dom\NamespaceInfo;
/**
* @return list<NamespaceInfo>
*/
function linked_namespaces(Element $node): array
{
return $node->getInScopeNamespaces();
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Locator/Xmlns/recursive_linked_namespaces.php | src/Xml/Dom/Locator/Xmlns/recursive_linked_namespaces.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Locator\Xmlns;
use Dom\Element;
use Dom\NamespaceInfo;
/**
* @return list<NamespaceInfo>
*/
function recursive_linked_namespaces(Element $node): array
{
return $node->getDescendantNamespaces();
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Locator/Node/detect_document.php | src/Xml/Dom/Locator/Node/detect_document.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Locator\Node;
use Dom\Node;
use Dom\XMLDocument;
use InvalidArgumentException;
use function VeeWee\Xml\Dom\Assert\assert_document;
use function VeeWee\Xml\Dom\Predicate\is_document;
/**
* @throws InvalidArgumentException
*/
function detect_document(Node $nod... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Locator/Node/value.php | src/Xml/Dom/Locator/Node/value.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Locator\Node;
use Dom\Node;
use Psl\Type\Exception\CoercionException;
use Psl\Type\TypeInterface;
/**
* @template T
*
* @param TypeInterface<T> $type
*
* @return T
*
* @throws CoercionException
*/
function value(Node $node, TypeInterface $type)
{
r... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Locator/Node/children.php | src/Xml/Dom/Locator/Node/children.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Locator\Node;
use Dom\Node;
use VeeWee\Xml\Dom\Collection\NodeList;
/**
* @return NodeList<Node>
*/
function children(Node $node): NodeList
{
return NodeList::fromDOMNodeList($node->childNodes);
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Locator/Xsd/locate_all_xsd_schemas.php | src/Xml/Dom/Locator/Xsd/locate_all_xsd_schemas.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Locator\Xsd;
use Dom\XMLDocument;
use Psl\Regex\Exception\RuntimeException;
use VeeWee\Xml\Xsd\Schema\SchemaCollection;
/**
* @throws RuntimeException
*/
function locate_all_xsd_schemas(XMLDocument $document): SchemaCollection
{
return new SchemaCollecti... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Locator/Xsd/locate_namespaced_xsd_schemas.php | src/Xml/Dom/Locator/Xsd/locate_namespaced_xsd_schemas.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Locator\Xsd;
use Dom\XMLDocument;
use Psl\Regex\Exception\RuntimeException;
use VeeWee\Xml\Xmlns\Xmlns;
use VeeWee\Xml\Xsd\Schema\Schema;
use VeeWee\Xml\Xsd\Schema\SchemaCollection;
use function Psl\Regex\split;
use function VeeWee\Xml\Dom\Locator\document_elem... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Locator/Xsd/locate_no_namespaced_xsd_schemas.php | src/Xml/Dom/Locator/Xsd/locate_no_namespaced_xsd_schemas.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Locator\Xsd;
use Dom\XMLDocument;
use Psl\Regex\Exception\RuntimeException;
use VeeWee\Xml\Xmlns\Xmlns;
use VeeWee\Xml\Xsd\Schema\Schema;
use VeeWee\Xml\Xsd\Schema\SchemaCollection;
use function Psl\Dict\map;
use function Psl\Regex\split;
use function VeeWee\Xm... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Locator/Element/parent_element.php | src/Xml/Dom/Locator/Element/parent_element.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Locator\Element;
use Dom\Element;
use Dom\Node;
use VeeWee\Xml\Exception\RuntimeException;
use function VeeWee\Xml\Dom\Predicate\is_element;
/**
* @throws RuntimeException
*/
function parent_element(Node $child): Element
{
$parent = $child->parentNode;
... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Locator/Element/ancestors.php | src/Xml/Dom/Locator/Element/ancestors.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Locator\Element;
use Dom\Element;
use Dom\Node;
use Generator;
use VeeWee\Xml\Dom\Collection\NodeList;
use function VeeWee\Xml\Dom\Predicate\is_element;
/**
* @return NodeList<Element>
*/
function ancestors(Node $node): NodeList
{
return new NodeList(
... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Locator/Element/locate_by_namespaced_tag_name.php | src/Xml/Dom/Locator/Element/locate_by_namespaced_tag_name.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Locator\Element;
use Dom\Element;
use VeeWee\Xml\Dom\Collection\NodeList;
/**
* @return NodeList<Element>
*/
function locate_by_namespaced_tag_name(Element $node, string $namespace, string $localTagName): NodeList
{
return NodeList::fromDOMHTMLCollection... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Locator/Element/locate_by_tag_name.php | src/Xml/Dom/Locator/Element/locate_by_tag_name.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Locator\Element;
use Dom\Element;
use VeeWee\Xml\Dom\Collection\NodeList;
/**
* @return NodeList<Element>
*/
function locate_by_tag_name(Element $node, string $tag): NodeList
{
return NodeList::fromDOMHTMLCollection($node->getElementsByTagName($tag));
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Locator/Element/siblings.php | src/Xml/Dom/Locator/Element/siblings.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Locator\Element;
use Dom\Element;
use Dom\Node;
use VeeWee\Xml\Dom\Collection\NodeList;
use function Psl\Vec\filter;
use function VeeWee\Xml\Dom\Predicate\is_element;
/**
* @return NodeList<Element>
*/
function siblings(Node $node): NodeList
{
/** @var N... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Locator/Element/children.php | src/Xml/Dom/Locator/Element/children.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Locator\Element;
use Dom\Element;
use Dom\Node;
use VeeWee\Xml\Dom\Collection\NodeList;
use function Psl\Vec\filter;
use function VeeWee\Xml\Dom\Predicate\is_element;
/**
* @return NodeList<Element>
*/
function children(Node $node): NodeList
{
/** @var l... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Locator/Attribute/xmlns_attributes_list.php | src/Xml/Dom/Locator/Attribute/xmlns_attributes_list.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Locator\Attribute;
use Dom\Attr;
use Dom\Node;
use VeeWee\Xml\Dom\Collection\NodeList;
use VeeWee\Xml\Exception\RuntimeException;
use function VeeWee\Xml\Dom\Predicate\is_xmlns_attribute;
/**
* @return NodeList<Attr>
* @throws RuntimeException
*/
function x... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Locator/Attribute/attributes_list.php | src/Xml/Dom/Locator/Attribute/attributes_list.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Locator\Attribute;
use Dom\Attr;
use Dom\Node;
use VeeWee\Xml\Dom\Collection\NodeList;
use function Psl\Vec\values;
use function VeeWee\Xml\Dom\Predicate\is_element;
/**
* @return NodeList<Attr>
*/
function attributes_list(Node $node): NodeList
{
if (!is... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Configurator/Configurator.php | src/Xml/Dom/Configurator/Configurator.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Configurator;
use Dom\XMLDocument;
interface Configurator
{
public function __invoke(XMLDocument $document): XMLDocument;
}
| php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Configurator/normalize.php | src/Xml/Dom/Configurator/normalize.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Configurator;
use Closure;
use Dom\XMLDocument;
/**
* @return Closure(XMLDocument): XMLDocument
*/
function normalize(): Closure
{
return static function (XMLDocument $document): XMLDocument {
$document->normalize();
return $document;
... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Configurator/canonicalize.php | src/Xml/Dom/Configurator/canonicalize.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Configurator;
use Closure;
use Dom\XMLDocument;
use VeeWee\Xml\Dom\Document;
use function Psl\Type\non_empty_string;
use function VeeWee\Xml\Dom\Loader\xml_string_loader;
/**
* @return Closure(XMLDocument): XMLDocument
*/
function canonicalize(): Closure
{
... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Configurator/comparable.php | src/Xml/Dom/Configurator/comparable.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Configurator;
use Closure;
use Dom\XMLDocument;
use VeeWee\Xml\Dom\Traverser\Visitor\SortAttributes;
use function VeeWee\Xml\Internal\configure;
/**
* @return Closure(XMLDocument): XMLDocument
*/
function comparable(): Closure
{
return configure(
... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Configurator/validator.php | src/Xml/Dom/Configurator/validator.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Configurator;
use Closure;
use Dom\XMLDocument;
use VeeWee\Xml\ErrorHandling\Issue\Issue;
use VeeWee\Xml\ErrorHandling\Issue\IssueCollection;
use VeeWee\Xml\ErrorHandling\Issue\Level;
use VeeWee\Xml\Exception\RuntimeException;
/**
* @param callable(XMLDocumen... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Configurator/format_output.php | src/Xml/Dom/Configurator/format_output.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Configurator;
use Closure;
use Dom\XMLDocument;
/**
* Consider using it together with LIBXML_NOEMPTYTAG in the XML loader.
*
* @return Closure(XMLDocument): XMLDocument
*/
function format_output(bool $formatOutput = true): Closure
{
return static funct... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
veewee/xml | https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Configurator/document_uri.php | src/Xml/Dom/Configurator/document_uri.php | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Dom\Configurator;
use Closure;
use Dom\XMLDocument;
/**
* @param non-empty-string $documentUri
* @return Closure(XMLDocument): XMLDocument
*/
function document_uri(string $documentUri): Closure
{
return static function (XMLDocument $document) use ($document... | php | MIT | 94238593d0b7d161f29cfaecfa52c346a54624d6 | 2026-01-05T03:09:54.502498Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.