Using Code Completion in XML Files Constrained by an XML Schema
See Also
You can use code completion in XML files if the XML document is constrained by an XML schema. In the schema source file, this constraint is represented by an xsi attribute.
To complete an XML tag:
- In the Source editor tab of the XML document, position the cursor where you want to start adding content and type an opening left angle bracket (<).
- Press Ctrl-Spacebar.
The code completion box opens. This box provides a scrolling list of schema components. The list of components is based on the XML schema file that constrains the current XML file.
- Select a value using the information in Selecting Values in the Code Completion Box below.
If you select a component with attributes, the next left angle bracket (<) keystroke will invoke the code completion box with the attributes.
Selecting Values in the Code Completion Box
You can use the most convenient combination of the following options to select values in the code completion box:
- Continue typing to fine tune the selection of items in the list.
- Use the mouse or navigation keys (up and down arrows, Page Up, Page Down, Home, and End) to scroll through the list and select an entry.
- Press Enter to enter the selection in the completion box into your file and close the completion box. Alternatively, you can double-click an entry in the code completion box.
- See Also
- About XML Schema Tools
- Using Code Completion
- XML Schema Tasks
Legal Notices