From http://www.w3schools.com (Copyright Refsnes Data)
| « Previous | Next Chapter » |
All modern browsers support the W3C DOM specification.
However, there are some differences between browsers. One important difference is:
XML often contains new line, or white space characters, between nodes. This is often the case when the document is edited by a simple editor like Notepad.
The following example (edited by Notepad) contains CR/LF (new line) between each line and two spaces in front of 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 treat empty white-spaces, or new lines as text nodes, wile other browsers will.
The following code fragment displays how many child nodes the root element (of books.xml) has:
Example
Try it yourself » |
Example explained:
| « Previous | Next Chapter » |
From http://www.w3schools.com (Copyright Refsnes Data)