<?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/simple/support-requests/</link><description>Recent changes to support-requests</description><atom:link href="https://sourceforge.net/p/simple/support-requests/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 12 Apr 2018 19:45:45 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/simple/support-requests/feed.rss" rel="self" type="application/rss+xml"/><item><title>Remove class attribute and rename Element</title><link>https://sourceforge.net/p/simple/support-requests/8/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I have a list of objects that derive from a base class (Query) and when the list is serialized out each object has the base class name and an attribute of the derived class name:&lt;br/&gt;
Example&lt;br/&gt;
&amp;lt;Queries&amp;gt;&lt;br/&gt;
&amp;lt;Query class=".io.snmpOutObject.GetBulkQuery"&amp;gt;&amp;lt;/Query&amp;gt;&lt;br/&gt;
&amp;lt;Query class="io.snmpOutObject.GetBulkQuery""&amp;gt;&amp;lt;/Query&amp;gt;&lt;br/&gt;
&amp;lt;/Queries&amp;gt;&lt;/p&gt;
&lt;p&gt;Is there a way to get the element name to be just the derived classes name?&lt;br/&gt;
&amp;lt;Queries&amp;gt;&lt;br/&gt;
&amp;lt; GetBulkQuery&amp;gt;&lt;br/&gt;
&amp;lt; GetQuery"&amp;gt;&lt;br/&gt;
&amp;lt;/Queries&amp;gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Forrest Teel</dc:creator><pubDate>Thu, 12 Apr 2018 19:45:45 -0000</pubDate><guid>https://sourceforge.netf5d2ba1f3f26575e75ae904863d47fa2b5e5cb29</guid></item><item><title>Using same id attribute for different element types</title><link>https://sourceforge.net/p/simple/support-requests/7/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I am using SimpleXML for parsing XML to Java objects, but I am not able to parse this file :&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="nt"&gt;&amp;lt;pets&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;cats&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;cat&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;0&amp;quot;&lt;/span&gt; &lt;span class="na"&gt;talk=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;miaou&amp;quot;&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;cat&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;1&amp;quot;&lt;/span&gt; &lt;span class="na"&gt;talk=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;MIWAOUHAUOHou&amp;quot;&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/cats&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;dogs&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;dog&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/dogs&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;mine&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;cat&lt;/span&gt; &lt;span class="na"&gt;ref=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/mine&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/pets&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Using this Java class :&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="nb"&gt;Default&lt;/span&gt;
&lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="nb"&gt;Root&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;pets&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="nf"&gt;class&lt;/span&gt; &lt;span class="nx"&gt;SimpleIds&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="nx"&gt;ElementList&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;required&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="nf"&gt;ArrayList&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Cat&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;cats&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="nx"&gt;ElementList&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;required&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="nf"&gt;ArrayList&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Dog&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;dogs&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="nb"&gt;Root&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;cat&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="nf"&gt;static&lt;/span&gt; &lt;span class="nb"&gt;class&lt;/span&gt; &lt;span class="nx"&gt;Cat&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="nx"&gt;Attribute&lt;/span&gt;
        &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="nf"&gt;String&lt;/span&gt; &lt;span class="nx"&gt;talk&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="nf"&gt;void&lt;/span&gt; &lt;span class="nx"&gt;talk&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nx"&gt;System.out.println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;talk&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="nb"&gt;Root&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;dog&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="nf"&gt;static&lt;/span&gt; &lt;span class="nb"&gt;class&lt;/span&gt; &lt;span class="nx"&gt;Dog&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;

    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="nb"&gt;Element&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="nf"&gt;Mine&lt;/span&gt; &lt;span class="nx"&gt;mine&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="nb"&gt;Root&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;mine&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="nf"&gt;static&lt;/span&gt; &lt;span class="nb"&gt;class&lt;/span&gt; &lt;span class="nx"&gt;Mine&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="nb"&gt;Element&lt;/span&gt;
        &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="nf"&gt;Cat&lt;/span&gt; &lt;span class="nx"&gt;cat&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;And this Serializer :&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;Strategy&lt;/span&gt; &lt;span class="n"&gt;strategy&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;CycleStrategy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;id&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;quot;ref&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="n"&gt;Serializer&lt;/span&gt; &lt;span class="n"&gt;serializer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;Persister&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;strategy&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="n"&gt;SimpleIds&lt;/span&gt; &lt;span class="n"&gt;xml&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;serializer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;read&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;SimpleIds&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;class&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;File&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;simpleIds.xml&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;span class="n"&gt;xml&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;mine&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cat&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;talk&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;It throws me :&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;org&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;simpleframework&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;xml&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;strategy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;CycleException&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Element&lt;/span&gt; &lt;span class="sc"&gt;'0'&lt;/span&gt; &lt;span class="n"&gt;already&lt;/span&gt; &lt;span class="n"&gt;exists&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Is it impossible to use this kind of xml files with SimpleXML ? Or is it just a bad xml format ?&lt;/p&gt;
