Questions tagged [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).

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). 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. It is originally written in Java, but is now available in C, C++ and C#.

Download vtd-xml at https://vtd-xml.sourceforge.io/

Here are a few articles describing how to code applications in VTD-XML

190 questions
1
vote
1 answer

How to ingore namespace prefixes on VTD Xpath lookup

I'm building a VTD based XML Parsing engine in order to process files from several input systems. I'm currently trying to get values from tags with namespace prefix:
Mikhas
  • 851
  • 1
  • 12
  • 31
1
vote
1 answer

Prior knowledge on attributes?

I am currently looking to integrate VTD-XML in to our project (as a replacement of a Stax based system). Our xml files are mostly structured like this:
fho
  • 6,787
  • 26
  • 71
1
vote
2 answers

How to compile C version of vtd-xml under linux (32 bit)

I've downloaded ximpleware_2.11_c.zip (C version of vtd-xml), when I have tried to compile it under linux I've the following error messages: In file included from vtdNav.c:19: vtdNav.h:82: error: expected declaration specifiers or ‘...’ before…
famedoro
  • 1,223
  • 2
  • 17
  • 41
1
vote
2 answers

VTDGen throws ParseException: File too big

I am trying to parse xml file with VTDGen library. It was perfect to parse xml till I am having trouble with over 1GB xml File. This is a code how I parse it. VTDGen vg = new VTDGen(); in = new SmbFileInputStream(fileToGet); …
draford
  • 243
  • 1
  • 3
  • 15
1
vote
1 answer

VTD-XML Java code only getting first elements

XML document: 1900-01-01 contractId1 1 ... contractId2
dunce1
  • 323
  • 5
  • 21
1
vote
1 answer

How to apply xpath in a case insensitive mode in VTD-XML

I am using VTD-XML and java to parse an XML file using xpath. I need to apply the xpath in a case insensitive mode? Could you please suggest how to do that?
Bibin
  • 61
  • 1
  • 1
  • 3
1
vote
2 answers

when rebuiding jar file for vtd-xml, build.bat throws errors such as "java_cup\parser.java:695: package java_cup.runtime does not exist"

I am getting errors like this for almost all files trying to be compiled. Due to this, none of the class files are being created and thus the jar is unusable. Any suggestions? I didn't change the build.bat file at all but here it is anyway. javac…
theGuardian
  • 439
  • 2
  • 6
  • 17
1
vote
0 answers

VTD-XML in Java - Sequential usage of several `insertAfterHead` doesn't work

I need to paste int XML file several elements in one time, so I have the code: public void writeElement(String parent, String element, String content) { try { xmlModifier = new XMLModifier(); xmlModifier.bind(vtdNav); …
Eugene
  • 1,037
  • 4
  • 20
  • 34
1
vote
1 answer

Write several elments to XML by VTD-XML

I want to write several elements inside one parent and I have the following code: public void writeElement(String parent, String element, String content) { try { xmlModifier.bind(vtdNav); vtdNav.toElement(VTDNav.FC, parent); …
Eugene
  • 1,037
  • 4
  • 20
  • 34
1
vote
2 answers

VTD-XML: after initialization of the objects they still refer to null

The problem is: after initializing VTDGen, VTDNav or AutoPilot in constructor, in the other method they refer to null and the appropriate exception is thrown. public class Configuration { public Configuration(String dir, String filename,…
Eugene
  • 1,037
  • 4
  • 20
  • 34
1
vote
1 answer

In VTD-XML how to add new attribute into tag with existing attributes?

I'm using VTD-XML to update XML files. In this I am trying to get a flexible way of maintaining attributes on an element. So if my original element is: I'd like to be able to update it to…
Dazed
  • 1,069
  • 9
  • 34
1
vote
1 answer

Remove the remaining new line after using VTD-XML to remove an element

I'm trying to remove a set of child elements from a parent element using VTD-XML. Unfortunately after removing an element, it leaves behind the new line that the removed element previously occupied. This behaviour is also observed by a reader of an…
xlm
  • 6,854
  • 14
  • 53
  • 55
1
vote
1 answer

Finding namespace of a given Element using VTD-XML

For my application I only need to determine the namespace of the root node, so ideally I would like to execute a single operation to get this namespace. I have code that uses an XPath to get all of the namespaces declared (/*/namespace::*), but then…
Rick Barkhouse
  • 1,186
  • 2
  • 10
  • 15
1
vote
0 answers

VTD-XML Large File Split - Out Of Memory

I see VTD-XML parseGzip() loads the complete file into memory which is resulting in OutOfMemory. My Eclipse -Xms20m and -Xmx100m and the Gzipped Xml file size is 50MB. Sample code i'm using is below, Any hits to get rid of memory constraints…
1
vote
2 answers

VTD-XML: how to get tag name of the current element?

In the VTDNav docs I see methods to get value of attrubites, to get text value of the element, but I really can't find, how to get tag name of the current element?
Dmitry Frank
  • 10,417
  • 10
  • 64
  • 114