encyclopegia.org

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

Related articles

XML Schema

stub · references available

RDF/XML

stub · references available

Office Open XML

stub · references available

Java XML Binding

stub · references available

XML validation

stub · references available

OpenOffice.org XML

stub · references available

XML Events

stub · references available

list of HTML and XML elements

stub · references available
CC BY-SA 4.0 · tier1-factual · https://en.wikipedia.org/w/index.php?oldid=1367018702 · 0.55 · snapshot vtd-xml-889580-5ca787f8e8e53509 · QID Q7907612

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.