Questions tagged [xmldog]

A SAX-based XPath 1.0 engine

Given a set of xpaths and an xml document, XMLDog uses SAX and with one pass over the document it evaluates all the given xpaths.

XMLDog is part of the jlibs Libray.

More information is available here

4 questions
1
vote
2 answers

How to get value and path from xml file?

I am using XMLDog for reading values from xml file. The problem is that I keep getting null values. This is the xml file: John Doe 30
tomi
  • 373
  • 1
  • 5
  • 16
0
votes
0 answers

XPath query in jlibs-xmldog throws NegativeArraySizeException

I have a project in which I try to run queries on XML files using in.jlibs.jlibs-xmldog.2.2.1. The XPath that I'm using is (//server[@id=123])[1] and the file to be queried looks like this
Norberth Csorba
  • 312
  • 1
  • 9
0
votes
2 answers

How to retrieve value from xml file using XMLDog

I am learning how to use SAX with xpath from this tutorial. and I wrote the below code, but it returns null instead of displaying '30' please let me know how to solve it, and is there any other library for using SAX with…
rmaik
  • 1,076
  • 3
  • 15
  • 48
0
votes
1 answer

org.xml.sax.SAXParseException; Content is not allowed in prolog

I had this exception org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 39; Content is not allowed in prolog. at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at…
Betlista
  • 10,327
  • 13
  • 69
  • 110