Function: rng-set-schema-file
rng-set-schema-file is an interactive and byte-compiled function
defined in rng-loc.el.gz.
Signature
(rng-set-schema-file FILENAME)
Documentation
Set the schema for the current buffer to the schema in FILENAME.
FILENAME must be the name of a file containing a schema.
The extension of FILENAME is used to determine what kind of schema it
is. The variable rng-schema-loader-alist maps from schema
extensions to schema loader functions. The function
rng-c-load-schema is the loader for RELAX NG compact syntax. The
association is between the buffer and the schema: the association is
lost when the buffer is killed.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/nxml/rng-loc.el.gz
(defun rng-set-schema-file (filename)
"Set the schema for the current buffer to the schema in FILENAME.
FILENAME must be the name of a file containing a schema.
The extension of FILENAME is used to determine what kind of schema it
is. The variable `rng-schema-loader-alist' maps from schema
extensions to schema loader functions. The function
`rng-c-load-schema' is the loader for RELAX NG compact syntax. The
association is between the buffer and the schema: the association is
lost when the buffer is killed."
(interactive "fSchema file: ")
(condition-case err
(progn
(rng-set-schema-file-1 filename)
(rng-save-schema-location-1 t))
(nxml-file-parse-error
(nxml-display-file-parse-error err))))