APIM Policy XML Navigator
Navigate through Azure API Management policy XML files using hierarchical paths.
🚀 Features
- 🎯 XML Path Navigation - Jump to any element using paths like
policies\\inbound\\validate-jwt[2]
- ✅ Policy Validation - Check for structural issues and common problems
- 🎨 XML Formatting - Auto-format XML for better readability
🛠️ Usage
Feature |
Shortcut |
Command |
Navigate |
Ctrl+Alt+N |
Navigate to XML Path |
Validate |
Ctrl+shift+Alt+V |
Validate APIM Policy |
Format |
Ctrl+shift+Alt+F |
Format XML Policy |
Path Syntax
- Use
\\ to separate hierarchy levels
- Use
[number] for element index (1-based)
- Example:
policies\\inbound\\choose[1]\\when[2]
🧩 Example Paths
Test with the included sample-policy.xml :
policies\\inbound\\validate-jwt # JWT authentication
policies\\inbound\\set-variable[2] # Timestamp variable
policies\\inbound\\choose[1]\\when[1] # POST method condition
policies\\backend\\choose[1]\\when[1] # Staging backend
policies\\on-error\\choose[1]\\when[2] # Rate limit error
🚀 Quick Start
- Install from VS Code Marketplace
- Open an APIM policy XML file
- Press
Ctrl+Alt+N and enter a path
- Press Enter to navigate
Tip: Open Developer Console (F12) for navigation debugging logs.
📝 License
MIT License
| |