import { XML } from "https://js.sabae.cc/XML.js";
const json = XML.toJSON("<xml att='abc'><tag>text</tag></xml>");
console.log(json); // { xml: { att: "abc", tag: { "#text": "text" } } }
const xml = XML.stringify({ xml: { att: "abc", tag: { "#text": "text" } } });
console.log(xml);
-
Notifications
You must be signed in to change notification settings - Fork 0
XML for JavaScript ES module (XML.toJSON / XML.stringify)
License
code4fukui/XML
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
XML for JavaScript ES module (XML.toJSON / XML.stringify)
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published