How to Resolve "Only XML format is accepted" Errors When Copying XML Code in Managed App Configurations

Publish Date: 04-Jan-2024 Last Modified Date: 27-Aug-2025 SOTI MobiControl
564 0

Summary

How to resolve "Only XML format is accepted" errors that occur when copying XML code in managed app configurations in the Advanced Configurations panel of an app policy (iOS).

Related SOTI ONE Platform Products

SOTI MobiControl

Related Device OS

iOS

Issue Description

Adding valid XML code in a managed app config under advanced configurations of an iOS app policy fails to save and displays an "Only XML format is accepted" error.

The Advanced Configurations panel

Environment

All SOTI MobiControl versions that support managed app configurations for an iOS app policy.

Symptoms

When saving the configuration, the error message "Only XML format is accepted" is displayed.

Cause

By default, SOTI MobiControl adds a header and footer for XML when deploying the application policy to devices. This causes duplication and leads to a syntax error in XML when installing the app on the device.

Issue Resolution

1. Remove the following header and footer from the valid XML code being adding to the managed app configuration:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" " http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
.
.
.
</plist>

2. Save the configuration and apply the app policy to devices.

Additional Information

For an example of XML code for managed app configuration of an application, see How to install GoodNotes for Institutions via MDM.

Was this helpful?