AppCode brings powerful support for XML that includes structure validation, formatting (⌃ ⌥ L) and indentation (⌃ ⌥ I according to the XML code style, importing unbound namespaces, viewing code structure, unwrapping and removing tags (⌃ ⇧ ⌦), generating DTD files and schemas from instance documents, as well as syntax and error highlighting, code completion (⌃ Space), intention actions (⌥ ⏎), quick documentation look-up (⌃ Q), and more.
AppCode uses Xerces 2.11, an XML parser developed by Apache Software Foundation Group.
Import XML namespaces
If you use a tag or an attribute from a namespace that is not bound, AppCode detects the problem and shows a tooltip:
To solve the problem, use the quickfix that AppCode suggests.
Press ⌥ ⏎. If there are multiple choices, select the desired namespace from the list.
Alternatively, hover your mouse pointer over the problem and click Create namespace declaration in the popup that opens. If there are multiple choices, select the desired namespace from the list.
Configure syntax highlighting
You can configure XML-aware syntax highlighting according to your preferences and habits.
In the Preferences dialog ⌃ ⌥ S, go to .
Select the color scheme, accept the highlighting settings inherited from the defaults or customize them as described in Colors and fonts.