Working with the UserRole.xml File
You can edit the UserRole.xml file in the Microsoft Visual Studio 2008 XML editor or in any other XML editor. You can edit the UserRole.xml file during or after the development of the mobile application.
-
When developing the mobile application in Microsoft Visual Studio 2008, you find the UserRole.xml file in Solution Explorer under the RolePad project for the mobile application. This is the project created from the RolePad template. For more information, see How to: Create a RolePad Project.
-
After development of the mobile application, you find the UserRole.xml file in the root folder of the deployment location, for example, C:\Program Files\My Mobile Application\, where "My Mobile Application" is the root folder. To change the UserRole.xml file, you can use an XML editor, like the one in Microsoft Visual Studio 2008, or a text editor, like NotePad.
Note An advantage of an XML editor is that you can use the UserRole XML schema to validate the XML code.
Using the UserRole XML Schema
The UserRole.xml file is a structured XML file that uses a schema file called Orchestration.xsd to validate the XML code. The Orchestration.xsd file describes the structure of the UserRole.xml file. It defines the legal parts of the XML document, such as elements, attributes, and values. When you use the Orchestration.xsd file, it is easier to modify the UserRole.xml file and ensure that the XML code is valid.
When you edit the UserRole.xml file in Microsoft Visual Studio 2008, the Orchestration.xsd file is used automatically. If you are not using Microsoft Visual Studio 2008, or if the schema has been unassigned to the UserRole.xml file, you can find the Orchestration.xsd file where Mobile Device SDK is installed. By default, the schema is installed in the following folder: C:\Program Files\Microsoft Dynamics Mobile\SDK\Device\Schemas.