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
3
votes
2 answers

Change xml attribute value with XPath with vtd-xml Java

I have to set the value of "count" attribute in this xml:
FDC
  • 317
  • 3
  • 16
3
votes
1 answer

How can I set encoding for vtd-xml?

The problem is that there are some xml files which have no header information available in the xml. When parsing an xml file vtd-xml uses utf-8 by default and throws an exception saying cannot parse document. (the xml encoding is 8859-2 but no…
Ferenc Turi
  • 271
  • 3
  • 13
3
votes
1 answer

VTD-XML Performance Tuning

I am processing an average of 18 MB XML where the XPaths are intensive with predicates. I tried to profile the processing (warmed up the JVM) and the average processing time is 20 seconds. I would like to know if there are techniques to make it…
sincang
  • 119
  • 5
3
votes
3 answers

VTD-XML Parsing Performance (speed critical factor). Requesting Feedback/Comments

I am about to use VTD-XML (found at http://vtd-xml.sourceforge.net/) but I am interested in getting real-case usage feedback, by any one that has used the library and has any comments. At the URL (http://vtd-xml.sourceforge.net/) there are…
Andreas
  • 5,305
  • 4
  • 41
  • 60
3
votes
4 answers

VTD XML inner XPath Expressions

I have a xml file for example like this test1 test2 Now I want to parse it with the vtd-xml-parser by using XPath expressions. First I search for the test…
Sebastian Müller
  • 5,471
  • 13
  • 51
  • 79
3
votes
1 answer

Can VTD autopilot be thread safe?

Using Java 2.11 version. I'm building a xml binding component based on the CD Catalog data binding example. I have a fairly complex but rather small doc 2000 bytes about. And AutoPilot.bind() seems quite slow... int count = 10000; long start =…
user432024
  • 4,392
  • 8
  • 49
  • 85
3
votes
1 answer

VTD-XML 2.11 XPath expression count() fails with exception com.ximpleware.XPathEvalException: Function Expr can't eval to node set

Using the VTD-XML 2.11 (Java) API, when evaluating the XPath expression count(//b) on the XML document , instead getting a result of 2.0, it fails with the following exception: com.ximpleware.XPathEvalException: Function Expr can't…
3
votes
2 answers

Loading huge 4Gb XML file using vtd-xml

I am evaluating vtd-xml as a possible solution for a large data migration project. The input data is in xml format and if vtd-xml is viable it would save a lot of dev time. I run the example Process Huge XML Documents (Bigger than 2GB) from vtd-xml…
user1829870
  • 83
  • 1
  • 7
3
votes
1 answer

vtd-xml c++ compilation and installation error

Has anybody used the c++ version of vtd-xml lib? Recently I want to parse (need to traversal) xml files with c++ or c and got the idea that vtd-xml is a perfect solution, but when compiling mingw output lots of warnings and errors. I have looked…
ewre
  • 61
  • 4
3
votes
1 answer

How do i do concat more than one tag value in vtd XML?

How do I concatenate multiple tag values using XPATH on vtd XML?
      
        
           Hi  
           Vtd
           Users
        
      
  
I have tried to use the following unsuccessfully. …
Bhuvanesh
  • 31
  • 2
2
votes
0 answers

Are there performance benchmarks of VTD-XML comparing java C++ C# and C versions of VTD-XML?

VTD-XML is available in C++ C, Java and C#. I am looking performance benchmarks that compares all these language version processing fairly complex XML docs.
rjc
  • 2,885
  • 8
  • 32
  • 40
2
votes
1 answer

How can I use VTD-XML inside Perl with Inline::C?

I've recently discovered the power of the VTD-XML approach to XML parsing, mainly its speed. Just to be specific, I have built the C version 2.10 ( there are Java, C++ and C# implementations too ). My objective is simple: I want to extract data from…
Marco De Lellis
  • 1,169
  • 6
  • 10
2
votes
4 answers

in java using vtd-xml throws java.lang.UnsupportedClassVersionError

I have an ear app with two EJB and one WEB (war) projects all using compiler compliance 1.5. In my web project I created a utility Class file that takes a byte array of an xml file and returns some string values using the vtd-xml library v2.10 and I…
Alex
  • 616
  • 1
  • 12
  • 28
2
votes
2 answers

How to parse an XML file in Scala using VTD-XML library?

Does Anyone know How to parse large XML files using Xpath using vtd-xml library in Scala?
AnsigT
  • 91
  • 6
2
votes
1 answer

vtd-xml get/remove attribute name and value

I have the following segment of XML that I'd like to strip attributes from and output as a new XML using Ximpleware/VTD-XML. Source: Target: I understand I can use…
Ben
  • 53
  • 1
  • 7
1
2
3
12 13