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
2
votes
1 answer

Exception when split big XML file in small chunks with VTD-XML

I am developing a small program that divides a very big XML file (more than 2Gb) in little chunks. After a research of many libraries, I chose VTD-XML (using VTDGenHuge for big files) and I started developing a little code test. But I am getting an…
Susan Inga
  • 23
  • 4
2
votes
1 answer

Dynamic lookup in VTD-XML using only XPath

I'm trying to use an XPath expression to find elements referring to the current element in VTD-XML. So say my XML contains books and ratings and looks like this:
zwets
  • 153
  • 1
  • 6
2
votes
1 answer

Parsing XML with CDATA via VTD

According to this answer, VTD should be able to parse records with CDATA. However, it seems the parsing does not work with version 2.13 (from maven repo) and with the latest 2.13.2 downloaded from sourceforge. This is the test I am using: private…
Alessia
  • 23
  • 4
2
votes
1 answer

VTD-XML xpath with != is not working anymore

I have been facing this issue for 2 days since we have updated the library. We have a lot of xpath of this kind: /root/temp[@attr!='abcd'] and these aren't working anymore since we updated the library to 2.13. These were working fine with the 2.11…
Damiano
  • 35
  • 3
2
votes
1 answer

Xpath and VTD-XML, getting the node index

I'm using VTD-XML to parse some XML files with Xpath expressions, now following showed up: I need to know the index of a node from the xml tree, after a bit of searching I found that a expression like…
onigunn
  • 4,730
  • 10
  • 58
  • 89
2
votes
0 answers

Map supplementary Unicode characters to BMP (if possible)

I ran into the issue that my XML parser (VTD-XML) doesn't seem to be able to handle Unicode Supplementary characters (please correct if I'm already wrong here). It seems, the parser only uses the lower 16 bit of such characters. I cannot switch to…
khituras
  • 1,081
  • 10
  • 25
2
votes
1 answer

VTD 2.13 finds the wrong node evaluating xpath with condition on node value

The following xpath finds a node while it shouldn't. This happens with VTD-xml java 2.12 and 2.13, while v2.11 works fine. XML: 10 Xpath: //CONTACT[ID='1']/ID Result:10 Java unit test: @Test public void testXpath() throws…
user1971430
  • 77
  • 1
  • 8
2
votes
1 answer

VTD-XML JAVA XMLModifier remove whitespace issue

I am trying to remove some nodes using XMLModifier using the following code. I am ending with white spaces in between. How can I get rid of this? import java.nio.file.Files; import java.nio.file.Paths; import com.ximpleware.AutoPilot; import…
Muhammed K
  • 39
  • 4
2
votes
3 answers

Best Java XML parser for producing/consuming REST services

Currently using Java's built-in XML DOM libraries for creation/parsing. Ugly, even with lots of helper classes and methods, and performance and memory usage sucks. What's the best Java tool or framework for dealing with XML in regards to producing…
at.
  • 50,922
  • 104
  • 292
  • 461
2
votes
1 answer

How to get XML text as an Inputstream

I have the following client I am using to call a Jersey REST service. public class JerseyClient { public static void main(String[] args) { ClientConfig config = new DefaultClientConfig(); Client client =…
Toby Derrum
  • 299
  • 1
  • 3
  • 22
2
votes
1 answer

VTD-XML: XPath Statement - if(10 > 5) then "yes" else "no"

With VTD-XML, is it possible to execute the following XPath statement? if(10 > 5) then "yes" else "no"` I have a much more complex statement, but it will not run with my current setup. There are these methods possible: evalXPathToBoolean(),…
vScanger
  • 21
  • 1
2
votes
1 answer

Compile vtd-xml linux?

How should one compile vtd-xml for java on a linux box? I downloaded the project from sourceforge, but it only comes with a .bat script. I set classpath to reference the jar file, but I get all sorts of symbol not found errors when I try to run my…
Michael Pinkard
  • 205
  • 2
  • 10
2
votes
1 answer

Is there a way or how can I prevent multiple changes on one offset on VTD-XML?

Based on the question I have ask earlier: How can you save the constant update and the finally save the output as a file with XMLModifier The previous question I have done is do all the update and finally output it into a XML by…
jilldc13
  • 33
  • 1
  • 5
2
votes
2 answers

Time and memory efficient java XPath parser

What I need is a java implementation of XPath parser that will be more intuitive to use and comparable in memory and time efficiency to VTD-XML. What is more, I need it to perform nested Xpath expressions for some additional performance gains.In my…
Edmund K
  • 39
  • 6
2
votes
1 answer

Modify XMLSchema Location with vtd-xml and xPath

Is there a way to modify the XML schema location parsed by vtd-xml ? The xml files look like . . . The best solution…
Kepler
  • 57
  • 9
1 2
3
12 13