<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to support-requests</title><link>https://sourceforge.net/p/tinyxpath/support-requests/</link><description>Recent changes to support-requests</description><atom:link href="https://sourceforge.net/p/tinyxpath/support-requests/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 15 Aug 2017 19:33:25 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/tinyxpath/support-requests/feed.rss" rel="self" type="application/rss+xml"/><item><title>Fix for locale-dependent floating point parsing</title><link>https://sourceforge.net/p/tinyxpath/support-requests/8/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Harri Porten</dc:creator><pubDate>Tue, 15 Aug 2017 19:33:25 -0000</pubDate><guid>https://sourceforge.netb24c2057e1ccc259f2619461835ec9de573edef7</guid></item><item><title>Bug in test.xml</title><link>https://sourceforge.net/p/tinyxpath/support-requests/7/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexandre Moine</dc:creator><pubDate>Thu, 30 Jul 2015 20:00:13 -0000</pubDate><guid>https://sourceforge.net9d7d77551c0b2a7c26792c2de7bb03fca9c07793</guid></item><item><title>Bug in lex parser</title><link>https://sourceforge.net/p/tinyxpath/support-requests/6/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 27 Mar 2013 20:59:24 -0000</pubDate><guid>https://sourceforge.net7c2cd5e10ee1810a30fc12acdc1074c682257f5b</guid></item><item><title>Assignment operator should be return by reference</title><link>https://sourceforge.net/p/tinyxpath/support-requests/5/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gaurav</dc:creator><pubDate>Wed, 19 Dec 2012 05:59:11 -0000</pubDate><guid>https://sourceforge.netbba09424e85547854ce200d892dcde8ec63462ea</guid></item><item><title>Memory Leak in TinyXPath</title><link>https://sourceforge.net/p/tinyxpath/support-requests/4/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Benjamin Rood</dc:creator><pubDate>Mon, 04 Jun 2012 18:40:54 -0000</pubDate><guid>https://sourceforge.net9504cc22ca09729794d98cf8971864a289bb5499</guid></item><item><title>Win64 and TinyXml 2.6.2</title><link>https://sourceforge.net/p/tinyxpath/support-requests/3/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Malcolm Nixon</dc:creator><pubDate>Fri, 25 Nov 2011 06:34:42 -0000</pubDate><guid>https://sourceforge.netcc2474e7a490f70b3305a64ebda5a725eebff6eb</guid></item><item><title>last() -1 returns last element</title><link>https://sourceforge.net/p/tinyxpath/support-requests/2/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sulc</dc:creator><pubDate>Fri, 05 Aug 2011 07:57:49 -0000</pubDate><guid>https://sourceforge.net88e42c54c8fa4d6ee46a3a6a7fac219242a86699</guid></item><item><title>text() content  comparism doesn't work</title><link>https://sourceforge.net/p/tinyxpath/support-requests/1/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 13 Jun 2008 11:44:33 -0000</pubDate><guid>https://sourceforge.net68b93a596aedb3a316a834eb48a2240b9493776b</guid></item></channel></rss>