VTD-XML
Virtual Token Descriptor for eXtensible Markup Language (VTD-XML) refers to a collection of cross-platform XML processing technologies centered on a non-extractive XML, "document-centric" parsing technique called Virtual Token Descriptor (VTD).[src] Depending on the perspective, VTD-XML can be viewed as one of the following: *A "Document-Centric" XML parser *A native XML indexer or a file format that uses binary data to enhance the text XML *An incremental XML content modifier *An XML slicer/splitter/assembler *An XML editor/eraser *A way to port XML processing on chip *A non-blocking, stateless XPath evaluator VTD-XML is developed by XimpleWare and dual-licensed under GPL and proprietary license.[src] It was originally written in Java, but is now available in C, C++ and C#.[src]
Virtual Token Descriptor for eXtensible Markup Language (VTD-XML) refers to a collection of cross-platform XML processing technologies centered on a non-extractive XML, "document-centric" parsing technique called Virtual Token Descriptor (VTD).[src] Depending on the perspective, VTD-XML can be viewed as one of the following: A "Document-Centric" XML parser A native XML indexer or a file format that uses binary data to enhance the text XML An incremental XML content modifier An XML slicer/splitter/assembler An XML editor/eraser A way to port XML processing on chip A non-blocking, stateless XPath evaluator VTD-XML is developed by XimpleWare and dual-licensed under GPL and proprietary license.[src] It was originally written in Java, but is now available in C, C++ and C#.[src] ==Basic concept== ===Non-extractive, document-centric parsing=== Traditionally, a lexical analyzer represents tokens (the small units of indivisible character values) as discrete string objects.[src] This approach is designated extractive parsing.[src] In contrast, non-extractive tokenization mandates that one keeps the source text intact, and uses offsets and lengths to describe those tokens.[src] === Virtual token descriptor=== Virtual Token Descriptor (VTD) applies the concept of non-extractive, document-centric parsing to XML processing.[src] A VTD record uses a 64-bit integer to encode the offset, length, token type and nesting depth of a token in an XML document.[src] Because all VTD records are 64 bits in length, they can be stored efficiently and managed as an array.[src] ===Overview=== Virtually all the core benefits of VTD-XML are inherent to non-extractive, document-centric parsing which provides these characteristics: The source XML text is kept intact in memory without decoding.[src] The internal representation of VTD-XML is inherently persistent.[src] Obviates object-oriented modeling of the hierarchical representation as it relies entirely on primitive data types (e.g., 64-bit integers) to represent the XML hierarchy, thus reducing object creation cost to nearly zero.[src] Combining those characteristics permits thinking of XML purely as syntax (bits, bytes, offsets, lengths, fragments, namespace-compensated fragments, and document composition) instead of the serialization/deserialization of objects.[src] This is a powerful way to think about XML/SOA applications.[src] === As indexer=== Because of the inherent persistence of VTD-XML, developers can write the internal representation of a parsed XML document to disk and later reload it to avoid repetitive parsing.[src] To this end, XimpleWare has introduced VTD+XML as a binary packaging format combining VTD, LC and the XML text.[src] It can typically be viewed in one of the following two ways: A native XML index that completely eliminates the parsing cost and also retains all benefits of XML.[src] It is a file format that is human readable and backward compatible with XML.[src] A binary XML format that uses binary data to enhance the processing of the XML text.[src] === Other benefits=== VTD-XML also pioneers the non-blocking, stateless XPath evaluation approach.[src] ==Weaknesses== VTD-XML Also includes noticeable shortcomings/weaknesses: As an XML parser, it does not support external entities declared in the DTD.[src] As a file format, it increases the document size by about 30% to 50%.[src] As an API, it is not compatible with DOM, SAX or StAX.[src] It is difficult to support certain validation techniques, employed by DTD and XML Schema (e.g., default attributes and elements), that require modifications to the XML instances being parsed.[src] ==Areas of applications== /* In this java program, we demonstrate how to use XMLModifier to incrementally update a simple XML purchase order.[src] a particular name space.[src] We also are going to use VTDGen's parseFile to simplify programming.[src] / import com.ximpleware.*; public class Update { public static void main(String argv[]) throws NavException, ModifyException, IOException{ // open a file and read the content into a byte array VTDGen vg = new VTDGen(); if (vg.parseFile("oldpo.xml", true)) { VTDNav vn = vg.getNav(); AutoPilot ap = new AutoPilot(vn); XMLModifier xm = new XMLModifier(vn); ap.selectXPath("/purchaseOrder/items/item[@partNum='872-AA']"); int i = -1; while ((i = ap.evalXPath()) != -1) { xm.remove(); xm.insertBeforeElement(" \n"); } ap.selectXPath("/purchaseOrder/items/item/USPrice[.[src] ==References==[src]
32 sentences · 32 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"VTD-XML." encyclopegia.org, 2026, https://encyclopegia.org/wiki/vtd-xml. Accessed 29 November 2026.
Chicago
"VTD-XML." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/vtd-xml.
APA
encyclopegia.org. (2026). VTD-XML. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/vtd-xml
Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON