Open GoogleCodeExporter opened 9 years ago
I cannot reproduce it with groups where I'm a member... Could you please post
the XML
document you get if you connect to that URL
(https://groups.google.com/group/Tips4Trade/feed/atom_v1_0_msgs.xml)? It seems
the
XML parser is complaining about an invalid comment, I wonder if that's not a
bug in
the SAX libraries (or the server is generating invalid XML).
Original comment by jagua...@gmail.com
on 13 May 2008 at 2:51
Original comment by jagua...@gmail.com
on 13 May 2008 at 2:51
Here is the file.
Original comment by mushtaq.a
on 14 May 2008 at 4:00
Attachments:
This is weird, this file is successfully parsed on my machine. Can you try the
following, in the Scala interpreter:
scala> val input = LinearStore.fromFile("atom_v1_0_msgs.xml")
scala> import com.google.gdata.data._
import com.google.gdata.data._
scala> val feed = new StdAtomFeed
feed: com.google.gdata.data.StdAtomFeed =
com.google.gdata.data.StdAtomFeed@4078ee
scala> feed.feedPickler.unpickle(input)
res4: com.google.xml.combinators.Picklers.PicklerResult[feed.Feed] =
Success(Authors:
Id: http://groups.google.com/group/Tips4Trade
Title: (Some(text),Tips4Trade Google Group)
Updated: 2008-05-05T18:01:34.000Z
Entries: Entry:
Authors: (Tips4 Trade,None,Some(tips4tr...@gmail.com))
Id: Some(http://groups.google.com/group/Tips4Trade/msg/9b6e7d751aaea5d8)
Title: (Some(text),Platinum ...
scala>
If that works, try to get the messages that were breaking the library in the
first
place, and save that file. I assume it is the content of some message in the
group
that is incorrectly encoded.
Original comment by jagua...@gmail.com
on 14 May 2008 at 11:02
Well, your steps worked for me also. But the actual code doesn't. So I created a
dummy account with membership of this group (will mail you username/password in
separate mail). Here is my snippet:
import com.google.gdata.Service
import com.google.gdata.data.StdAtomFeed
object GData1 extends Application {
val s = new Service("comp-test-1.0", "cp") {}
s.setUserCredentials("USER", "PASSWORD")
val atomFeed = new StdAtomFeed
val feed = "http://groups.google.com/group/Tips4Trade/feed/atom_v1_0_msgs.xml"
val f = s.query(feed, atomFeed.feedPickler)
println(f.entries.head)
}
Original comment by mushtaq.a
on 16 May 2008 at 2:48
Ok, it looks like a xerces bug:
http://issues.apache.org/jira/browse/XERCESJ-477
http://issues.apache.org/jira/browse/XERCESJ-520
I'm not sure yet if there are any workarounds, I will keep looking.
Original comment by jagua...@gmail.com
on 16 May 2008 at 8:58
Original issue reported on code.google.com by
mushtaq.a
on 11 May 2008 at 12:47