<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to serve an XML file in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-serve-an-xml-file/m-p/289941#M243071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is cross-posted on stackoverflow.com here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://stackoverflow.com/questions/23220013/serving-xml-file-from-alfresco-to-wcmqs" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/23220013/serving-xml-file-from-alfresco-to-wcmqs&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Going forward, please post your question here or there, but not in both places.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Apr 2014 17:43:12 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2014-04-22T17:43:12Z</dc:date>
    <item>
      <title>How to serve an XML file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-serve-an-xml-file/m-p/289940#M243070</link>
      <description>I am currently lost in providing to serve a sitemap.xml file from alfresco.My purpose is to build an xml conform to sitemap.org schema, but all the tentavies result in having an htrml file on browser.This is what I have done so far:sitemap.xml (on alfresco share with mapping sitemap)This is instead</description>
      <pubDate>Tue, 22 Apr 2014 12:09:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-serve-an-xml-file/m-p/289940#M243070</guid>
      <dc:creator>leonardo_celati</dc:creator>
      <dc:date>2014-04-22T12:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to serve an XML file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-serve-an-xml-file/m-p/289941#M243071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is cross-posted on stackoverflow.com here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://stackoverflow.com/questions/23220013/serving-xml-file-from-alfresco-to-wcmqs" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/23220013/serving-xml-file-from-alfresco-to-wcmqs&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Going forward, please post your question here or there, but not in both places.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 17:43:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-serve-an-xml-file/m-p/289941#M243071</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2014-04-22T17:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to serve an XML file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-serve-an-xml-file/m-p/289942#M243072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oops..I didnt' know of such rule, I gave a try to SO because of little interest here about this subject. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am going to delete the stackoverflow question, hoping for an answer here.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 19:16:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-serve-an-xml-file/m-p/289942#M243072</guid>
      <dc:creator>leonardo_celati</dc:creator>
      <dc:date>2014-04-22T19:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to serve an XML file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-serve-an-xml-file/m-p/289943#M243073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The empty content, was due to the fact that from time to time, the wcmqs server need to be restarted, because at some point the direct changes in the .ftl without redeploying are not taken into account anymore !!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still remain the fact that the content is rendered as mime type text/html, even though the content-sitemap.xml.ftl is invoked and the debugger in ApplicationDataInterceptor shows the correct property about the retrieved asset cmis:contentStreamMimeType=text/xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At this point I am lost, there's something down the chain which is converting the mime type header to html.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[UPDATE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is something I am obviously missing, because by following the debugger I came to the org.springframework.extensions.surf.mvc.AbstractWebFrameworkView and found this on line 252&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;response.setContentType(MIMETYPE_HTML);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which is setting response to html. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 21:21:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-serve-an-xml-file/m-p/289943#M243073</guid>
      <dc:creator>leonardo_celati</dc:creator>
      <dc:date>2014-04-22T21:21:00Z</dc:date>
    </item>
  </channel>
</rss>

