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);-
Couldn't load subscription status.
- Fork 0
XML for JavaScript ES module (XML.toJSON / XML.stringify)
License
Couldn't load subscription status.
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