I've seen attempts at it before. It gets pretty complicated, because of attribute/content split. You're basically choosing between something so generic and complicated it's hardly any better than a validating text editor with autocomplete, or something so cut down that it is by default specialized to its use case, in which case it is basically just a specialized editor of some sort that happens to serialize to XML, which is common, and no longer is a "general XML editor".