PHPackages                             byjg/anydataset-xml - 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. byjg/anydataset-xml

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

byjg/anydataset-xml
===================

XML abstraction dataset for the AnyDataset library. AnyDataset is an agnostic data source abstraction layer in PHP.

6.0.0(7mo ago)28.5k↓27.3%11MITPHPPHP &gt;=8.3 &lt;8.6CI failing

Since Nov 24Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/byjg/php-anydataset-xml)[ Packagist](https://packagist.org/packages/byjg/anydataset-xml)[ GitHub Sponsors](https://github.com/byjg)[ RSS](/packages/byjg-anydataset-xml/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (5)Dependencies (3)Versions (9)Used By (1)

   sidebar\_key anydataset-xml   tags    php

 anydataset

 text-manipulation

    AnyDataset-Xml
==============

[](#anydataset-xml)

XML abstraction dataset for the AnyDataset library. AnyDataset is an agnostic data source abstraction layer in PHP.

[![Sponsor](https://camo.githubusercontent.com/fab14b7f7f475072ada0473f193d6f322561fd4a2958e0cc89910d053347cf27/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53706f6e736f722d2532336561346161613f6c6f676f3d67697468756273706f6e736f7273266c6f676f436f6c6f723d7768697465266c6162656c436f6c6f723d306431313137)](https://github.com/sponsors/byjg)[![Build Status](https://github.com/byjg/php-anydataset-xml/actions/workflows/phpunit.yml/badge.svg?branch=master)](https://github.com/byjg/php-anydataset-xml/actions/workflows/phpunit.yml)[![Opensource ByJG](https://camo.githubusercontent.com/425c1bbccc0f292bf4d20569ae74a6b2e384fd648f1af8911bc61de9a8dcfc0b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6f70656e736f757263652d62796a672d737563636573732e737667)](http://opensource.byjg.com)[![GitHub source](https://camo.githubusercontent.com/88e61eb211719144efdd570290a0456b6e13099c2df8d973f1bb43fe33bf0039/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4769746875622d736f757263652d696e666f726d6174696f6e616c3f6c6f676f3d676974687562)](https://github.com/byjg/php-anydataset-xml/)[![GitHub license](https://camo.githubusercontent.com/c92b47e3640cca4d4bfafeca6132bc15dbe43e995a6d98981fca9dabc96e65ac/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f62796a672f7068702d616e79646174617365742d786d6c2e737667)](https://opensource.byjg.com/opensource/licensing.html)[![GitHub release](https://camo.githubusercontent.com/f727f1b5d71ef6a23efb2787ab8f6bc130bac988556552dbceb84338fd9ddf38/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f62796a672f7068702d616e79646174617365742d786d6c2e737667)](https://github.com/byjg/php-anydataset-xml/releases/)

Features
--------

[](#features)

- **Simple XML Processing**: Process XML data with a clean, consistent API
- **XPath Support**: Use XPath expressions to select nodes and attributes
- **Namespace Support**: Full support for XML namespaces
- **Repeated Node Handling**: Automatically handles repeated nodes by returning arrays
- **Custom Field Processing**: Define custom field mappings with closures/callbacks
- **Flexible Input**: Accept XML as string, DOMDocument, XmlNode, or File object
- **AnyDataset Integration**: Compatible with the AnyDataset abstraction layer

Documentation
-------------

[](#documentation)

- [XmlDataset](docs/XmlDataset.md) - Main class for working with XML data
- [XPath Expressions](docs/XPath-Expressions.md) - Guide to using XPath in the library

Installation
------------

[](#installation)

```
composer require "byjg/anydataset-xml"
```

Quick Example
-------------

[](#quick-example)

```
