5.1.3 snap news file contains the following fragment: - Improved SPL: (Marcus) - Fixed issues with not/double calling of constructors of SPL iterators. - Fixed issues with info-class/file-class in SPL directory handling classes. - Fixed ArrayIterator::seek(). - Added SimpleXMLElement::count(). - Dropped erroneous RecursiveDirectoryIterator::getSubPathInfo(). - Improved SimpleXML: (Marcus, Rob) . Added SimpleXMLElement::getName() to retrieve name of element. . Added ability to create elements on the fly. . Added addChild() method for element creation supporting namespaces. . Added addAttribute() method for attribute creation supporting namespaces. . Added ability to delete specific elements and attributes by offset.
I suppose this row - Added SimpleXMLElement::count(). should be - Added SimpleXMLIterator::count(). because I don't find count mehod in SimpleXMLElement but I do see it in SimpleXMLIterator.