The previous section discusses how schema location files work to help emacs find the right schema for your file. If the default rules work for your case, you can proceed immediately to edit your file.
However, if you want to create a file that does not match any of the rules in the default schema location file, you have two choices.
If you already a schema location file named
schemas.xml in the same directory,
you can add a new rule to it that associates your file
with the schema. If you don't have such a file, you
can create one, and then add the new rule. See Section 4, “
Format of a schema locating file
” for rule formats.
There are special keystroke sequences that will connect
the current file with a schema that you specify. This
will create a
schemas.xml file if
there isn't one already, and then add a rule to that
file that makes the connection.
When you create a new XML document file, if your file
doesn't have one of the file suffixes that automatically
nxml-mode (such as
.xsl), you can put
nxml-mode manually with
Below are all the special keystrokes available in
emacs reference guide,
C- means control and
M- meta (either combine with
alt or prefix with
Also, these terms have their usual emacs meanings: