Is there a generic function available as we have for cJSONObject (DataTypeToJson) to convert a defined struct into its XML equivalent?