vue-xml-viewer

The component to display formatted and colored XML document view.
6,445 6
Install
npm install vue-xml-viewer
Latest Version:0.1.4
Vue:2
License:MIT
Last Updated:May 3, 2022
Links: GitHub  ·  npm
Maintainer: leon_mz

vue-xml-viewer

The component to display formatted and colored XML document view.

Live demo

https://leon737.github.io/vue-xml-viewer/

Setup

npm install vue-xml-viewer --save

Your project should use Composition API

Install:

npm install @vue/composition-api

Setup Composition API:

Add to your app entry js file:

import Vue from 'vue'
import CompositionApi from '@vue/composition-api'

Vue.use(CompositionApi)

Usage

<template>
    <div>
        <XmlViewer :xml="xml" />
    </div>
</template>
import XmlViewer from 'vue-xml-viewer'

export default {
    components: {
        XmlViewer
    },
    setup() {
        const xml = getSomeXmlAsString()
        
        return {
            xml
        }
    }
}

Related Packages

vue3-xml-viewer

A Vue 3 component to display a formatted and colored XML document. The project i...

116,610 2
@tato30/vue-pdf

PDF component for Vue 3

2,130,711 692
vue-pdf

vue.js pdf viewer

864,848 2,295
@teckel/vue-pdf

vue.js pdf viewer

163,440 2
vue3-pdf

vue.js pdf viewer

12,460

Version History

Version Released License
0.1.4 MIT
0.1.3 MIT
0.1.2 MIT
0.1.1 MIT
0.1.0