Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>XML Tree ViewerNew to Visual Studio Code? Get it now.
XML Tree Viewer

XML Tree Viewer

Anish Miya Ansari

|
119 installs
| (0) | Free
Visualize XML files as interactive tree structures with multiple views: parsed tree, JSON object view, Mermaid diagrams, and split view
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

XML Tree Viewer

XML Tree Viewer Logo

Visualize XML files as interactive tree structures with multiple views

Version Installs Rating


✨ Features

📋 Parsed Tree View

Beautiful indented text representation of your XML structure with syntax highlighting.

Parsed Tree

🔣 Object View

Interactive JSON-like collapsible tree. Expand/collapse nodes, copy as JSON.

Object View

🔀 Graphical Tree (Mermaid Diagram)

Visual flowchart representation of your XML hierarchy with zoom controls and Save as Image (PNG export) button.

Graphical Tree

📊 Split View

Side-by-side view of parsed tree and graphical diagram.

Split View

🌳 Sidebar Integration

Always-visible XML structure in the activity bar with live updates as you edit.

Sidebar


🚀 Getting Started

  1. Open any .xml file in VS Code
  2. Click the tree icon in the editor title bar, or
  3. Right-click in the editor and select "XML Tree Viewer: Open Tree View", or
  4. Use the sidebar panel (tree icon in the activity bar)

📖 Usage

Action How
Open Tree View Click tree icon in title bar or right-click → "XML Tree Viewer: Open Tree View"
Switch Views Click tabs: Parsed Tree, Object View, Graphical Tree, Split View
Copy Content Use the "Copy" buttons in each view
Zoom Diagram Use +/- buttons or Reset in Graphical Tree view
Expand/Collapse Click ▼/▶ toggles in Object View, or use Expand All / Collapse All
Refresh Sidebar Click refresh icon in sidebar title
Save Diagram as Image Click Save as Image button in Graphical Tree view

⚙️ Commands

Command Description
XML Tree Viewer: Open Tree View Open the graphical tree viewer panel
XML Tree Viewer: Refresh Sidebar Manually refresh the sidebar tree

🎨 Views Explained

Parsed Tree

  • Indented text representation
  • Shows tag names, attributes, and text content
  • Color-coded: tags (red), attributes (orange), values (green)
  • Copy to clipboard with one click

Object View

  • JSON-like hierarchical view
  • Collapsible nodes for easy navigation
  • Shows element counts for arrays/objects
  • Expand All / Collapse All buttons
  • Copy as formatted JSON

Graphical Tree

  • Mermaid-powered flowchart diagram
  • Color-coded nodes: root (blue), branches (green), leaves (orange)
  • Zoom in/out and reset controls
  • Copy Mermaid code for use elsewhere
  • Save as Image: Export the diagram as a PNG file with one click

Split View

  • Parsed tree and graphical diagram side-by-side
  • Great for large XML files
  • Responsive layout

🔧 Requirements

  • VS Code 1.85.0 or higher
  • No additional dependencies required

📝 Release Notes

0.0.1

  • Initial release
  • Four view modes: Parsed Tree, Object View, Graphical Tree, Split View
  • Sidebar integration with live updates
  • Copy to clipboard functionality
  • Zoom controls for diagrams
  • Save as Image button in Graphical Tree view

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


🙏 Acknowledgments

  • Mermaid for diagram rendering
  • fast-xml-parser for XML parsing

Made with ❤️ by Your Name

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft