The XML preferences lets you specify how Designer should handle editing and creation of an XML catalog and XML files. This an Eclipse option; for more details, see the Eclipse SDK.
The XML Catalog preferences allow you to manage the WST XML catalog implementation. You can add, edit, or delete user-specified catalogs. You cannot use this preference to manage the plug-in specified entries.The XML editor uses the WST XML catalog implementation to resolve XML schema and DTD references for associating URLs, system, and public identifiers with URLs.
Figure 21-6 Preferences: XML > XML Catalog
To add a user-specified entry:
Click Add.
Fill in the fields as follows:
Click
to save.You can set the following general XML File preferences:
Table 21-61 Preferences: XML > XML Files
Table 21-62 Preferences: XML > XML Files > Editor
The XML syntax coloring lets you specify the syntax highlighting (foreground and background color) and the text formatting for individual XML constructs.
Use the XML Templates preference page to define XML templates. The templates are used in the code completion in the XML Source editor. For example, selecting the XSL Processing Instruction template in the code completion inserts <?xml-stylesheet type=”text/xsl” href=””?> in the source editor and places the cursor in the href value.
Table 21-64 Preferences: XML > XML Files > Typing