To work with schemas, you must enable the xml_field_extras module.

FAPI

xmltext

FAPI Element: xml_codemirror