Is it possible to make nXML mode more convenient for web development?
Specifically:
- Treat
<? ... ?>
bits as if they didn't exist - Don't issue "Unknown element" warnings when the XML schema is unknown
I'd rather not use a multi-mode
Edit:
Regarding point 2, the vacuous schema is supposed to do that, but it gets confused when there is no root element. A quick fix is to wrap everything in a tag with any name
Edit2:
A better fix still, might be to write a script that will:
- Check if the schema is vacuous, after entering nxml mode
- If it is, add
<temporary-root-tag>
in the beginning of the document - Before saving, remove the tag
- After saving, put the tag back