<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/nanoxml/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/nanoxml/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sun, 17 Nov 2013 13:52:04 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/nanoxml/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>XML parsing errors are not catched if occurring within PCDATA [patch]</title><link>https://sourceforge.net/p/nanoxml/bugs/24/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;XML parsing errors are not catched if occurring within PCDATA.&lt;/p&gt;
&lt;p&gt;For example this document, is invalid as the entity has no name.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="nt"&gt;&amp;lt;script&amp;gt;&lt;/span&gt;x&lt;span class="ni"&gt;&amp;amp;;&lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;When parsing this invalid document, the error silently ignored.&lt;/p&gt;
&lt;p&gt;Enclosed patch fixes this bug.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Hartmut Goebel</dc:creator><pubDate>Sun, 17 Nov 2013 13:52:04 -0000</pubDate><guid isPermaLink="false">https://sourceforge.nete8932971d3f5b8f80d11473039623d3346a9c48b</guid></item><item><title>attribute uppercased</title><link>https://sourceforge.net/p/nanoxml/bugs/23/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;attributes of an element are uppercased for no reason.&lt;br /&gt;
for example, xmlns attribute becomes XMLNS. When reading the resulting xml file in firefox, it results in parsing error.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 19 Feb 2010 22:45:51 -0000</pubDate><guid isPermaLink="false">https://sourceforge.neted12c1e7061db9c09e6a96b0c6234c100f94e968</guid></item><item><title>Improper parsing of CDATA with "]" as final character</title><link>https://sourceforge.net/p/nanoxml/bugs/22/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;If you parse an XML file with "]" as the last character before the closing ]]&amp;gt; in a CDATA section,  NanoXML doesn't seem to properly match tags thereafter.&lt;/p&gt;
&lt;p&gt;Eg &lt;/p&gt;
&lt;p&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;br /&gt;
&amp;lt;sportsData&amp;gt;&amp;lt;vers&amp;gt;2&amp;lt;/vers&amp;gt;&lt;br /&gt;
&amp;lt;runSummary&amp;gt;&amp;lt;workoutName&amp;gt;&amp;lt;![CDATA[5.00 Kilometers]]&amp;gt;&amp;lt;/workoutName&amp;gt;&lt;br /&gt;
&amp;lt;playlistList&amp;gt;&amp;lt;playlist&amp;gt;&amp;lt;playlistName&amp;gt;&amp;lt;![CDATA[My workout]]&amp;gt;&amp;lt;/playlistName&amp;gt;&lt;br /&gt;
&amp;lt;playlistName&amp;gt;&amp;lt;![CDATA[Handel: Messiah [Disc 1]]]&amp;gt;&amp;lt;/playlistName&amp;gt;&lt;br /&gt;
&amp;lt;/playlist&amp;gt;&lt;br /&gt;
&amp;lt;/playlistList&amp;gt;&lt;br /&gt;
&amp;lt;stepCounts&amp;gt;&amp;lt;walkBegin&amp;gt;101152&amp;lt;/walkBegin&amp;gt;&lt;br /&gt;
&amp;lt;walkEnd&amp;gt;102496&amp;lt;/walkEnd&amp;gt;&lt;br /&gt;
&amp;lt;runBegin&amp;gt;68826&amp;lt;/runBegin&amp;gt;&lt;br /&gt;
&amp;lt;runEnd&amp;gt;71384&amp;lt;/runEnd&amp;gt;&lt;br /&gt;
&amp;lt;/stepCounts&amp;gt;&lt;br /&gt;
&amp;lt;/runSummary&amp;gt;&lt;br /&gt;
&amp;lt;/sportsData&amp;gt;&lt;/p&gt;
&lt;p&gt;everything after the second &amp;lt;playlistName&amp;gt; tag parses incorrectly.&lt;/p&gt;
&lt;p&gt;As I understand it, the terminator for CDATA is ]]&amp;gt;, not just ]]. It appears that the parser chokes on the first ]], and then get confused by the ]&amp;gt;. It works if you fix the file by changing it it&lt;/p&gt;
&lt;p&gt;&amp;lt;playlistName&amp;gt;&amp;lt;![CDATA[Handel: Messiah [Disc 1] ]]&amp;gt;&amp;lt;/playlistName&amp;gt;&lt;/p&gt;
&lt;p&gt;(ie add a space after the clong square bracket&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sat, 25 Aug 2007 12:12:30 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net8c6da11bcf0b597082b7b2586d55214fdf88bdd0</guid></item><item><title>Nano is very slow</title><link>https://sourceforge.net/p/nanoxml/bugs/21/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Nano seems to be very slow&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 23 Feb 2004 22:39:57 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net3dc7208f5bd791fb290323995f26167e41644f3e</guid></item><item><title>sun.io.ByteToCharUTF-8 &amp;amp; JVM 1.1.8</title><link>https://sourceforge.net/p/nanoxml/bugs/20/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I'm using NanoXMl 2.2.1/Java and the following line of &lt;br /&gt;
code generates an error in an applet running under IE6 &lt;br /&gt;
(JVM 1.1.8).&lt;/p&gt;
&lt;p&gt;IXMLReader reader = new StdXMLReader(null,getCodeBase()&lt;br /&gt;
+&amp;amp;quot;scenes.xml&amp;amp;quot;);&lt;/p&gt;
&lt;p&gt;The error message is: &amp;amp;quot;Could not load class: &lt;br /&gt;
sun.io.ByteToCharUTF-8&amp;amp;quot;&lt;/p&gt;
&lt;p&gt;I believe the problem is that under 1.1.8 there is no &lt;br /&gt;
class called sun.io.ByteToCharUTF-8 and that you &lt;br /&gt;
really want to be using sun.io.ByteToCharUTF8.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jenny Schmidt</dc:creator><pubDate>Sat, 20 Apr 2002 22:17:35 -0000</pubDate><guid isPermaLink="false">https://sourceforge.neta56110ed85565afbe0ebfc490ab48905cf574f20</guid></item><item><title>handling entities in attributes</title><link>https://sourceforge.net/p/nanoxml/bugs/19/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;nanoxml 2.2 fails to handle entities (eg. &amp;amp;amp;amp; ...) in&lt;br /&gt;
attribute values.&lt;/p&gt;
&lt;p&gt;the problem arises for example when handling the&lt;br /&gt;
following wap-page:&lt;/p&gt;
&lt;p&gt;&amp;amp;lt;?xml version=&amp;amp;quot;1.0&amp;amp;quot; encoding=&amp;amp;quot;ISO-8859-1&amp;amp;quot;?&amp;amp;gt;&lt;br /&gt;
&amp;amp;lt;wml&amp;amp;gt;&lt;br /&gt;
&amp;amp;lt;head&amp;amp;gt;&lt;br /&gt;
&amp;amp;lt;/head&amp;amp;gt;&lt;br /&gt;
&amp;amp;lt;card id=&amp;amp;quot;main&amp;amp;quot; title=&amp;amp;quot;title&amp;amp;quot;&amp;amp;gt;&lt;br /&gt;
&amp;amp;lt;p&amp;amp;gt;&amp;amp;lt;a href=&amp;amp;quot;help/main.wml&amp;amp;quot;&amp;amp;gt;help&amp;amp;lt;/a&amp;amp;gt;&amp;amp;lt;/p&amp;amp;gt;&lt;br /&gt;
&amp;amp;lt;p&amp;amp;gt;&amp;amp;lt;a&lt;br /&gt;
href=&amp;amp;quot;mail/main.wml?name=null&amp;amp;amp;amp;passwd=null&amp;amp;quot;&amp;amp;gt;e-mail:&lt;br /&gt;
login&amp;amp;lt;/a&amp;amp;gt;&amp;amp;lt;/p&amp;amp;gt;&lt;br /&gt;
&amp;amp;lt;p&amp;amp;gt;&amp;amp;lt;a href=&amp;amp;quot;news/main.wml&amp;amp;quot;&amp;amp;gt;news&amp;amp;lt;/a&amp;amp;gt;&amp;amp;lt;/p&amp;amp;gt;&lt;br /&gt;
&amp;amp;lt;/card&amp;amp;gt;&lt;br /&gt;
&amp;amp;lt;/wml&amp;amp;gt;&lt;/p&gt;
&lt;p&gt;the problem seems to be in method XMLUtil.scanString()&lt;br /&gt;
where in lines 232 and 233the '&amp;amp;amp;' letter starting the&lt;br /&gt;
entity is unread and then reread to String str. &lt;/p&gt;
&lt;p&gt;because the whole entity is read before to str and only&lt;br /&gt;
the beginning &amp;amp;amp; is returned, the call to read('&amp;amp;amp;',&lt;br /&gt;
reader) in  line 233 reads the rest of document (or to&lt;br /&gt;
next ';'letter) and causes exception.&lt;/p&gt;
&lt;p&gt;As a solution i commented lines 232 and 233 which seemd&lt;br /&gt;
to make the parser work properly. of course this might&lt;br /&gt;
break something else but i bet it didn't&lt;/p&gt;
&lt;p&gt;as a educated guess i would say those lines seem to be&lt;br /&gt;
a relic from some earlier version of the&lt;br /&gt;
XMLUtil.scanString() where the entities were read char&lt;br /&gt;
by char like the normal chars still are.&lt;br /&gt;
&amp;amp;lt;otso.kivekas@iki.fi&amp;amp;gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Otso Kivekäs</dc:creator><pubDate>Fri, 15 Mar 2002 17:24:31 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net745e1b9af8813deaa47d00338d5dd78fbe4ea933</guid></item><item><title>nano-lite 2.2 getIntAttribute(name,def)</title><link>https://sourceforge.net/p/nanoxml/bugs/18/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Small bug:&lt;/p&gt;
&lt;p&gt;public int getIntAttribute(String name,&lt;br /&gt;
int    defaultValue)&lt;br /&gt;
{&lt;br /&gt;
if (this.ignoreCase) {&lt;br /&gt;
name = name.toUpperCase();&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;String value = (String) this.attributes.get&lt;br /&gt;
(name);&lt;/p&gt;
&lt;p&gt;if (value == null) {&lt;br /&gt;
return defaultValue;&lt;br /&gt;
} else {&lt;br /&gt;
try {&lt;br /&gt;
// Wrong:  Should be value.&lt;br /&gt;
// return Integer.parseInt(name);&lt;br /&gt;
// Fixed:&lt;br /&gt;
return Integer.parseInt(value);&lt;br /&gt;
} catch (NumberFormatException e) {&lt;br /&gt;
throw this.invalidValue(name, value);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</description><pubDate>Wed, 13 Mar 2002 20:05:27 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netb36f1b5d4f47daca1410bb317f39b6aa06626819</guid></item><item><title>getContent() returns Null for spaces</title><link>https://sourceforge.net/p/nanoxml/bugs/17/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;If the content of an XML tag consists purely&lt;br /&gt;
of spaces, then getContent() returns NULL.&lt;/p&gt;
&lt;p&gt;Examples:&lt;/p&gt;
&lt;p&gt;&amp;amp;lt;field name=&amp;amp;quot;ABLAD&amp;amp;quot; type=&amp;amp;quot;SOPAQUE&amp;amp;quot;&amp;amp;gt; &amp;amp;lt;/field&amp;amp;gt;&lt;br /&gt;
&amp;amp;lt;field name=&amp;amp;quot;ABLAD&amp;amp;quot; type=&amp;amp;quot;SOPAQUE&amp;amp;quot;&amp;amp;gt;  &amp;amp;lt;/field&amp;amp;gt;&lt;br /&gt;
&amp;amp;lt;field name=&amp;amp;quot;ABLAD&amp;amp;quot; type=&amp;amp;quot;SOPAQUE&amp;amp;quot;&amp;amp;gt;   &amp;amp;lt;/field&amp;amp;gt;&lt;br /&gt;
&amp;amp;lt;field name=&amp;amp;quot;ABLAD&amp;amp;quot; type=&amp;amp;quot;SOPAQUE&amp;amp;quot;&amp;amp;gt;    &amp;amp;lt;/field&amp;amp;gt;&lt;/p&gt;
&lt;p&gt;getContent() returns NULL for all of the examples&lt;br /&gt;
above&lt;/p&gt;
&lt;p&gt;&amp;amp;lt;field name=&amp;amp;quot;ABLAD&amp;amp;quot; type=&amp;amp;quot;SOPAQUE&amp;amp;quot;&amp;amp;gt; test &amp;amp;lt;/field&amp;amp;gt;&lt;/p&gt;
&lt;p&gt;getContent() returns &amp;amp;quot; test &amp;amp;quot; (as expected)&lt;/p&gt;
&lt;p&gt;The version of NanoXML is 2.2&lt;/p&gt;
&lt;p&gt;I'm not sure if this is supposed to be a feature, or&lt;br /&gt;
if it is a bug.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 20 Feb 2002 00:41:51 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netc38ce932fe650439edac043cb46247193ed33650</guid></item><item><title>Error in  XMLElement.getIntAttribute</title><link>https://sourceforge.net/p/nanoxml/bugs/16/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;XMLElement.getIntAttribute parses the name instead of&lt;br /&gt;
the value and will trigger a stacktrace.&lt;/p&gt;
&lt;p&gt;String value = (String) this.attributes.get(name);&lt;/p&gt;
&lt;p&gt;if (value == null)&lt;br /&gt;
{&lt;br /&gt;
return defaultValue;&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
try&lt;br /&gt;
{&lt;br /&gt;
// Bug here&lt;br /&gt;
return Integer.parseInt(name);&lt;br /&gt;
}&lt;br /&gt;
catch (NumberFormatException e)&lt;br /&gt;
{&lt;br /&gt;
throw this.invalidValue(name, value);&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Obviously this should be:&lt;/p&gt;
&lt;p&gt;String value = (String) this.attributes.get(name);&lt;/p&gt;
&lt;p&gt;if (value == null)&lt;br /&gt;
{&lt;br /&gt;
return defaultValue;&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
try&lt;br /&gt;
{&lt;br /&gt;
return Integer.parseInt(value);&lt;br /&gt;
}&lt;br /&gt;
catch (NumberFormatException e)&lt;br /&gt;
{&lt;br /&gt;
throw this.invalidValue(name, value);&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 04 Feb 2002 13:58:52 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net5b9d09505924918fb94abed187262b3f16de2869</guid></item><item><title>Error parsing XML comment</title><link>https://sourceforge.net/p/nanoxml/bugs/15/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I use NanoXML-Lite 2.2.&lt;/p&gt;
&lt;p&gt;XML file:&lt;/p&gt;
&lt;p&gt;&amp;amp;lt;test&amp;amp;gt;&lt;br /&gt;
&amp;amp;lt;!-- comment line 1&lt;br /&gt;
-- comment line 2&lt;br /&gt;
--&amp;amp;gt;&lt;br /&gt;
&amp;amp;lt;/test&amp;amp;gt;&lt;/p&gt;
&lt;p&gt;Java program:&lt;/p&gt;
&lt;p&gt;import nanoxml.*;&lt;br /&gt;
import java.util.*;&lt;br /&gt;
import java.io.*;&lt;/p&gt;
&lt;p&gt;public class Test4 {&lt;br /&gt;
public static void main(String[] args) throws &lt;br /&gt;
Exception {&lt;br /&gt;
Reader in = new BufferedReader(new FileReader&lt;br /&gt;
(&amp;amp;quot;test.xml&amp;amp;quot;));&lt;br /&gt;
XMLElement element = new XMLElement();&lt;br /&gt;
element.parseFromReader(in);&lt;br /&gt;
in.close();&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Gets the error:&lt;br /&gt;
nanoxml.XMLParseException: XML Parse Exception during &lt;br /&gt;
parsing of a test element at line 3: Expected: &amp;amp;gt;&lt;br /&gt;
at nanoxml.XMLElement.expectedInput(Unknown Source)&lt;br /&gt;
at nanoxml.XMLElement.skipComment(Unknown Source)&lt;br /&gt;
at nanoxml.XMLElement.skipSpecialTag(Unknown &lt;br /&gt;
Source)&lt;br /&gt;
at nanoxml.XMLElement.checkCDATA(Unknown Source)&lt;br /&gt;
at nanoxml.XMLElement.scanElement(Unknown Source)&lt;br /&gt;
at nanoxml.XMLElement.parseFromReader(Unknown &lt;br /&gt;
Source)&lt;br /&gt;
at nanoxml.XMLElement.parseFromReader(Unknown &lt;br /&gt;
Source)&lt;br /&gt;
at Test4.main(Test4.java:10)&lt;br /&gt;
Exception in thread &amp;amp;quot;main&amp;amp;quot; &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 22 Jan 2002 09:44:42 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netb876eca3c786288cfcb4fdb0758fadc68316c745</guid></item></channel></rss>