XML - Stream of event Programming Model

Card Puncher Data Processing

About

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 are not precisely known beforehand.

Streaming provides high performance (smaller memory footprint, reduced processor requirements).

As you can only see the XML infosets state at one location at a time in the document, you need to know what processing you want to do before reading the XML document.

Streaming models are particularly useful when your application:

  • has strict memory limitations (cellphone, …)
  • needs to process several requests simultaneously (application server)

Mode

Pull

the client only gets (pulls) XML data when it explicitly asks for it.

Push

the parser sends the data whether or not the client is ready to use it at that time.





Discover More
Java Conceptuel Diagram
Java XML - Stream of event

model in Java. Jackson: (XStream: )...
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 - Programming Model

An Xml Document can build in two programming models. It can be seen: as a stream of events an object representation (DOM - document object model) A stream model requires much less memory than DOM,...



Share this page:
Follow us:
Task Runner