Share

TinyXPath : tiny C++ XPath

Code

Programming Languages: C++, XSL (XSLT/XPath/XSL-FO)

License: zlib/libpng License

Repositories

browse code, statistics, last commit on 2007-06-25 cvs -d:pserver:anonymous@tinyxpath.cvs.sourceforge.net:/cvsroot/tinyxpath login

cvs -z3 -d:pserver:anonymous@tinyxpath.cvs.sourceforge.net:/cvsroot/tinyxpath co -P modulename

Show:

What's happening?

  • Followup: RE: Multiple predicates

    if exp is /root/item[@type='special']/@name may get item4 why? i think it is bug .

    2009-10-29 05:06:34 UTC by https://www.google.com/accounts

  • Multiple predicates

    I realise there hasn't been any updates to TinyXPath since 2007, but thought I would post this anyway. Here's a test xml: <root> <item name="item1" /> <item name="item2" /> <item name="item3" type="special" /> <item name="item4" type="special" /> </root> I'm trying to use two...

    2009-07-02 15:58:22 UTC by andrewgits

  • Followup: RE: Memory leak in er_compute_xpath

    BTW, TinyXPath::xpath_processor x( doc.RootElement(), xpathstr ); should read as TinyXPath::xpath_processor x( doc.RootElement(), xpathstr.c_str());.

    2009-06-09 04:16:53 UTC by johncruise

  • Memory leak in er_compute_xpath

    I haven't gone deeper in my debugging but I can definitely say that there is a memory leak being created when calling TinyXPath::xpath_processor::er_compute_xpath() from within S_compute_xpath(). I'm not sure if I am just invoking it wrong but here is an overview of how I use TinyXPath... // CODE: START std::string xmlstr; // xmlstr = some valid XML string std::string xpathstr; //...

    2009-06-09 04:15:38 UTC by johncruise

  • ticpp+tinyxpath

    Hello, tinyXPath is based on tinyXML (http://www.grinninglizard.com/tinyxml/, https://sourceforge.net/projects/tinyxml/). The ticpp project (http://code.google.com/p/ticpp/) created a new C++ interface (named TinyXML++) for tinyXML. I plan to use tinyXML++ with tinyXpath in a project. Looking at Issue #10 of the ticpp Issues http://code.google.com/p/ticpp/issues/detail?id=10 there...

    2009-04-13 10:11:43 UTC by bernreuther

  • what is the expected?

    Hi, There, I am using the TinyXpath in my project. Here is my xml file: <Root> <Image hanging="True" annotated="False"> <Tag group="0x0028" element="0x0103" vr="US">0</Tag> </Image> <Tag group="0x0018" element="0x0010"...

    2009-03-13 09:36:02 UTC by ornot2008

  • Followup: RE: Bug in "//" expressions?

    Hello there, I have been playing around a little more with this problem, and I can refine it as follows: It seems that the problem is NOT that xproc.XNp_get_xpath_node(i) returns the wrong node for i=3. The trouble seems to be that subequent XPath queries on this intermediate node as the source node are not always correct. Here is the output of my sample program: bash-3.2$ ./tinyxpath...

    2009-02-01 18:34:14 UTC by janschaf

  • Bug in "//" expressions?

    Hi all, when I run TinyXPath::xpath_processor xproc(doc.RootElement(), "//instancesSet//item") on the following XML file, I get a result set with 4 nodes. This is correct, but when iterating over the result with xproc.XNp_get_xpath_node(i) I get the same node for i=2 and i=3. This doesn't make sense. When try this expression at...

    2009-01-31 15:26:15 UTC by janschaf

  • XPath expression on non-root element

    I tried to run queries against non-root elements, however they always fail. Is this unsupported? A short example: <a> <b>Hey</b> </a> First I select the "a" element: const TiXmlNode* aNode = XNp_xpath_node(doc.RootElement(), "/a"); Then I want to extract the text of the "b" element with: string s = S_xpath_string(aNode...

    2008-08-07 11:01:03 UTC by slimtimmy

  • Followup: RE: XNp_get_xpath_node() returns wrong node

    I got some new information. After changing actionName to "//game/action" i get two elements (the count is correct) but both contain the attribute name="rename" what may be wrong in there?.

    2008-07-01 07:06:37 UTC by docjunior

Our Numbers