You can configure XML objects such as XML attributes, the wrapper object, and the namespace object in the swagger specification file.
You can define attributes only for XML objects. You cannot define attributes for XML elements. You can use wrapper objects for a simple type array element only when the array element has inline definitions. Use qualified and unqualified namespace objects in response for source, midstream, and target transformations and in request for midstream and target transformations.
An XML attribute is always of type string. Even if the swagger definition has attribute with type as number, REST V2 Connector always treats the attribute as string. The XSD generated contains the data type as string for the XML attribute.
Note: Ensure that the Swagger definition does not contain multiple namespaces.
Note: If the REST endpoint returns a response in an application/xml format and the XML element in the response contains both an attribute and an element value, the mapping does not process the response. For example, you cannot process an XML sample <emp desg="Director">John</emp>, where the emp element contains both an attribute desg and an element value John.