simplexml_debug icon indicating copy to clipboard operation
simplexml_debug copied to clipboard

Tools for debugging your code when working with PHP's SimpleXML functions.

Results 5 simplexml_debug issues
Sort by recently updated
recently updated
newest added

very nice It would be nice if its output was more matched to var_dump `datatype(length) value` for example `string(5) "item1"` as opposed to `(string) 'item1' (5 chars)` ``` php //...

Oddly, the XML namespace spec leaves un-prefixed attributes as undefined behaviour, rather than inheriting the default namespace. While fixing this, I've also made most of the output ignore local aliases,...

There is currently no way of distinguishing between _a single element_ (e.g. `$sxml->Result[0]`) and a _list of elements_ (e.g. `$sxml->Result` or `$sxml->children()`) which happens to include only one item. They...

bug

There seems to be a bug (or misfeature?) in SimpleXML where attributes in the default namespace don't show if you call `->attributes($default_namespace_uri)` rather than `->attributes('', true)`. Because of `simplexml_dump`'s attempts...

bug

The [`xpath()`](http://php.net/manual/en/simplexmlelement.xpath.php) method **doesn't** return a `SimpleXMLElement`, but an actual array of objects. `simplexml_dump()` will currently return an error if you try to pass it this array. Keeping this limitation...

enhancement