Friday, June 3, 2011

XML-DOM

 ======================================
What is the Document Object Model?

 ======================================

The foundation of Extensible Markup Language, or XML, is the DOM. XML documents have a hierarchy of informational units called nodes; DOM is a way of describing those nodes and the relationships between them.
A DOM Document is a collection of nodes,the DOM is said to be tree-based, or object-based.
provides an API that allows a developer to add, edit, move, or remove nodes at any point on the tree in order to create an application.

DOM Level 1 included support for XML 1.0 and HTML

Namespace support was added to the DOM Level 2. new modules supporting Cascading Style Sheets, events, and enhanced tree manipulations.

DOM Level 3, currently in Last Call, includes better support for creating a Document object  XSL Transformations and other XML technologies.


CDATA: Short for Character Data, this is a node that contains information that should not be analyzed by the parser. Instead, it should just be passed on as plain text. For example, HTML might be stored for a specific purpose. Under normal circumstances, the processor might try to create elements for each of the stored tags, which might not even be well-formed. These problems can be avoided by using CDATA sections. These sections are written with a special notation:


 <[CDATA[ <b>
Important:  Please keep head and hands inside ride at <i>all times</i>.
</b> ]]>

No comments:

Post a Comment