Recommended: Install a generic XML extension like
XML by Red Hat
for general XML validation and formatting. This extension only shows
xml2rfc-specific errors.
Usage
Open an RFC XML file in VS Code
xml2rfc warnings and errors appear automatically in the Problems panel
Click the preview button (📄 icon) in the editor title bar
HTML preview opens in a side panel
Troubleshooting
xml2rfc not found: Make sure xml2rfc is installed and in your PATH
No preview appears: Only works with valid RFC XML files (must have <rfc>
root element)
XML errors: Check the Problems panel for detailed error locations