abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James M Snell <jasn...@gmail.com>
Subject Re: Feeds and Internet Explorer related issues...
Date Thu, 15 Nov 2007 17:48:22 GMT
FYI... as I suspected, this is a bug in Axiom.  I've filed a jira ticket.


Until the issue is fixed, one way to get around the problem is to set
the xml:lang attribute manually rather than using the setLanguage
method.  The downside of this is that the feed.getLanguage() method will
not work on the feed but if all you're doing is creating a feed for
serialization, that shouldn't be a problem.

    Feed feed = abdera.newFeed();
    feed.setAttributeValue("xml:lang", "en-US");

- James

Kiran Subbaraman wrote:
> I created a feed using Abdera:
> 		Factory factory = Abdera.getNewFactory();
> 		Feed feed = factory.newFeed();
> 		feed.setLanguage("en-US");
> 		feed.setBaseUri("http://www.examplecom/");
>                 .....
> When I deploy this WAR file, and view the generated feed from within
> Firefox, I get to see the feed xml displayed in the Firefox. 
> With Internet Explorer, I get the error that this xml cannot be displayed.
> Specifically, I see this in IE7:
> The namespace prefix is not allowed to start with the reserved string "xml".
>  Line: 1 Character: 104
> <?xml version="1.0" encoding="UTF-8"?><feed xml:lang="en-US"
> xml:base="http://www.example.com/"
> xmlns:xml="http://www.w3.org/XML/1998/namespace" .......
> Whereas, when I comment out the lines: 
> 		/* feed.setLanguage("en-US");
> 		feed.setBaseUri("http://www.examplecom/"); */
> Both IE and Firefox display the generated feed correctly. 
> What's going on? Am I missing something in Abdera?
> Thanks,
> Kiran.

View raw message