Update XMLElementList to support text element list

I have searched the code, I believe it won't affect other codes.