Changed feature class to a create feature function #2487

Also moved the XML convenience function to XMLFeature.