xml-wrangler icon indicating copy to clipboard operation
xml-wrangler copied to clipboard

🌵 XML Wrangler - Easily Read & Write XML in PHP

Results 7 xml-wrangler issues
Sort by recently updated
recently updated
newest added

``` ... ... ``` with `$reader->values()` the result looks like this ![CleanShot 2024-01-04 at 13 00 29](https://github.com/saloonphp/xml-wrangler/assets/2220942/27819eaa-7ec6-4185-b43a-9df9039ff205) How to keep the attributes as keys?

It would be really cool if you could use the search/reader methods on the base `Element` class that comes from the reader. ```php $reader = XmlReader::fromString(...); $element = $reader->element('food.2')->sole(); $element->element('name')->sole();...

enhancement

This PR provides a convenient way to convert an Element into values. This allows to first traverse elements and check their attributes after which you can easily convert it to...

Hello, when using like this, comment tag is not rendered: ``` $order_body = XmlWriter::make() ->setXmlStandalone(true) ->write('orders', [ 'order' => [ 'cod' => '123', 'comment' => 'test comment', ], ]); ```...

I have an issue today where i was trying to fetch an xml data from soap API. When i tried to use that data and tried to convert it using...

bug

Here SFTP is my sftp server configured in laravel as SFTP storage disk $reader = XmlReader::fromFile(Storage::disk('sftp')->path($file)); but it gives me error like "Unable to read the [data/Product.xml] file"

If you have a bigger file and getting elements ```php $catalog_structure = $reader->value('T_NEW_CATALOG.CATALOG_GROUP_SYSTEM.CATALOG_STRUCTURE')->lazy(); $i = 0; foreach ($catalog_structure as $item) { // iterate items } ``` How to stop reading...