RSS error: " XML declaration allowed only at the start of the document"
Hi guys,
I'm getting a few lines of whitespace before the xml declaration. If I save the source, remove the whitespace and reload the edited file, it loads perfectly.
There is no whitespace in the masterpages though:
<%@MasterLanguage="C#"MasterPageFile="~/masterpages/uBlogsyBase.master"AutoEventWireup="true"%><%--NOTE: this file must be kept in this format because the xml declaration must be in the first line.--%><asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolderDefault"runat="server"><scripttype="text/C#"runat="server">protectedoverridevoid OnPreRender(EventArgs e)
{
Response.Clear();
Response.ContentType = "text/xml";
Response.ContentEncoding = System.Text.Encoding.UTF8;
}
</script><?xmlversion="1.0"encoding="UTF-8"?><umbraco:macroID="Macro1"runat="server"Alias="uBlogsyRSS"/></asp:Content>
any thoughts on how to remove the resultant whitespace?
RSS error: " XML declaration allowed only at the start of the document"
Hi guys,
I'm getting a few lines of whitespace before the xml declaration. If I save the source, remove the whitespace and reload the edited file, it loads perfectly.
There is no whitespace in the masterpages though:
any thoughts on how to remove the resultant whitespace?
I'm using Umbraco 4.7.1 and uBlogsy 1.3.6.1
Hi Adam
Have you tried to make the whole template one line only? That should work although it's ugly.
/Jan
Hi Jan,
I haven't... I'll give that a go
Thanks!
Nice one. Thanks Jan.
I removed all whitespace from uBlogsyBase.master and uBlogsyRSS.master et voila!
It's not pretty, but it works. I guess it could be Visual Studio's text fomatting or something...
is working on a reply...