This method can be used to more easily set the text of an element, without having to manually muck around with XML::Text instances.