Make textKey (default "content") configurable in XML-JSON conversion

The special handling of the key `"content"` in `XML.toString` results in highly unexpected behaviour in practice. Here is a patch that allows this key to be configurable. Indeed, `null` is a good value for most cases, and I suggest it be made the default.