Editing configuration resources in XML
The editors in Guidewire Studio provide a visual editing environment for many resources. In addition to using the visual editors, you can also edit the underlying XML code that defines the resource. Guidewire recommends that you edit the XML code only within Studio, and that you do not edit it in an external editor.
Edit the XML definition of Studio resources
Edit the XML that defines configuration files, rather than editing them in the visual editor.
Procedure
- Open the resource in the Studio editor.
- At the bottom of the editor pane, click the Text tab. The XML definition is shown in the editor pane.
- Modify the XML as desired.
- To switch back to the visual editor, click the tab next to the Text tab that shows the type of the resource that you are editing.
What to do next
Make sure that the XML remains valid, and that you do not introduce any syntax errors. If the XML contains errors, the representation of the resource in the visual editor may not be accurate.
Automatically sort XML-based resource files
Keep the XML files for certain configuration resources sorted to make it easier to identify meaningful differences in edited versions.
About this task
- display keys
- entities
- typelists
Procedure
- In Guidewire Studio, click .
- In the Settings dialog, navigate to Guidewire Studio.
- To keep the resource files sorted, set the Automatically sort display key, entity, and typelist files check box.
Set the file size limit for metadata editors
Configure Studio to open large metadata files in the XML editor instead of the associated visual editor.
About this task
Procedure
- In Guidewire Studio, click .
- In the Settings dialog, in the navigation list, expand Guidewire Studio, and then click Project Settings.
- In the File size limit for metadata editors box, set the maximum size (in kB) of a file that opens in the visual editor. Files larger than this size open in the XML editor.
