simple-support Mailing List for Simple (Page 20)
Brought to you by:
niallg
You can subscribe to this list here.
| 2007 |
Jan
|
Feb
(2) |
Mar
(2) |
Apr
(13) |
May
(13) |
Jun
(27) |
Jul
(4) |
Aug
(14) |
Sep
(7) |
Oct
|
Nov
(6) |
Dec
(24) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2008 |
Jan
|
Feb
(21) |
Mar
(10) |
Apr
(15) |
May
(24) |
Jun
(24) |
Jul
(30) |
Aug
(5) |
Sep
(19) |
Oct
(27) |
Nov
(16) |
Dec
(24) |
| 2009 |
Jan
(34) |
Feb
(24) |
Mar
(35) |
Apr
(26) |
May
(8) |
Jun
(17) |
Jul
(28) |
Aug
(31) |
Sep
(36) |
Oct
(35) |
Nov
(20) |
Dec
(16) |
| 2010 |
Jan
(40) |
Feb
(21) |
Mar
(47) |
Apr
(45) |
May
(34) |
Jun
(68) |
Jul
(46) |
Aug
(39) |
Sep
(47) |
Oct
(20) |
Nov
(42) |
Dec
(13) |
| 2011 |
Jan
(41) |
Feb
(16) |
Mar
(32) |
Apr
(44) |
May
(28) |
Jun
(35) |
Jul
(37) |
Aug
(33) |
Sep
(60) |
Oct
(20) |
Nov
(35) |
Dec
(23) |
| 2012 |
Jan
(34) |
Feb
(23) |
Mar
(34) |
Apr
(21) |
May
(48) |
Jun
(24) |
Jul
(31) |
Aug
(39) |
Sep
(25) |
Oct
(10) |
Nov
(27) |
Dec
(28) |
| 2013 |
Jan
(32) |
Feb
(24) |
Mar
(24) |
Apr
(9) |
May
(4) |
Jun
(6) |
Jul
(2) |
Aug
(5) |
Sep
|
Oct
(5) |
Nov
(1) |
Dec
(12) |
| 2014 |
Jan
(14) |
Feb
(16) |
Mar
(5) |
Apr
(3) |
May
(2) |
Jun
(8) |
Jul
(2) |
Aug
|
Sep
(6) |
Oct
|
Nov
(6) |
Dec
|
| 2015 |
Jan
(3) |
Feb
(15) |
Mar
(7) |
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
(1) |
| 2016 |
Jan
|
Feb
(6) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2019 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: -=}\\*/{=- <rui...@gm...> - 2012-03-16 01:56:52
|
hi,
I'm writing a converter that uses a different persister to write the child
nodes.
something like: CAMEL_CASE_PERSISTER.write(obj, on)
this will write an element for the obj, using as tag name the class name.
is it possible to customize that name?
if not, or is far more complicated, could you add
a method like:
CAMEL_CASE_PERSISTER.write(obj, on, "tagName") ?
... or like:
CAMEL_CASE_PERSISTER.write(obj, on.getChild("tagName"), boolnLineTrue) ?
notice that we can read the object directly from an element, disregarding
the tag name, and providing the class using:
CAMEL_CASE_PERSISTER.read(objC, in)
i'm using that feature for reading and expected to be able to do also for
writing.
when reading i can also read extra attributes, but not write them...
since write(obj, on) does not return the node for edition, neither allow
pre-edition.
[thank you] rui
|
|
From: Niall G. <gal...@ya...> - 2012-03-16 01:48:17
|
Hi,
Yes, I guess there really should be a count of the attributes in the NodeMap.
Thanks,Niall
--- On Thu, 15/3/12, -=}\*/{=- <rui...@gm...> wrote:
From: -=}\*/{=- <rui...@gm...>
Subject: Re: [Simple-support] cannot know the number of attributes through InputNode?
To: sim...@li...
Received: Thursday, 15 March, 2012, 6:31 PM
rehi,
since no one answers...
my current workaround...
private boolean hasAttributes(InputNode in) { return in.getAttributes().iterator().hasNext();
}
[cheers] rui
On 20 February 2012 00:05, -=}\*/{=- <rui...@gm...> wrote:
hi,
i'm implementing a Converter and in the "read(InputNode in)" implementation i would like to test "in" for the presence of attributes.
the NodeMap returned does not have a "int size()" or "boolean isEmpty()"... i can go and test the iterator but not much sense...
what am i missing?
thank you, rui
-----Inline Attachment Follows-----
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
-----Inline Attachment Follows-----
_______________________________________________
Simple-support mailing list
Sim...@li...
https://lists.sourceforge.net/lists/listinfo/simple-support
|
|
From: -=}\\*/{=- <rui...@gm...> - 2012-03-16 01:32:04
|
rehi,
since no one answers...
my current workaround...
private boolean hasAttributes(InputNode in) {
return in.getAttributes().iterator().hasNext();
}
[cheers] rui
On 20 February 2012 00:05, -=}\*/{=- <rui...@gm...> wrote:
> hi,
>
> i'm implementing a Converter and in the "read(InputNode in)"
> implementation i would like to test "in" for the presence of attributes.
>
> the NodeMap returned does not have a "int size()" or "boolean
> isEmpty()"... i can go and test the iterator but not much sense...
> what am i missing?
>
> thank you,
> rui
>
|
|
From: Niall G. <gal...@ya...> - 2012-03-15 09:07:51
|
Hi,
Create an Enum Transform, for example take a look at the test cases, you should see.
class EnumTransform implements Transform { // etc..}
A Transform is resolved using a Matcher. Search through the mail archives also, there was a similar question asked some time ago.
Thanks,Niall
--- On Thu, 15/3/12, Siao-Jie,Tsai <dre...@gm...> wrote:
From: Siao-Jie,Tsai <dre...@gm...>
Subject: [Simple-support] Mapping of enum value
To: sim...@li...
Received: Thursday, 15 March, 2012, 1:56 AM
Dear All:
Dear all:
I want to map a XML element's value to a enum, but the value of the enum in XML schema is all defined in lower case: like "atomic", "collection".
So I wrote something like this, and it works:
@Element(name="value") @Path("structure") public Structure structure;
public enum Structure { atomic, collection, linear }
<structure> <source>LOMv1.0</source> <value>atomic</value> </structure>
But can I have something like this? and write some mapping code to map "atomic" to "ATOMIC" ?
@Element(name="value") @Path("structure") public Structure structure;
public enum Structure { ATOMIC, COLLECTION, LINEAR }
<structure> <source>LOMv1.0</source> <value>atomic</value> </structure>
-----Inline Attachment Follows-----
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
-----Inline Attachment Follows-----
_______________________________________________
Simple-support mailing list
Sim...@li...
https://lists.sourceforge.net/lists/listinfo/simple-support
|
|
From: Siao-Jie,Tsai <dre...@gm...> - 2012-03-15 08:56:34
|
Dear All:
Dear all:
I want to map a XML element's value to a enum,
but the value of the enum in XML schema is all defined in lower case: like "atomic", "collection".
So I wrote something like this, and it works:
@Element(name="value")
@Path("structure")
public Structure structure;
public enum Structure
{
atomic, collection, linear
}
<structure>
<source>LOMv1.0</source>
<value>atomic</value>
</structure>
But can I have something like this? and write some mapping code to map "atomic" to "ATOMIC" ?
@Element(name="value")
@Path("structure")
public Structure structure;
public enum Structure
{
ATOMIC, COLLECTION, LINEAR
}
<structure>
<source>LOMv1.0</source>
<value>atomic</value>
</structure> |
|
From: Gareth M. <gar...@gm...> - 2012-03-15 05:09:10
|
That was it thanks I was missing rss object!! thanks very much. On 15 March 2012 13:01, Niall Gallagher <gal...@ya...> wrote: > So where are you objects for element "rss"? Also are you parsing with > Persister.read(RssOrWhatever.class, inputStream, false) > > > --- On *Wed, 14/3/12, Gareth Murfin <gar...@gm...>* wrote: > > > From: Gareth Murfin <gar...@gm...> > Subject: Re: [Simple-support] Parsing issues (list) > To: > Cc: sim...@li... > Received: Wednesday, 14 March, 2012, 9:03 PM > > > Error Occured Unable to satisfy > @org.simpleframework.xml.ElementList(data=false, empty=true, entry=, > inline=true, name=, required=true, type=void) on field 'list' p > rivate static java.util.List > badminton.horsetrials.app.downloaded.audiovideo.xml.podcasts.channel.list > for class > badminton.horsetrials.app.downloaded.audiovideo.xml.podcasts.channel at > line 1 > > I cant make any sense of these error messages ever, it boils down to trial > and error for me > > On 15 March 2012 11:52, Niall Gallagher <gal...@ya...<http://mc/compose?to=...@ya...> > > wrote: > > What error do you get when you try to parse it? > > --- On *Wed, 14/3/12, Gareth Murfin <gar...@gm...<http://mc/compose?to=...@gm...> > >* wrote: > > > From: Gareth Murfin <gar...@gm...<http://mc/compose?to=...@gm...> > > > Subject: [Simple-support] Parsing issues (list) > To: sim...@li...<http://mc/compose?to=...@li...> > Received: Wednesday, 14 March, 2012, 8:41 PM > > > > Hi guys im trying to parse this XML: > http://ww3.badminton-horse.co.uk/podcast/podcast.xml > > But im having no luck at all, the usual failed to satisfy error. Ive been > trying for a whole day so Im ultra confused now, currently I have > > > @Element(name="channel")// > public class PodCastResults { > > @ElementList(inline=true) //(inline=true) > private static List<item> list; > } > > > > and > > @Element(name="item")//@Root > public class item { > > > @Element(required=false) > public String title; > } > > > All im trying to do is parse the <item> objects and have them in a list, > ive done this with tons of different xml but for some reason this one is > defeating me. Any ideas? "list" is what it has a problem with!... > > Cheers, > Gaz. > > > > > -----Inline Attachment Follows----- > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > > -----Inline Attachment Follows----- > > _______________________________________________ > Simple-support mailing list > Sim...@li...<http://mc/compose?to=...@li...> > https://lists.sourceforge.net/lists/listinfo/simple-support > > > > > -- > Gareth Murfin > Freelance Mobile Developer: J2ME, Blackberry, Android, WinPho 7 > www.garethmurfin.co.uk > www.radiantsilverlabs.com/gaz > > > -----Inline Attachment Follows----- > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > > -----Inline Attachment Follows----- > > _______________________________________________ > Simple-support mailing list > Sim...@li...<http://mc/compose?to=...@li...> > https://lists.sourceforge.net/lists/listinfo/simple-support > > -- Gareth Murfin Freelance Mobile Developer: J2ME, Blackberry, Android, WinPho 7 www.garethmurfin.co.uk www.radiantsilverlabs.com/gaz |
|
From: Niall G. <gal...@ya...> - 2012-03-15 05:01:44
|
So where are you objects for element "rss"? Also are you parsing with Persister.read(RssOrWhatever.class, inputStream, false) --- On Wed, 14/3/12, Gareth Murfin <gar...@gm...> wrote: From: Gareth Murfin <gar...@gm...> Subject: Re: [Simple-support] Parsing issues (list) To: Cc: sim...@li... Received: Wednesday, 14 March, 2012, 9:03 PM Error Occured Unable to satisfy @org.simpleframework.xml.ElementList(data=false, empty=true, entry=, inline=true, name=, required=true, type=void) on field 'list' private static java.util.List badminton.horsetrials.app.downloaded.audiovideo.xml.podcasts.channel.list for class badminton.horsetrials.app.downloaded.audiovideo.xml.podcasts.channel at line 1 I cant make any sense of these error messages ever, it boils down to trial and error for me On 15 March 2012 11:52, Niall Gallagher <gal...@ya...> wrote: What error do you get when you try to parse it? --- On Wed, 14/3/12, Gareth Murfin <gar...@gm...> wrote: From: Gareth Murfin <gar...@gm...> Subject: [Simple-support] Parsing issues (list) To: sim...@li... Received: Wednesday, 14 March, 2012, 8:41 PM Hi guys im trying to parse this XML:http://ww3.badminton-horse.co.uk/podcast/podcast.xml But im having no luck at all, the usual failed to satisfy error. Ive been trying for a whole day so Im ultra confused now, currently I have @Element(name="channel")//public class PodCastResults { @ElementList(inline=true) //(inline=true) private static List<item> list; } and @Element(name="item")//@Rootpublic class item { @Element(required=false) public String title; } All im trying to do is parse the <item> objects and have them in a list, ive done this with tons of different xml but for some reason this one is defeating me. Any ideas? "list" is what it has a problem with!... Cheers,Gaz. -----Inline Attachment Follows----- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -----Inline Attachment Follows----- _______________________________________________ Simple-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simple-support -- Gareth Murfin Freelance Mobile Developer: J2ME, Blackberry, Android, WinPho 7 www.garethmurfin.co.uk www.radiantsilverlabs.com/gaz -----Inline Attachment Follows----- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -----Inline Attachment Follows----- _______________________________________________ Simple-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simple-support |
|
From: Gareth M. <gar...@gm...> - 2012-03-15 04:03:44
|
Error Occured Unable to satisfy @org.simpleframework.xml.ElementList(data=false, empty=true, entry=, inline=true, name=, required=true, type=void) on field 'list' p rivate static java.util.List badminton.horsetrials.app.downloaded.audiovideo.xml.podcasts.channel.list for class badminton.horsetrials.app.downloaded.audiovideo.xml.podcasts.channel at line 1 I cant make any sense of these error messages ever, it boils down to trial and error for me On 15 March 2012 11:52, Niall Gallagher <gal...@ya...> wrote: > What error do you get when you try to parse it? > > --- On *Wed, 14/3/12, Gareth Murfin <gar...@gm...>* wrote: > > > From: Gareth Murfin <gar...@gm...> > Subject: [Simple-support] Parsing issues (list) > To: sim...@li... > Received: Wednesday, 14 March, 2012, 8:41 PM > > > > Hi guys im trying to parse this XML: > http://ww3.badminton-horse.co.uk/podcast/podcast.xml > > But im having no luck at all, the usual failed to satisfy error. Ive been > trying for a whole day so Im ultra confused now, currently I have > > > @Element(name="channel")// > public class PodCastResults { > > @ElementList(inline=true) //(inline=true) > private static List<item> list; > } > > > > and > > @Element(name="item")//@Root > public class item { > > > @Element(required=false) > public String title; > } > > > All im trying to do is parse the <item> objects and have them in a list, > ive done this with tons of different xml but for some reason this one is > defeating me. Any ideas? "list" is what it has a problem with!... > > Cheers, > Gaz. > > > > > -----Inline Attachment Follows----- > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > > -----Inline Attachment Follows----- > > _______________________________________________ > Simple-support mailing list > Sim...@li...<http://mc/compose?to=...@li...> > https://lists.sourceforge.net/lists/listinfo/simple-support > > -- Gareth Murfin Freelance Mobile Developer: J2ME, Blackberry, Android, WinPho 7 www.garethmurfin.co.uk www.radiantsilverlabs.com/gaz |
|
From: Niall G. <gal...@ya...> - 2012-03-15 03:52:26
|
What error do you get when you try to parse it? --- On Wed, 14/3/12, Gareth Murfin <gar...@gm...> wrote: From: Gareth Murfin <gar...@gm...> Subject: [Simple-support] Parsing issues (list) To: sim...@li... Received: Wednesday, 14 March, 2012, 8:41 PM Hi guys im trying to parse this XML:http://ww3.badminton-horse.co.uk/podcast/podcast.xml But im having no luck at all, the usual failed to satisfy error. Ive been trying for a whole day so Im ultra confused now, currently I have @Element(name="channel")//public class PodCastResults { @ElementList(inline=true) //(inline=true) private static List<item> list; } and @Element(name="item")//@Rootpublic class item { @Element(required=false) public String title; } All im trying to do is parse the <item> objects and have them in a list, ive done this with tons of different xml but for some reason this one is defeating me. Any ideas? "list" is what it has a problem with!... Cheers,Gaz. -----Inline Attachment Follows----- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -----Inline Attachment Follows----- _______________________________________________ Simple-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simple-support |
|
From: Gareth M. <gar...@gm...> - 2012-03-15 03:41:20
|
Hi guys im trying to parse this XML: http://ww3.badminton-horse.co.uk/podcast/podcast.xml But im having no luck at all, the usual failed to satisfy error. Ive been trying for a whole day so Im ultra confused now, currently I have @Element(name="channel")// public class PodCastResults { @ElementList(inline=true) //(inline=true) private static List<item> list; } and @Element(name="item")//@Root public class item { @Element(required=false) public String title; } All im trying to do is parse the <item> objects and have them in a list, ive done this with tons of different xml but for some reason this one is defeating me. Any ideas? "list" is what it has a problem with!... Cheers, Gaz. |
|
From: Niall G. <gal...@ya...> - 2012-03-14 22:03:43
|
Hi, I took a quick look, and it seems this error could only happen when writing the XML out, is this when it happens? Thanks,Niall --- On Wed, 14/3/12, Eddy Unruh <edd...@we...> wrote: From: Eddy Unruh <edd...@we...> Subject: Re: [Simple-support] Stackoverflow in Simple XML To: "Niall Gallagher" <gal...@ya...> Cc: sim...@li... Received: Wednesday, 14 March, 2012, 5:42 AM Hi, how do I check this property? Iam using glassfish 3.1.1... executed this line of code: XMLInputFactory.newInstance().getProperty(XMLInputFactory.IS_NAMESPACE_AWARE) which returned "true"; Here is one example-console-output of the error: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <shoppinglistItem> <id>0</id> <article> <id>16</id> <name>Schwartau Erdbeer Marmelade</name> <price>1.12</price> <description>EXTRA Konfitüre Erdbeer Gönnen Sie sich das erste Extra des Tages mit Schwartau Extra. Schwartau Für Schwartau Extra sind nur ausgesuchte Früchte gut genug.</description> <picture>http://localhost:8081/capstore/images/articles/schwartau-erdbeer.png</picture> <ean>124</ean> <substances class="java.util.ArrayList"/> <comments class="java.util.ArrayList"/> <ratings class="java.util.ArrayList"/> <stores class="java.util.ArrayList"> <store> <id>4</id> <name>Rewe</name> <picture>http://localhost:8081/capstore/images/stores/store3.jpg</picture> <address> <id>9</id> <street>Kurfürstenallee</street> <number>32</number> <plz>28211</plz> <city>Bremen</city> <gpsLatitude>53.082477</gpsLatitude> <gpsLongitude>8.84614</gpsLongitude> </address> <openinghours>Mo. - Fr. von 10.00 - 21.00 Uhr</openinghours> <email>su...@re...</email> <phone>0521/2483349</phone> <offer>http://localhost:8081/capstore/images/offers/offer.jpg</offer> </store> </stores> </article> <count>1</count></shoppinglistItem> at org.simpleframework.xml.stream.PrefixResolver.getPrefix(PrefixResolver.java:123) at org.simpleframework.xml.stream.PrefixResolver.resolvePrefix(PrefixResolver.java:183) at org.simpleframework.xml.stream.PrefixResolver.getPrefix(PrefixResolver.java:123) at org.simpleframework.xml.stream.PrefixResolver.resolvePrefix(PrefixResolver.java:183) at org.simpleframework.xml.stream.PrefixResolver.getPrefix(PrefixResolver.java:123) at org.simpleframework.xml.stream.PrefixResolver.resolvePrefix(PrefixResolver.java:183) at org.simpleframework.xml.stream.PrefixResolver.getPrefix(PrefixResolver.java:123) at org.simpleframework.xml.stream.PrefixResolver.resolvePrefix(PrefixResolver.java:183) at org.simpleframework.xml.stream.PrefixResolver.getPrefix(PrefixResolver.java:123) at org.simpleframework.xml.stream.PrefixResolver.resolvePrefix(PrefixResolver.java:183)... regardseddy ~~~ www.eduardunruh.de 2012/3/14 Niall Gallagher <gal...@ya...> Next time it happens dump out the XML it occurs with. I think this may have something to do with the weblogic stax parser. At any rate the XML is the most important part here, I think it is has a prefix without a reference. Or your StAX parser is NOT enabled for namespaces...Check out the StAX config option. javax.xml.stream.isNamespaceAware=true --- On Wed, 14/3/12, Eddy Unruh <edd...@we...> wrote: From: Eddy Unruh <edd...@we...> Subject: Re: [Simple-support] Stackoverflow in Simple XML To: "Niall Gallagher" <gal...@ya...> Cc: sim...@li... Received: Wednesday, 14 March, 2012, 4:51 AM Hi, thanks for your reply! I've posted some code here: http://pastebin.de/24221 The class, which is (de)serialized and the methods... Im using no XML parser - only the SimpleXML-tools.. or what do you mean? The strange thing is, that it does not always occur and its not always the same object... it behaves really randomly.. regardseddy 2012/3/13 Niall Gallagher <gal...@ya...> Can u provide some code to illustrate your annotated class, also what XML parser are u using? --- On Tue, 13/3/12, Eddy Unruh <edd...@we...> wrote: From: Eddy Unruh <edd...@we...> Subject: [Simple-support] Stackoverflow in Simple XML To: sim...@li... Received: Tuesday, 13 March, 2012, 3:13 AM Hi, I have currently a problem with the library which I am not able to solve on my own.. =/ The problem is also posted here: http://stackoverflow.com/questions/9676138/simple-xml-framework-weird-error I would be very happy if someone could help me an give me a hint... regardsEddy -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d -----Inline Attachment Follows----- _______________________________________________ Simple-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simple-support |
|
From: Eddy U. <edd...@we...> - 2012-03-14 12:43:02
|
Hi,
how do I check this property? Iam using glassfish 3.1.1... executed this
line of
code: XMLInputFactory.newInstance().getProperty(XMLInputFactory.IS_NAMESPACE_AWARE)
which returned "true";
Here is one example-console-output of the error:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<shoppinglistItem>
<id>0</id>
<article>
<id>16</id>
<name>Schwartau Erdbeer Marmelade</name>
<price>1.12</price>
<description>EXTRA Konfitüre Erdbeer Gönnen Sie sich das erste Extra
des Tages mit Schwartau Extra. Schwartau Für Schwartau Extra sind nur
ausgesuchte Früchte gut genug.</description>
<picture>
http://localhost:8081/capstore/images/articles/schwartau-erdbeer.png
</picture>
<ean>124</ean>
<substances class="java.util.ArrayList"/>
<comments class="java.util.ArrayList"/>
<ratings class="java.util.ArrayList"/>
<stores class="java.util.ArrayList">
<store>
<id>4</id>
<name>Rewe</name>
<picture>http://localhost:8081/capstore/images/stores/store3.jpg
</picture>
<address>
<id>9</id>
<street>Kurfürstenallee</street>
<number>32</number>
<plz>28211</plz>
<city>Bremen</city>
<gpsLatitude>53.082477</gpsLatitude>
<gpsLongitude>8.84614</gpsLongitude>
</address>
<openinghours>Mo. - Fr. von 10.00 - 21.00 Uhr</openinghours>
<email>su...@re...</email>
<phone>0521/2483349</phone>
<offer>http://localhost:8081/capstore/images/offers/offer.jpg
</offer>
</store>
</stores>
</article>
<count>1</count>
</shoppinglistItem>
at
org.simpleframework.xml.stream.PrefixResolver.getPrefix(PrefixResolver.java:123)
at
org.simpleframework.xml.stream.PrefixResolver.resolvePrefix(PrefixResolver.java:183)
at
org.simpleframework.xml.stream.PrefixResolver.getPrefix(PrefixResolver.java:123)
at
org.simpleframework.xml.stream.PrefixResolver.resolvePrefix(PrefixResolver.java:183)
at
org.simpleframework.xml.stream.PrefixResolver.getPrefix(PrefixResolver.java:123)
at
org.simpleframework.xml.stream.PrefixResolver.resolvePrefix(PrefixResolver.java:183)
at
org.simpleframework.xml.stream.PrefixResolver.getPrefix(PrefixResolver.java:123)
at
org.simpleframework.xml.stream.PrefixResolver.resolvePrefix(PrefixResolver.java:183)
at
org.simpleframework.xml.stream.PrefixResolver.getPrefix(PrefixResolver.java:123)
at
org.simpleframework.xml.stream.PrefixResolver.resolvePrefix(PrefixResolver.java:183)
...
regards
eddy
~~~
www.eduardunruh.de
2012/3/14 Niall Gallagher <gal...@ya...>
> Next time it happens dump out the XML it occurs with. I think this may
> have something to do with the weblogic stax parser. At any rate the XML is
> the most important part here, I think it is has a prefix without a
> reference. Or your StAX parser is NOT enabled for namespaces...Check out
> the StAX config option.
>
> javax.xml.stream.isNamespaceAware=true
>
>
> --- On *Wed, 14/3/12, Eddy Unruh <edd...@we...>* wrote:
>
>
> From: Eddy Unruh <edd...@we...>
> Subject: Re: [Simple-support] Stackoverflow in Simple XML
> To: "Niall Gallagher" <gal...@ya...>
> Cc: sim...@li...
> Received: Wednesday, 14 March, 2012, 4:51 AM
>
>
> Hi,
>
> thanks for your reply!
> I've posted some code here: http://pastebin.de/24221
> The class, which is (de)serialized and the methods...
>
> Im using no XML parser - only the SimpleXML-tools.. or what do you mean?
>
> The strange thing is, that it does not always occur and its not always the
> same object... it behaves really randomly..
>
>
> regards
> eddy
>
>
>
> 2012/3/13 Niall Gallagher <gal...@ya...<http://mc/compose?to=...@ya...>
> >
>
> Can u provide some code to illustrate your annotated class, also what XML
> parser are u using?
>
> --- On *Tue, 13/3/12, Eddy Unruh <edd...@we...<http://mc/compose?to=...@we...>
> >* wrote:
>
>
> From: Eddy Unruh <edd...@we...<http://mc/compose?to=...@we...>
> >
> Subject: [Simple-support] Stackoverflow in Simple XML
> To: sim...@li...<http://mc/compose?to=...@li...>
> Received: Tuesday, 13 March, 2012, 3:13 AM
>
>
> Hi,
>
> I have currently a problem with the library which I am not able to solve
> on my own.. =/
> The problem is also posted here:
> http://stackoverflow.com/questions/9676138/simple-xml-framework-weird-error
>
>
> I would be very happy if someone could help me an give me a hint...
>
>
> regards
> Eddy
>
>
> -----Inline Attachment Follows-----
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> Simple-support mailing list
> Sim...@li...<http://mc/compose?to=...@li...>
> https://lists.sourceforge.net/lists/listinfo/simple-support
>
>
>
|
|
From: Niall G. <gal...@ya...> - 2012-03-14 12:07:56
|
Next time it happens dump out the XML it occurs with. I think this may have something to do with the weblogic stax parser. At any rate the XML is the most important part here, I think it is has a prefix without a reference. Or your StAX parser is NOT enabled for namespaces...Check out the StAX config option. javax.xml.stream.isNamespaceAware=true --- On Wed, 14/3/12, Eddy Unruh <edd...@we...> wrote: From: Eddy Unruh <edd...@we...> Subject: Re: [Simple-support] Stackoverflow in Simple XML To: "Niall Gallagher" <gal...@ya...> Cc: sim...@li... Received: Wednesday, 14 March, 2012, 4:51 AM Hi, thanks for your reply!I've posted some code here: http://pastebin.de/24221 The class, which is (de)serialized and the methods... Im using no XML parser - only the SimpleXML-tools.. or what do you mean? The strange thing is, that it does not always occur and its not always the same object... it behaves really randomly.. regardseddy 2012/3/13 Niall Gallagher <gal...@ya...> Can u provide some code to illustrate your annotated class, also what XML parser are u using? --- On Tue, 13/3/12, Eddy Unruh <edd...@we...> wrote: From: Eddy Unruh <edd...@we...> Subject: [Simple-support] Stackoverflow in Simple XML To: sim...@li... Received: Tuesday, 13 March, 2012, 3:13 AM Hi, I have currently a problem with the library which I am not able to solve on my own.. =/ The problem is also posted here: http://stackoverflow.com/questions/9676138/simple-xml-framework-weird-error I would be very happy if someone could help me an give me a hint... regardsEddy -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d -----Inline Attachment Follows----- _______________________________________________ Simple-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simple-support |
|
From: Eddy U. <edd...@we...> - 2012-03-14 11:52:45
|
Hi, thanks for your reply! I've posted some code here: http://pastebin.de/24221 The class, which is (de)serialized and the methods... Im using no XML parser - only the SimpleXML-tools.. or what do you mean? The strange thing is, that it does not always occur and its not always the same object... it behaves really randomly.. regards eddy 2012/3/13 Niall Gallagher <gal...@ya...> > Can u provide some code to illustrate your annotated class, also what XML > parser are u using? > > --- On *Tue, 13/3/12, Eddy Unruh <edd...@we...>* wrote: > > > From: Eddy Unruh <edd...@we...> > Subject: [Simple-support] Stackoverflow in Simple XML > To: sim...@li... > Received: Tuesday, 13 March, 2012, 3:13 AM > > > Hi, > > I have currently a problem with the library which I am not able to solve > on my own.. =/ > The problem is also posted here: > http://stackoverflow.com/questions/9676138/simple-xml-framework-weird-error > > > I would be very happy if someone could help me an give me a hint... > > > regards > Eddy > > > -----Inline Attachment Follows----- > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > > -----Inline Attachment Follows----- > > _______________________________________________ > Simple-support mailing list > Sim...@li...<http://mc/compose?to=...@li...> > https://lists.sourceforge.net/lists/listinfo/simple-support > > |
|
From: Niall G. <gal...@ya...> - 2012-03-13 11:37:20
|
Can u provide some code to illustrate your annotated class, also what XML parser are u using? --- On Tue, 13/3/12, Eddy Unruh <edd...@we...> wrote: From: Eddy Unruh <edd...@we...> Subject: [Simple-support] Stackoverflow in Simple XML To: sim...@li... Received: Tuesday, 13 March, 2012, 3:13 AM Hi, I have currently a problem with the library which I am not able to solve on my own.. =/The problem is also posted here: http://stackoverflow.com/questions/9676138/simple-xml-framework-weird-error I would be very happy if someone could help me an give me a hint... regardsEddy -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d -----Inline Attachment Follows----- _______________________________________________ Simple-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simple-support |
|
From: Eddy U. <edd...@we...> - 2012-03-13 10:14:31
|
Hi, I have currently a problem with the library which I am not able to solve on my own.. =/ The problem is also posted here: http://stackoverflow.com/questions/9676138/simple-xml-framework-weird-error I would be very happy if someone could help me an give me a hint... regards Eddy |
|
From: Billy B. <bil...@gm...> - 2012-03-09 18:35:27
|
I recently submitted an issue about an apostrophe... I was wrong. I did the find the "po" element. This is very complicated XML and I have no Schema to work from. Call me a moron. I will learn to trust Simple Exceptions. :) Simple is a great parser. -- Wayne D. Young aka Billy Bob Bain bil...@gm... |
|
From: Billy B. <bil...@gm...> - 2012-03-09 18:15:43
|
I am using Simple with CRest on Android. Are there any known issues with apostrophes while deserializing an xml stream. I am getting this error message, but I think it is a red herring. Caused by: org.simpleframework.xml.core.ElementException: Element 'po' does not have a match in class fastball.view.AtBat. There is no element named 'po' in the xml document. This only seems to happen when there is an apostrophe in the document. For example, this inning deserializes fine. http://gd2.mlb.com/components/game/mlb/year_2011/month_10/day_24/gid_2011_10_24_slnmlb_texmlb_1/inning/inning_1.xml But inning 2 does not. The only difference I can find is the presence of an apostrophe. http://gd2.mlb.com/components/game/mlb/year_2011/month_10/day_24/gid_2011_10_24_slnmlb_texmlb_1/inning/inning_2.xml It has this apostrophe: cc="C.J. Wilson got Skip Schumaker to chase a curveball that he doesn't like to hit." mt=""/> I don't control this XML and would like to avoid having to clean it up. Is there any way around this issue? Thanks. -- Wayne D. Young aka Billy Bob Bain bil...@gm... |
|
From: Faisal S. <fai...@gm...> - 2012-03-03 12:39:21
|
Okay. Thanks for the quick response. Regards Faisal On Sat, Mar 3, 2012 at 2:18 PM, Niall Gallagher <gal...@ya...>wrote: > For now the only way would be to do it as you are doing now, or perhaps > use a Visitor, which would probably be overkill. Maybe this is something I > should take a look at for the next release, so that the @Order annotation > can include namespaces. > > --- On *Fri, 2/3/12, Faisal Siyavudeen <fai...@gm...>*wrote: > > > From: Faisal Siyavudeen <fai...@gm...> > Subject: [Simple-support] Namespace printed after attributes specified in > Order annotation > To: "simple-support" <sim...@li...> > Received: Friday, 2 March, 2012, 3:47 AM > > Hi, > > First of all, thanks for the excellent "Simple XML" library. > > I am trying to use it to serialize a class using the following annotations. > > @Root(strict = false, name = "oxml") > @Namespace(reference = "http://www.faisal.in/testschema") > @Order(attributes = {"app", "os" }) > public class OnXml { > > .... > > } > > Unfortunately, the generated namespace attribute (xmlns) is printed > after the attributes specified in the @Order annotation. How can I > ensure that the namespace is printed ahead of these attributes? > > I tried adding "xmlns" to the @Order list, but then the code expects > xmlns to be declared as a class member. > > I finally made it work by adding xmlns as a class member initialized > to the namespace string and including it inside @Order. > > Is there a better way to do this? > > Regards > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Simple-support mailing list > Sim...@li...<http://mc/compose?to=...@li...> > https://lists.sourceforge.net/lists/listinfo/simple-support > > |
|
From: Niall G. <gal...@ya...> - 2012-03-03 08:48:21
|
For now the only way would be to do it as you are doing now, or perhaps use a Visitor, which would probably be overkill. Maybe this is something I should take a look at for the next release, so that the @Order annotation can include namespaces. --- On Fri, 2/3/12, Faisal Siyavudeen <fai...@gm...> wrote: From: Faisal Siyavudeen <fai...@gm...> Subject: [Simple-support] Namespace printed after attributes specified in Order annotation To: "simple-support" <sim...@li...> Received: Friday, 2 March, 2012, 3:47 AM Hi, First of all, thanks for the excellent "Simple XML" library. I am trying to use it to serialize a class using the following annotations. @Root(strict = false, name = "oxml") @Namespace(reference = "http://www.faisal.in/testschema") @Order(attributes = {"app", "os" }) public class OnXml { .... } Unfortunately, the generated namespace attribute (xmlns) is printed after the attributes specified in the @Order annotation. How can I ensure that the namespace is printed ahead of these attributes? I tried adding "xmlns" to the @Order list, but then the code expects xmlns to be declared as a class member. I finally made it work by adding xmlns as a class member initialized to the namespace string and including it inside @Order. Is there a better way to do this? Regards ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Simple-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simple-support |
|
From: Danny S. <d.s...@gm...> - 2012-03-03 03:22:47
|
Hi,
We have XML documents that contain html content inside an element. It looks
something like this ...
<asset>
<assetId>12345</assetId>
<htmlBody><html><body>Hello World></body></html></htmlBody>
</asset>
Out target Java object looks something like this :
@Element
private String assetId;
@Element
private String htmlBody;
The only way we can get the html content from inside htmlBody is to
surround it with CDATA and use @Element(data = true).
This is all fine, until we reach the point of wanting to serialize it and
the save it to our Marklogic database. I'm trying to avoid having CDATA
around the html content because it will mean modifying quite a bit of
existing Marklogic xquery scripts.
Is there another way (an annotation perhaps) to load this html content with
less effort ? I tried the @Text annotation, but that doesn't seem to work.
Regards,
Danny
|
|
From: Faisal S. <fai...@gm...> - 2012-03-02 11:48:03
|
Hi, First of all, thanks for the excellent "Simple XML" library. I am trying to use it to serialize a class using the following annotations. @Root(strict = false, name = "oxml") @Namespace(reference = "http://www.faisal.in/testschema") @Order(attributes = {"app", "os" }) public class OnXml { .... } Unfortunately, the generated namespace attribute (xmlns) is printed after the attributes specified in the @Order annotation. How can I ensure that the namespace is printed ahead of these attributes? I tried adding "xmlns" to the @Order list, but then the code expects xmlns to be declared as a class member. I finally made it work by adding xmlns as a class member initialized to the namespace string and including it inside @Order. Is there a better way to do this? Regards |
|
From: Daniel S. <dsh...@gd...> - 2012-02-29 19:17:07
|
Perhaps a stupid question... How do I add Simple to my project? |
|
From: Gareth M. <gar...@gm...> - 2012-02-29 14:16:24
|
Hi guys, got it... didnt read docs properly, ended up with
@Root
public class first_inspection_results {
@ElementList (inline=true)
public List<first_inspection> list;
}
@Root
public class first_inspection {
@Element
public String rider_number;
@Element
public String horse_name;
@Element
public String rider_name;
@Element
public String status;
}
and works :-D
Gaz.
|
|
From: Gareth M. <gar...@gm...> - 2012-02-29 13:18:07
|
Sorry first class is in last email was missing
@Root
public class badminton_results {
but its definitely there, just a typo..
Thanks.
Gaz.
|