NSValueTransformer subclass for converting between XML and JSON on iOS.