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

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

lucid/xml
=========

Xml writing and parsing utilities

v0.0.1(10y ago)4691[1 issues](https://github.com/lucidphp/xml/issues)MITPHPPHP &gt;=5.6.0

Since Apr 12Pushed 9y ago1 watchersCompare

[ Source](https://github.com/lucidphp/xml)[ Packagist](https://packagist.org/packages/lucid/xml)[ RSS](/packages/lucid-xml/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

XML writer and parser utilities
===============================

[](#xml-writer-and-parser-utilities)

[![Author](https://camo.githubusercontent.com/1cb74c4aa94c8f9e602ee2b89df6b1b618ec8129d0182c2958ea94c4a3ab60ea/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d697779672d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/iwyg)[![Source Code](https://camo.githubusercontent.com/51d2cc0662344b4786e5c32be583cdc114d6f3b854dfe5ef760da4888bb109a9/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d6c756369642f7369676e616c2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/lucidphp/xml/tree/master)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/lucidphp/xml/blob/master/LICENSE.md)

[![Build Status](https://camo.githubusercontent.com/44df834952cea1a8f4363f3a3b8fa7286740c601baf777e3740cfbc06ec2a87d/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c756369647068702f786d6c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/lucidphp/xml)[![Code Coverage](https://camo.githubusercontent.com/150273d01afefe48cd3faf630de82b413fbaba38b8c0ed9e4f0faf1536c18864/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6c756369647068702f786d6c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/r/lucidphp/xml)[![HHVM](https://camo.githubusercontent.com/fa8de200b8e6f469eda38dd3332f6e73618089ec5838774c109f993191306abb/68747470733a2f2f696d672e736869656c64732e696f2f6868766d2f6c756369642f786d6c2f6465762d6d61737465722e7376673f7374796c653d666c61742d737175617265)](http://hhvm.h4cc.de/package/lucid/xml)

Installing
----------

[](#installing)

```
$ composer require lucid/xml
```

Testing
-------

[](#testing)

Run tests with:

```
$ ./vendor/bin/phpunit
```

The Parser
----------

[](#the-parser)

The `Parser` class can parse xml string, files, DOMDocuments, and DOMElements into a php array.

### Parsing xml strings

[](#parsing-xml-strings)

```
