All configuration in SystemWeaver is done using an XML editor. For config item views, you will find it on the Definitions tab. For built-in item views, it is available via the Edit XML button in Configure the explorer. This article describes the editor's functionality.
The editor enables you to view and edit XML in a syntax-colored view so you can easily see the different parts of the XML like names and attributes.
In the example below, the Counter tag was not closed, so an XML error displays:
The column to the far left, seen in the example, includes line numbers, and can compress/expand XML elements if you press the "-" and "+" buttons.
A right-click menu offers the following options.
Use the Insert SID... option in the Definitions view for config items to look up and insert SystemWeaver SIDs, using the Select type dialog.
Use Insert Attribute SID... to look up and insert an attribute SID using the Select attribute type dialog.
Show Context Visualizer
The Show context visualizer option opens a window where any selected context definition is rendered as a graph. When you have created your context in the XML editor, highlight it, and then right-click and select Show context visualizer to get a graphical presentation of your context.
Find, Copy, and Paste
The Find option enables you to search for text in the XML. If you select a word first, it will be suggested in the text box.
Using the arrows (or F3 shortcut) will take you to the next match.
Tips & Tricks
In the editor, you can do some operations similar to those in Notepad++, e.g., select single or multiple rows and use the Tab key to indent:
And, you can remove tabs by holding down the Ctrl key and grabbing the area, then hitting backspace.
For a quick indent tool. many users paste their code into Notepad++ and run the XML tool called Pretty print (Ctrl+Shift+Alt+B):
The tool can be found in Plugins > Plugins admin.