May 27, 2021 XML DOM
All modern browsers support the W3C DOM specification.
However, there are differences between browsers. An important difference is:
XML often contains line-over or blank characters between nodes. This is often the case when editing a document using a simple editor, such as Note book.
The following example (edited by Note book) contains CR/LF (line-over) between each line, with two spaces before each child node:
<book>
<title>Everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price>30.00</price>
</book>
Internet Explorer will not use empty blanks or line-overs as text nodes, while other browsers will.
The following snippet shows how many .xml the root element (books) has:
Example explanation: