XML DOM: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 21: Line 21:
<sentence>This is an <bold>interesting</bold> idea.</sentence>
<sentence>This is an <bold>interesting</bold> idea.</sentence>
</pre>
</pre>
A simpler-to-handle XML structure would be composed of elements that contain text, or other elements, but not both.

Revision as of 00:14, 11 November 2016

External

Internal

Overview

The W3C Document Object Model (DOM) is a platform and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of an XML document.

Mixed Content Model

Text and elements can be freely intermixed in a DOM hierarchy.

Example:

<sentence>This is an <bold>interesting</bold> idea.</sentence>

A simpler-to-handle XML structure would be composed of elements that contain text, or other elements, but not both.