Modified edXxml behavior for special character handling, and maintaining text/tail content.