Document-Centric

Document-Centric

Document Centric XML processing is a notion first introduced in VTD-XML. Before VTD-XML, traditional XML processing models (e.g. DOM, SAX and JAXB etc.) are designed around the notion of objects. The XML text, merely as the serialization of the objects, is relegated to the status of a second-class citizen. You base your applications on DOM nodes, string and various business objects, but rarely on the physical documents. If you have followed my articles on DevX so far, it should quickly become obvious that this object-oriented approach of XML processing makes little sense because of the performance hits from virtually all directions. Not only are object creation and garbage collection inherently memory and CPU inefficient, but your applications incur the cost of re-serialization with even the smallest changes to the original text.

With document-centric XML processing, the XML document (the persistent format of data) is the starting point from which everything else comes about. Whether it is parsing, XPath evaluation, modifying content, or slicing element fragments, by default you no longer work directly with objects. You only do that when it makes sense. More often than not, you treat documents purely as syntax, and think in bytes, byte arrays, integers, offsets, lengths, fragments and namespace-compensated fragments. The first-class citizen in this paradigm is the XML text. And the object-centric notions of XML processing, such as serialization and de-serialization (or marshalling and unmarshalling) are often displaced, if not replaced, by more document-centric notions of parsing and composition. Increasingly you will find that your XML programming experience is getting simpler. And not surprisingly, the simpler, intuitive way to think about XML processing is also the most efficient and powerful.


Wikimedia Foundation. 2010.

Игры ⚽ Нужен реферат?

Look at other dictionaries:

  • Document-centric XML processsing — Document Centric XML processing is a notion first introduced in VTD XML. Before VTD XML, traditional XML processing models (e.g. DOM, SAX and JAXB etc.) are designed around the notion of objects. The XML text, merely as the serialization of the… …   Wikipedia

  • Document engineering — is a document centric synthesis of complementary ideas from information and systems analysis, electronic publishing, business process analysis, and business informatics to ensure that the documents and processes make sense to the people and… …   Wikipedia

  • Document Engineering — 1. A document centric philosophy that synthesizes complementary ideas from information and systems analysis, electronic publishing, business process analysis, and business informatics to ensure that the documents and processes make sense to the… …   Wikipedia

  • Multiple document interface — Graphical computer applications with a multiple document interface (MDI) are those whose windows reside under a single parent window (usually except for modal windows), as opposed to all windows being separate from each other (single document… …   Wikipedia

  • Intelligent document — is a general term to describe electronic documents with more functionality than a page designed to emulate paper. Formats include PDF from Adobe, InfoPath from Microsoft, Cardiff Software and XForms from W3C, and the non programming solutions… …   Wikipedia

  • Network-centric warfare — Warfare Military history Eras Prehistoric Ancient Medieval Gunpowder Industrial …   Wikipedia

  • Network centric warfare — Le Network Centric Warfare est un concept popularisé sous le nom de guerre en réseau et qui est apparu à la fin du XXe siècle dans les doctrines militaires. Terme d origine américaine, il décrit une manière de conduire des opérations… …   Wikipédia en Français

  • Data-centric programming language — defines a category of programming languages where the primary function is the management and manipulation of data. A data centric programming language includes built in processing primitives for accessing data stored in sets, tables, lists, and… …   Wikipedia

  • Network Centric Warfare — Le Network Centric Warfare est un concept popularisé sous le nom de guerre en réseau et qui est apparu à la fin du XXe siècle dans les doctrines militaires. Terme d origine américaine, il décrit une manière de conduire des opérations… …   Wikipédia en Français

  • National Agenda Document Project — The National Agenda Document Project is a non partisan collaboration that allows citizens to participate in national planning and provide more coherent input to their elected representatives. This political experiment founded in 2006, has already …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”