Jump to: navigation, search

Difference between revisions of "User:Rick.barkhouse.oracle.com/VTD"

Line 1: Line 1:
 
=VTD-XML Investigation=
 
=VTD-XML Investigation=
  
VTD-XML ([http://vtd-xml.sourceforge.net/ http://vtd-xml.sourceforge.net/])  
+
VTD-XML ([http://vtd-xml.sourceforge.net/ http://vtd-xml.sourceforge.net/]) is a high-performance XML processing model that deals with XML in a binary form, instead of the traditional text form.
 +
 
 +
VTD parses an XML document and builds an internal data structure representing the entire XML document in <tt>byte[]</tt> form.
 +
 
 +
VTD stands for '''V'''irtual '''T'''oken '''D'''escriptor.
  
 
==VTD-XML Core Concepts==
 
==VTD-XML Core Concepts==

Revision as of 11:30, 14 December 2012

VTD-XML Investigation

VTD-XML (http://vtd-xml.sourceforge.net/) is a high-performance XML processing model that deals with XML in a binary form, instead of the traditional text form.

VTD parses an XML document and builds an internal data structure representing the entire XML document in byte[] form.

VTD stands for Virtual Token Descriptor.

VTD-XML Core Concepts

Unmarshalling a VTD-XML document

VTDGen vg = new VTDGen();
 
// from existing byte[]
// true indicates namespace aware
vg.setDoc(byte[]); vg.parse(true);
 
// - or - 
 
// from file
vg.parseFile("old.xml",false)