abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiran Subbaraman <ki...@yahoo.com>
Subject Re: Feeds and Internet Explorer related issues...
Date Fri, 16 Nov 2007 11:46:29 GMT

James,
This helps. Thank you.
Kiran


James M Snell wrote:
> 
> FYI... as I suspected, this is a bug in Axiom.  I've filed a jira ticket.
> 
>   https://issues.apache.org/jira/browse/WSCOMMONS-281
> 
> 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.setLanguage("en-US");
>     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 this message in context: http://www.nabble.com/Feeds-and-Internet-Explorer-related-issues...-tf4807166.html#a13791717
Sent from the abdera-user mailing list archive at Nabble.com.


Mime
View raw message