Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

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

Line 7: Line 7:
 
<div style="width:900px">
 
<div style="width:900px">
 
<source lang="java">
 
<source lang="java">
    VTDGen vg = new VTDGen();
+
VTDGen vg = new VTDGen();
  
    // from existing byte[]
+
// from existing byte[]
    // true indicates namespace aware
+
// true indicates namespace aware
    vg.setDoc(byte[]); vg.parse(true);
+
vg.setDoc(byte[]); vg.parse(true);
  
    // - or -  
+
// - or -  
  
    // from file
+
// from file
    vg.parseFile("old.xml",false)
+
vg.parseFile("old.xml",false)
 
</source>
 
</source>
 
</div>
 
</div>

Revision as of 12:25, 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)

Back to the top