Reverting PHP v5.3.0+ method used in XML parser