A Vue 3 component to display a formatted and colored XML document. The project is forked from https://github.com/leon737/vue-xml-viewer and made Vue3 a first class citizen.
https://antony-k1208.github.io/vue3-xml-viewer/
npm install vue3-xml-viewer --save
yarn add vue3-xml-viewer
<template>
<div>
<XmlViewer :xml="xml" />
</div>
</template>
import XmlViewer from 'vue3-xml-viewer'
export default {
components: {
XmlViewer
},
setup() {
const xml = getSomeXmlAsString()
return {
xml
}
}
}