<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to support-requests</title><link href="https://sourceforge.net/p/tinyxpath/support-requests/" rel="alternate"/><link href="https://sourceforge.net/p/tinyxpath/support-requests/feed.atom" rel="self"/><id>https://sourceforge.net/p/tinyxpath/support-requests/</id><updated>2017-08-15T19:33:25.243000Z</updated><subtitle>Recent changes to support-requests</subtitle><entry><title>Fix for locale-dependent floating point parsing</title><link href="https://sourceforge.net/p/tinyxpath/support-requests/8/" rel="alternate"/><published>2017-08-15T19:33:25.243000Z</published><updated>2017-08-15T19:33:25.243000Z</updated><author><name>Harri Porten</name><uri>https://sourceforge.net/u/hporten/</uri></author><id>https://sourceforge.netb24c2057e1ccc259f2619461835ec9de573edef7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;atof() works depending on the locale. The usage of periods is hardcoded, though. &lt;/p&gt;
&lt;p&gt;Proposed patch attached.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bug in test.xml</title><link href="https://sourceforge.net/p/tinyxpath/support-requests/7/" rel="alternate"/><published>2015-07-30T20:00:13.102000Z</published><updated>2015-07-30T20:00:13.102000Z</updated><author><name>Alexandre Moine</name><uri>https://sourceforge.net/u/nobrakal/</uri></author><id>https://sourceforge.net9d7d77551c0b2a7c26792c2de7bb03fca9c07793</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tried to make a package for Fedora, and the binary return some errors (see out.htm), I investigated the error, and the problem came from an inversion of values in comment of test.xml. I corrected it, and all work fine.&lt;/p&gt;
&lt;p&gt;I added a patch.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bug in lex parser</title><link href="https://sourceforge.net/p/tinyxpath/support-requests/6/" rel="alternate"/><published>2013-03-27T20:59:24Z</published><updated>2013-03-27T20:59:24Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net7c2cd5e10ee1810a30fc12acdc1074c682257f5b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;There's a bug in the lex parser currently with validating the XPath expression. If your XPath element name contains any of the key words used by the lexical expressions, they get flagged as invalid XPath. For example:&lt;/p&gt;
&lt;p&gt;XPath: &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;//star&lt;/p&gt;
&lt;p&gt;XML:&lt;/p&gt;
&lt;p&gt;&amp;lt;galaxy&amp;gt;&lt;br /&gt;
&amp;lt;star id="A001"&amp;gt;This is a valid element&amp;lt;/star&amp;gt;&lt;br /&gt;
&amp;lt;/galaxy&amp;gt;&lt;/p&gt;
&lt;p&gt;I removed div from the set for my specific application, but any keyword (mod, add, div, star), etc. will be flagged as an invalid XPath syntax. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Assignment operator should be return by reference</title><link href="https://sourceforge.net/p/tinyxpath/support-requests/5/" rel="alternate"/><published>2012-12-19T05:59:11Z</published><updated>2012-12-19T05:59:11Z</updated><author><name>Gaurav</name><uri>https://sourceforge.net/u/ya1gaurav/</uri></author><id>https://sourceforge.netbba09424e85547854ce200d892dcde8ec63462ea</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;in File tinyxml.h&lt;br /&gt;
In TiXmlHandle class assignment operator should return by reference.&lt;/p&gt;
&lt;p&gt;Here is diff.&lt;/p&gt;
&lt;p&gt;-       TiXmlHandle operator=( const TiXmlHandle&amp;amp; ref ) { this-&amp;gt;node = ref.node; return *this; }&lt;br /&gt;
+       TiXmlHandle&amp;amp; operator=( const TiXmlHandle&amp;amp; ref ) { this-&amp;gt;node = ref.node; return *this; }&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Memory Leak in TinyXPath</title><link href="https://sourceforge.net/p/tinyxpath/support-requests/4/" rel="alternate"/><published>2012-06-04T18:40:54Z</published><updated>2012-06-04T18:40:54Z</updated><author><name>Benjamin Rood</name><uri>https://sourceforge.net/u/benjaminjrood/</uri></author><id>https://sourceforge.net9504cc22ca09729794d98cf8971864a289bb5499</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If a node set is computed more than once for an XPath expression, a memory leak occurs because the "operator=" overloaded function in node_set.cpp does not check for a previous allocation of the "vpp_node_set" and "op_attrib" members of the object and free them appropriately.&lt;/p&gt;
&lt;p&gt;I managed to reproduce this consistently via the following test:&lt;/p&gt;
&lt;p&gt;1.) Load a document &lt;br /&gt;
2.) Compute a node set via the "u_compute_xpath_node_set()" function repeatedly, such as in the condition of a for loop&lt;/p&gt;
&lt;p&gt;Example code:&lt;/p&gt;
&lt;p&gt;[code]&lt;/p&gt;
&lt;p&gt;TiXmlDocument* document = new TiXmlDocument( "test.xml" );&lt;br /&gt;
document-&amp;gt;LoadFile();&lt;/p&gt;
&lt;p&gt;TinyXPath::xpath_processor proc( document-&amp;gt;RootElement(), "/Test/*/text()" );&lt;/p&gt;
&lt;p&gt;for ( unsigned int i = 0; i &amp;lt; proc.u_compute_xpath_node_set(); i++ )&lt;br /&gt;
{&lt;br /&gt;
TiXmlNode* node = proc.XNp_get_xpath_node( i );&lt;br /&gt;
printf( "%s\n", node-&amp;gt;value() );&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;[code]&lt;/p&gt;
&lt;p&gt;I have attached a patch that solves this memory leak.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Win64 and TinyXml 2.6.2</title><link href="https://sourceforge.net/p/tinyxpath/support-requests/3/" rel="alternate"/><published>2011-11-25T06:34:42Z</published><updated>2011-11-25T06:34:42Z</updated><author><name>Malcolm Nixon</name><uri>https://sourceforge.net/u/malcolmnixon/</uri></author><id>https://sourceforge.netcc2474e7a490f70b3305a64ebda5a725eebff6eb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Currently TinyXPath emits compile warnings for Win64 targets (size_t to unsigned conversions) and contains a fairly elderly version of TinyXml. Attached is a patch file that adds appropriate casts and upgrades TinyXml to the latest version.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>last() -1 returns last element</title><link href="https://sourceforge.net/p/tinyxpath/support-requests/2/" rel="alternate"/><published>2011-08-05T07:57:49Z</published><updated>2011-08-05T07:57:49Z</updated><author><name>sulc</name><uri>https://sourceforge.net/u/sulc/</uri></author><id>https://sourceforge.net88e42c54c8fa4d6ee46a3a6a7fac219242a86699</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;calling /root/node[last()]/@id does not work as expected. /root/node[last() - 1]/@id returns last element.&lt;/p&gt;
&lt;p&gt;xml:&lt;br /&gt;
&amp;lt;root&amp;gt;&lt;br /&gt;
&amp;lt;node @id = '0001'&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/node&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;node @id = '0005'&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/node&amp;gt;&lt;br /&gt;
&amp;lt;/root&amp;gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>text() content  comparism doesn't work</title><link href="https://sourceforge.net/p/tinyxpath/support-requests/1/" rel="alternate"/><published>2008-06-13T11:44:33Z</published><updated>2008-06-13T11:44:33Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net68b93a596aedb3a316a834eb48a2240b9493776b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;i tried to compile some query like &lt;br /&gt;
/people/person[name/text()='Dude']&lt;br /&gt;
(compare &lt;a href="http://www.zrinity.com/xml/xpath/xpath.cfm\" rel="nofollow"&gt;http://www.zrinity.com/xml/xpath/xpath.cfm\&lt;/a&gt;)&lt;br /&gt;
with TinyXPath::er_compute_xpath() and I got an error number 3 (execution error) instead of my result.&lt;/p&gt;
&lt;p&gt;as long as I don't use text='xyz' it works..&lt;/p&gt;
&lt;p&gt;please help and/or patch ;)&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>