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

From Eclipsepedia

Jump to: navigation, search
(New page: VTD-XML)
 
Line 1: Line 1:
VTD-XML
+
=VTD-XML Investigation=
 +
 
 +
==VTD-XML Core Concepts==
 +
 
 +
===Unmarshalling a VTD-XML document===
 +
 
 +
<div style="width:900px">
 +
<source lang="java">
 +
    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)
 +
</source>
 +
</div>

Revision as of 12:24, 14 December 2012

VTD-XML Investigation

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)