See also:
Topic

JavaScript

Scripting language
3/2/2020

Generating data URLs in JavaScript

How to generate data URLs in JavaScript?

All data URLs begin with data:, followed by the optional media type, encoding, and the data itself.

Read more
6/16/2019

Parsing XML in JavaScript

How to parse XML in JavaScript?

This is an example of parsing a string containing XML content:

const bookXml = `
    <book>
        <author>J. K. Rowling</author>
        <title>Harry Potter and the Philosopher's Stone</title>
    </book>
`;

const parser = new DOMParser()
const doc = parser.parseFromString(bookXml, 'application/xml')
Read more