Easy Tutorial
❮ Dom Met Document Createcomment Prop Element Textcontent ❯

English: # XML DOM length Property



Definition and Usage

The length property returns the text length of a node (in characters).

Syntax


Example

The following code snippet uses loadXMLDoc() to load "books.xml" into xmlDoc and outputs the text node data and length of the first <title> element:

Example

The above code will output:


❮ Dom Met Document Createcomment Prop Element Textcontent ❯