# Bulk XML JSON Conversion Workflow

**Use case:** 

Convert multiple XML and JSON payloads in one run using auto detection, attributes, and formatted output for migration workflows.

## Input

```json
{
  "inputs": [
    {
      "inputData": "<order id=\"501\"><customer>Ada</customer><total>29.95</total></order>",
      "mode": "auto"
    },
    {
      "inputData": "{\"invoice\":{\"id\":\"INV-9\",\"paid\":true,\"total\":125.5}}",
      "mode": "auto"
    }
  ],
  "mode": "auto",
  "parseAttributes": true,
  "rootElement": "root",
  "prettyPrint": true,
  "arrayNodeName": "item"
}
```

## Output

```json
{
  "inputIndex": {
    "label": "#",
    "format": "number"
  },
  "mode": {
    "label": "Mode",
    "format": "text"
  },
  "outputFormat": {
    "label": "Format",
    "format": "text"
  },
  "inputPreview": {
    "label": "Input Preview",
    "format": "text"
  },
  "output": {
    "label": "Output",
    "format": "text"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [XML ↔ JSON Converter](https://apify.com/automation-lab/xml-json-converter) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/xml-json-converter) to learn more, explore other use cases, and run it yourself.