Update XMLElementList to support text element list

Sorry, I misunderstood. :)
But won't this operation disturb other codes?
I notice many codes use this function.