XML - Programming Model

Card Puncher Data Processing

About

An Xml Document can build in two programming models.

It can be seen:

A stream model requires much less memory than DOM, because the stream model does not construct an internal representation (tree structure) of the XML data, as a DOM does.

You see the data as it streams in. In general, such parsers work well when you simply want to read data and have the application act on it. When you need to modify (interactively) an XML structure, an in-memory structure such as DOM makes more sense.

Constructing the dom requires reading the entire XML structure and holding the object tree in memory, so it is much more CPU- and memory-intensive.





Discover More
The Document Object Model W3C API Interface (DOM)

W3CAPI The domDocument Object Model (DOM) is one of the two programming models used to represent a XML document. DOM defines the interface description of a Document Object that represents an XML document...
Card Puncher Data Processing
XML - Stream of event Programming Model

Streaming refers to a programming model in which XML infosets are transmitted and parsed serially: at application runtime, often in real time, and often from dynamic sources whose contents...



Share this page:
Follow us:
Task Runner