Questions tagged [tinyxpath]

TinyXPath is a small footprint XPath syntax decoder, written in C++. Syntax decoding Application to a TinyXML tree Function to extract a result from a tree (string, node set or integer)

11 questions
89
votes
1 answer

How to select all elements with a specific attribute? with TinyXPath

What is the XPath expression for selecting all elements with attribute A? const char* xpath = "//\*/\*[@A]"
eugene
  • 39,839
  • 68
  • 255
  • 489
1
vote
1 answer

How to find child elements of a specific node ? with TinyXpath

I have successfully used TinyXpath with root node as below const char* xpath ="/MyRoot/A/B"; TinyXpath::xpath_processor xp_proc(mRootElement, xpath); (this will find all B under all A of MyRoot) I wonder if I can pass non-root element to the…
eugene
  • 39,839
  • 68
  • 255
  • 489
1
vote
2 answers

Is there a way to remove namespaces from xml tags using C++/Boost or using some other library

Is there a way in C++, using Tinyxml , TinyXpath , such that, a string containing : transforms to EDIT: I was…
Aman Aggarwal
  • 3,905
  • 4
  • 26
  • 38
1
vote
1 answer

TinyXPath: Failure to find relative descendant

The small footprint of TinyXPath makes it an attractive package for simple XPath queries. However, some of its functionality seems not to work the way one (newbie) would expect it to. Specifically, I can't seem to be able to obtain matches for…
klase
  • 33
  • 5
0
votes
2 answers

TinyXpath v_get_xpath_base, second parameter

What do I pass here as the second parameter to v_get_xpath_base in order to get it to work, no matter what I try, there always seems to be a problem. Either the class is a base class and cannot be instantiated or the class cannot be casted. I'm at…
Tony The Lion
  • 61,704
  • 67
  • 242
  • 415
0
votes
1 answer

Performance issues while searching for XPath using TinyXPath

I have a fairly large XML file (~11MB) and I'm using TinyXPath to locate some nodes. Despite the fact that the node I'm trying to locate cannot be confused with other nodes later in the DOM, it is taking several minutes for the XPath query to…
djs
  • 1,660
  • 1
  • 17
  • 35
0
votes
1 answer

I need a way to extract the value between the tags, given a path in the XML. How can I use TinyXpath for this?

XML EXMAPLE: hello abcd If the Xml file looks like above and I give an input path "first node/second node", I must be able to…
iShrivatsa
  • 21
  • 3
0
votes
1 answer

Does tinyxpath 1.3.1 support xpath 2.0?

I'm having some troubles computing complex xpaths with tinyxpath 1.3.1. Those xpaths are perfectly computed in this online xpath tester: http://www.qutoric.com/xslt/analyser/xpathtool.html. xpath samples I'm…
rturrado
  • 7,699
  • 6
  • 42
  • 62
0
votes
1 answer

Why does TinyXPath give different results for the same object when called in two different classes?

I'm building a project on Ubuntu in which I'm using TinyXPath library along with TinyXml to parse the following xml: ...
Nikopol
  • 1,091
  • 1
  • 13
  • 24
0
votes
1 answer

In TinyXPath how to query data by indexed by element content

I am using TinyXPath to enhance an existing test tool so data from a customer XML structure can be fetched and used. The XML looks like this
mactwixs
  • 402
  • 1
  • 6
  • 15