Fix for the xml_create_element() method.
Authored by: bugman 2008-06-22
Parent: [r6431]
Child: [r6433]