replaced use of JXMLElement and JFactory::getXML