&lt;p&gt;PS : If I change cat id="0" to cat id="2" it works like a charm...&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bludwarf</dc:creator><pubDate>Wed, 25 Jun 2014 13:34:53 -0000</pubDate><guid>https://sourceforge.net6eeab0af7085921021153ffef03555f79975a885</guid></item><item><title>#6 Keep newline (\n) in attribute on serialization</title><link>https://sourceforge.net/p/simple/support-requests/6/?limit=25#c8bd</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Correction:&lt;br /&gt;
The \n character is still there but it should be &amp;#13; instead. How can i achieve this?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">McLoo</dc:creator><pubDate>Wed, 16 Apr 2014 19:34:38 -0000</pubDate><guid>https://sourceforge.net85bd75ea51abd5428f2747a27a942d3df9b9d324</guid></item><item><title>Keep newline (\n) in attribute on serialization</title><link>https://sourceforge.net/p/simple/support-requests/6/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Niall,&lt;/p&gt;
&lt;p&gt;is there a way to preserve the \n character on serialization?&lt;br /&gt;
Didn't find a way to do this.&lt;/p&gt;
&lt;p&gt;If the string in java is definded like this:&lt;br /&gt;
myAttribute = "Contains&lt;strong&gt;\n&lt;/strong&gt;newline char"&lt;/p&gt;
&lt;p&gt;The XML attribute looks like myAttribute = "Contains newline char"&lt;/p&gt;
&lt;p&gt;Expected was:&lt;br /&gt;
myAttribute = "Contains&lt;br /&gt;
newline char"&lt;/p&gt;
&lt;p&gt;Regards&lt;br /&gt;
McLoo&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">McLoo</dc:creator><pubDate>Wed, 16 Apr 2014 12:31:45 -0000</pubDate><guid>https://sourceforge.netcb540e876c056921f4c68ab5c2578eacd1966f7f</guid></item><item><title>Blackberry support</title><link>https://sourceforge.net/p/simple/support-requests/5/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The library works for Android but doesnt work for Blackberry, Gve some contant pool error&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 28 Feb 2011 08:13:59 -0000</pubDate><guid>https://sourceforge.net49693fba2d2b783d9cfac2ef6646e60d9af1492c</guid></item><item><title>Blackberry support</title><link>https://sourceforge.net/p/simple/support-requests/4/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The library works for Android but doesnt work for Blackberry, Gve some contant pool error&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 28 Feb 2011 07:09:36 -0000</pubDate><guid>https://sourceforge.net2a60feaa30998def618e438802b6c4a4ccfd3d26</guid></item><item><title>Serialize ArrayList coming from a DAO</title><link>https://sourceforge.net/p/simple/support-requests/3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;How do you serialize/unserialize a list of objects where the top level object is an ArrayList. My example would be calling a Customer DAO and it returning a list of Customers. &lt;/p&gt;
&lt;p&gt;I would like to be able to serialize the return list without putting that list in a wrapper class. Here is an example of the output I'm looking for.&lt;br /&gt;
&amp;lt;customers&amp;gt; &lt;br /&gt;
&amp;lt;customer id="1"&amp;gt; &amp;lt;customerId&amp;gt; 132 &amp;lt;/customerId&amp;gt; ... &amp;lt;/customer&amp;gt;&lt;br /&gt;
&amp;lt;customer id="2"&amp;gt; &amp;lt;customerId&amp;gt; 123 &amp;lt;/customerId&amp;gt; ... &amp;lt;/customer&amp;gt;&lt;br /&gt;
&amp;lt;customer id="3"&amp;gt; &amp;lt;customerId&amp;gt; 321 &amp;lt;/customerId&amp;gt; ... &amp;lt;/customer&amp;gt;&lt;br /&gt;
&amp;lt;/customers&amp;gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">kbjones</dc:creator><pubDate>Wed, 06 Jan 2010 22:29:44 -0000</pubDate><guid>https://sourceforge.net9c0b6707888c1ccaabfc92b1998f65ff135a9227</guid></item><item><title>ID generation violates W3C standard</title><link>https://sourceforge.net/p/simple/support-requests/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Using the cycle strategy the generated ids violate the W3C standard. Ids have to start with a letter | _ | : and can be followed by any sign. Is there any reason why the ids do not match this regular expression given by W3C?&lt;br /&gt;
In order to transform the generated xml the id and ref element are needed to build the dom. However matching the xml against the DTD will fail since the ids are invalid.&lt;br /&gt;
Is it possiable to have this changed? We already had a look at the source and will gladly have it changed by ourself and if you want we can commit the changes.&lt;/p&gt;
&lt;p&gt;Best Regards&lt;br /&gt;
Christian Rensmann&lt;/p&gt;
&lt;p&gt;Contact:&lt;br /&gt;
rensmannchristian@johndeere.com&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 04 Nov 2008 11:25:13 -0000</pubDate><guid>https://sourceforge.net322c392fbd78763201c87ef0ebfd3e240f4d908c</guid></item><item><title>Wrong parameters values</title><link>https://sourceforge.net/p/simple/support-requests/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I'm trying to read urlencoded parameters from a Request object using the getParameter() method.&lt;/p&gt;
&lt;p&gt;But the value returned doesn't correspond to the expected one.&lt;/p&gt;
&lt;p&gt;It might be due to a bad encoding of the String, since the trace of the urlencoded parameter and value given by Ethereal is:&lt;/p&gt;
&lt;p&gt;info_hash=%B2%E3%FA%0F%DEd%EE%2F%26%B5%13%F2%FE%9E!t%EA%B7%AC%A1&lt;/p&gt;
&lt;p&gt;but the value I get using getParameter("info_hash") is&lt;/p&gt;
&lt;p&gt;%B2%E3%FA%0F%DEd%EE%2F%26%B5%13%F2%FE%9E!t%3F%A1&lt;/p&gt;
&lt;p&gt;Maybe it is because the parameters are stored as String.&lt;br /&gt;
In this case, what could be done?&lt;/p&gt;
&lt;p&gt;Thank you...&lt;/p&gt;
&lt;p&gt;Bat&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bat</dc:creator><pubDate>Mon, 29 Jan 2007 12:15:28 -0000</pubDate><guid>https://sourceforge.net6d84f00f887f044b732d3deba10edc2c25f34b42</guid></item></channel></rss>