Sharepoint online multiline list colomn not rendering HTML out put

Hi 
I have list with multi line column with having multimedia options. my problem is i have created view and edited XSL  to format it. also i have added "escape out put =yes" for the column but no luck still column is rendering as HTML Tags witch
is not rendering HTML formats in UI
Following is my code for List view any help greatly appreciate.. 
regards
Radika
<%@ Page language="C#" MasterPageFile="~masterurl/default.master"    Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=16.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:progid="SharePoint.WebPartPage.Document"
meta:webpartpageexpansion="full"  %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities"
Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI,
Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="ApplicationPages" Namespace="Microsoft.SharePoint.ApplicationPages.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
<SharePoint:ListProperty Property="TitleOrFolder" runat="server"/> - 
<SharePoint:ListProperty Property="CurrentViewTitle" runat="server"/></asp:Content>
<asp:content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
<SharePoint:RssLink runat="server"/>
</asp:content>
<asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server">
<SharePoint:ViewIcon Width="145" Height="54" runat="server"/></asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderLeftActions" runat="server">
<SharePoint:RecentChangesMenu runat="server" id="RecentChanges"/>
<SharePoint:ModifySettingsLink runat="server"/>
</asp:Content>
<asp:Content ContentPlaceHolderId ="PlaceHolderBodyLeftBorder" runat="server">
<div height="100%" class="ms-pagemargin"><img src="/_layouts/15/images/blank.gif?rev=37" width='6' height='1' alt="" data-accessibility-nocheck="true"/></div>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
<WebPartPages:WebPartZone runat="server" FrameType="None" ID="Main" Title="loc:Main"><ZoneTemplate>
<WebPartPages:XsltListViewWebPart runat="server" ViewFlag="" ViewSelectorFetchAsync="False" InplaceSearchEnabled="True" ServerRender="False" ClientRender="False"
InitialAsyncDataFetch="False" WebId="00000000-0000-0000-0000-000000000000" IsClientRender="False" GhostedXslLink="main.xsl" ViewGuid="{D63D68ED-17D1-4CC9-BCF6-20DFED0FB269}" EnableOriginalValue="False"
DisplayName="NewsDisplay" ViewContentTypeId="0x" ListName="{17179938-EFC8-4DFE-92E9-CDE296D46919}" ListId="17179938-efc8-4dfe-92e9-cde296d46919" PageSize="-1" UseSQLDataSourcePaging="True" DataSourceID=""
ShowWithSampleData="False" AsyncRefresh="False" ManualRefresh="False" AutoRefresh="False" AutoRefreshInterval="60" Title="CT_RSSFeeds" FrameType="Default" SuppressWebPartChrome="False"
Description="" IsIncluded="True" PartOrder="2" FrameState="Normal" AllowRemove="True" AllowZoneChange="True" AllowMinimize="True" AllowConnect="True" AllowEdit="True"
AllowHide="True" IsVisible="True" TitleUrl="/sites/EFLDEV/Lists/CT_RSSFeeds" DetailLink="/sites/EFLDEV/Lists/CT_RSSFeeds" HelpLink="" HelpMode="Modeless" Dir="Default" PartImageSmall=""
MissingAssembly="Cannot import this Web Part." PartImageLarge="" IsIncludedFilter="" ExportControlledProperties="False" ConnectionID="00000000-0000-0000-0000-000000000000" ID="g_d63d68ed_17d1_4cc9_bcf6_20dfed0fb269"
ExportMode="NonSensitiveData" __MarkupType="vsattributemarkup" __WebPartId="{D63D68ED-17D1-4CC9-BCF6-20DFED0FB269}" __AllowXSLTEditing="true" __designer:CustomXsl="Fldtypes_mswhTitle.xsl;fldtypes_Ratings.xsl"
WebPart="true" Height="" Width=""><ParameterBindings>
<ParameterBinding Name="dvt_sortdir" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_sortfield" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_startposition" Location="Postback" DefaultValue=""/>
<ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/>
<ParameterBinding Name="OpenMenuKeyAccessible" Location="Resource(wss,OpenMenuKeyAccessible)" />
<ParameterBinding Name="open_menu" Location="Resource(wss,open_menu)" />
<ParameterBinding Name="select_deselect_all" Location="Resource(wss,select_deselect_all)" />
<ParameterBinding Name="idPresEnabled" Location="Resource(wss,idPresEnabled)" />
<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />
</ParameterBindings>
<Xsl>
<xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">     <xsl:output method="html" indent="no"/>     <xsl:decimal-format NaN=""/>  
  <xsl:param name="dvt_apos">&apos;</xsl:param>     <xsl:variable name="dvt_1_automode">0</xsl:variable>     <xsl:template match="/" xmlns:x="http://www.w3.org/2001/XMLSchema"
xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:SharePoint="Microsoft.SharePoint.WebControls">
        <xsl:call-template name="dvt_1"/>     </xsl:template>     
<xsl:template name="dvt_1" ddwrt:ghost="" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:ddwrt2="urn:frontpage:internal">      
  <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>      
     <link rel="stylesheet" href="/sites/EFLDEV/Utillity/ES/page.css" type="text/css" media="screen" /> <link rel="stylesheet" href="/sites/EFLDEV/Utillity/ES/slider.css" type="text/css"
media="screen" /> <script type="text/javascript" src="/sites/EFLDEV/Utillity/ES/jquery.easing.1.2.js"></script> <script src="/sites/EFLDEV/Utillity/ES/jquery.anythingslider.js" type="text/javascript"
charset="utf-8"></script> <script type="text/javascript">         function formatText(index, panel) {           return index + &quot;&quot;;        
}         $(function () {             $(&apos;.anythingSlider&apos;).anythingSlider({                 easing: &quot;easeInOutExpo&quot;,    
            autoPlay: true,                 delay: 3000,                 startStopped: false,                
animationTime: 600,                 hashTags: true,                 buildNavigation: true,             pauseOnHover: true,        
startText: &quot;Go&quot;,         stopText: &quot;Stop&quot;,     navigationFormatter: formatText             });             $(&quot;#slide-jump&quot;).click(function(){
                $(&apos;.anythingSlider&apos;).anythingSlider(6);             });         });     </script> <div class="anythingSlider">
    <div class="wrapper">         <ul>         <xsl:call-template name="dvt_1.body">             <xsl:with-param name="Rows"
select="$Rows" />             </xsl:call-template>         </ul>             </div>         </div>     </xsl:template>
    <xsl:template name="dvt_1.body">         <xsl:param name="Rows" />         <xsl:for-each select="$Rows">    
        <xsl:call-template name="dvt_1.rowview" />         </xsl:for-each>     </xsl:template>     
<xsl:template name="dvt_1.rowview" ddwrt:ghost="" xmlns:ddwrt2="urn:frontpage:internal">         <li>         <div class="textSlide">
<!-- display the item title and a link to the item --><h3><a href="/{@FileDirRef}/DispForm.aspx?ID={@ID}" title="{@ItemTitle}"><xsl:value-of select="@ItemTitle" /></a></h3> <!-- display the
body of the item  -->    <div><xsl:value-of select="@ItemDescription" disable-output-escaping="yes" /></div>     </div>     </li></xsl:template> 
</xsl:stylesheet></Xsl>
<DataFields>
</DataFields>
<XmlDefinition>
<View Name="{D63D68ED-17D1-4CC9-BCF6-20DFED0FB269}" Type="HTML" DisplayName="NewsDisplay" Url="/sites/EFLDEV/Lists/CT_RSSFeeds/NewsDisplay.aspx" Level="1" BaseViewID="1"
ContentTypeID="0x" ImageUrl="/_layouts/15/images/generic.png?rev=37" >
<Query/>
<ViewFields>
<FieldRef Name="LinkTitle"/>
<FieldRef Name="ChannelID"/>
<FieldRef Name="Tag"/>
<FieldRef Name="Created1"/>
<FieldRef Name="ItemTitle"/>
<FieldRef Name="ID"/>
<FieldRef Name="ItemDescription"/>
</ViewFields>
<RowLimit Paged="TRUE">30</RowLimit>
<Aggregations Value="Off"/>
<JSLink>clienttemplates.js</JSLink>
<XslLink Default="TRUE">main.xsl</XslLink>
<Toolbar Type="Standard"/>
</View>
</XmlDefinition>
</WebPartPages:XsltListViewWebPart>
</ZoneTemplate></WebPartPages:WebPartZone>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
<SharePoint:ListProperty CssClass="ms-listdescription" Property="Description" runat="server"/>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderCalendarNavigator" runat="server">
<SharePoint:SPCalendarNavigator id="CalendarNavigatorId" runat="server"/>
  <ApplicationPages:CalendarAggregationPanel id="AggregationPanel" runat="server"/>
</asp:Content>

Hi,
In SharePoint Online 2013, we can use jQuery to convert “&lt”  to “<” and  convert “&gt” to “>”.
The following code for your reference:
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$(".ms-rtestate-field").each(function(){
var $this = $(this).find("p");
if ($this.length>0) {
$this.each(function(){
$(this).html($(this).html().replace('&lt;', '<').replace('&gt;', '>'));
</script>
We can also use JSLink to customize the display view.
http://code.msdn.microsoft.com/office/Client-side-rendering-JS-2ed3538a
Thanks,
Dennis Guo
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Dennis Guo
TechNet Community Support

Similar Messages

  • How to grant anonymous access on sharepoint document library/list only not for web application

    Hello
    How to grant anonymous access on sharepoint document library/list only not for web application.I have claim based sharepoint site and has to be but i want to grant access on document library/list only.Is this possible?
    Thanks
    Rajesh Kumar "Changing the Face" can change nothing.But "Facing the Change" can change everything.

    As i am using following code
    SPSite site = SPContext.Current.Site;
                SPWeb web = SPContext.Current.Web;
                SPSecurity.RunWithElevatedPrivileges(delegate()
                    using (SPSite ospSite = new SPSite(site.ID))
                        using (SPWeb webs = ospSite.OpenWeb(web.ID))
                            // Enable anonymous access on web application
                            webs.AllowUnsafeUpdates = true;
                            SPUrlZone urlZone = SPUrlZone.Default;
                            SPWebApplication specifiedWebApplication = ospSite.WebApplication;
                            SPIisSettings iisSettings = specifiedWebApplication.IisSettings[urlZone];
                            //iisSettings.AuthenticationMode = AuthenticationMode.Windows;
                            iisSettings.AllowAnonymous = true;                       
                            specifiedWebApplication.Update();
                            // Get document library collection here and fetch all the document urls
                            SPDocumentLibrary docLib = (SPDocumentLibrary)web.Lists["Documents"];
                            if (docLib != null)
                                docLib.BreakRoleInheritance(true, false);
                                docLib.AllowEveryoneViewItems = true;
                                docLib.AnonymousPermMask64 = SPBasePermissions.ViewPages | SPBasePermissions.OpenItems | SPBasePermissions.ViewVersions
                                    | SPBasePermissions.Open | SPBasePermissions.UseClientIntegration | SPBasePermissions.ViewFormPages | SPBasePermissions.ViewListItems;
                                //docLib.AnonymousPermMask64 = SPBasePermissions.EmptyMask;
                                docLib.Update();
    Should working but getting access denied......i am totally stuck at this point.
    Rajesh Kumar "Changing the Face" can change nothing.But "Facing the Change" can change everything.

  • Not gettinn anay out put on IE and Mozila..??

    Hi Frndz,
    Am executing a basic WDP ABAP application which is not giving any out put on IE and Mozila, but working fine on Chrome but not all the functions, at least getting the UI eles.
    On IE itz showing the following errors,java script
    Message: Invalid argument.
    Line: 9
    Char: 13
    Code: 0
    URI: http://server.mydomain:8001/sap/public/bc/webdynpro/ssr/SAPWebFramework.js?00033
    Plz suggest me how to resolve.
    Regards
    Rajesh

    Hi,
    Refer this thread.
    [Internet Explorer script error on developing WD abap app.;
    Priya

  • BCS list data not rendering as HTML

    I have a Business Data List webpart in Sharepoint Online (2013) which pulls data from a BCS List. This data contains HTML which is not rendering as HTML but the HTML text.
    I've modified the data to HTML format the data, no joy (example: &lt; img src="/)
    I've modified the data to spit out the native html, no joy (example: <img src="/)
    I've modified the XSLT of the webpart using the Data View Properties (when editing the webpart in Sharepoint) to output the text from the list as below, which didn't work:
    <xsl:value-of select="@ArticleBody" disable-output-escaping="yes" ddwrt:nbsp-preserve="yes"/>
    and also this hasn't worked:
    <xsl:value-of select="@ArticleBody" disable-output-escaping="yes"/>
    I'm now at a loss as to how I can get the data to show with the html text being rendered as actual HTML on page

    found, the issue - there was a section further down the XSLT file that needed the disable-output-escaping adding to (below is the original section) - once updated it worked like a charm - thanks
    <xsl:template name="_LFtoBRloop">
        <xsl:param name="input" />
        <xsl:variable name="beforeText" select="substring-before($input, '&#xA;')" />
        <xsl:choose>
          <xsl:when test="string-length($beforeText) = 0 and substring($input, 1, 1) != '&#xA;'">
            <xsl:value-of select="$input" />
          </xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="$beforeText" />
            <br />
            <xsl:call-template name="_LFtoBRloop">
              <xsl:with-param name="input" select="substring($input, string-length($beforeText)+2)" />
            </xsl:call-template>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:template>

  • SharePoint Online "New List Item Trigger" deletes them... WTF?

    Started playing around with these API apps today on our system, as I think they've got great potential, and as well as not passing any data on to the following commands this also decided to delete them from our SharePoint Online site as well!
    Is it worth writing in the documentation somewhere that it will annihilate your data source as it goes through the workflow?
    Would appreciate someone getting in touch to try and resolve this.
    EDIT: Had a look for the items in SharePoint and they're not even in the site's recycle bin (but previously deleted items from this list have been). We have email alerts set up on any activity on the list (as a kind of audit logging) so I can see that the items
    were deleted by my user account.

    No I didn't. I know it will fit some scenarios, but these items need to stay in the list they're in otherwise we need to modify the rest of our system
    (at which point it becomes a bit pointless using these extra pieces, as we're modifying our deployed app so may as well make the changes in there).
    With regards to the "processed" column, I was hoping (and assuming) that it was going to work the same way that Azure Webjobs and blob
    storage worked, in that it keeps track of it's own "processed" status in table storage somewhere. This means it can be completely transparent to the source system, means no modifications need to be made to the source system and it's completely self
    contained.

  • List items not rendering on page

    I have code that I'm querying a list and I am trying to get them into an accordion. I'm able to see the items when I do an alert to validate its connecting, however, the accordion and data items are not rendering. Am I missing something?
    <script type="text/javascript" language="javascript">
    $(document).ready(GetAllItems());
    function GetAllItems() {
    $().SPServices({
    operation: "GetListItems",
    async: false,
    listName: "Discussions",
    CAMLViewFields: "<ViewFields><FieldRef Name='Title' /></ViewFields>",
    completefunc: function (xData, Status) {
    $(xData.responseXML).SPFilterNode("z:row").each(function() {
    var liHtml = "<div class='Accordion'><div class='MenuTab'>" + $(this).attr("ows_Title") + "</div></div>";
    // var liHtml = "<li>" + $(this).attr("ows_Title") + "</li>";
    $("#Discussions").html(liHtml);
    alert(liHtml);
    </script>
    <div id="Discussions"></div>

    Hi,
    you have to append each new element instead of assign it to the "Discussions" div, try somethis like that:
    $("#Discussions").append(liHtml);
    Regards.
    If a post answers your question, please click Mark As Answer on that post and
    Vote as Helpful

  • CQ page is not rendering properly. It is not rendering HTML. It is showing HTML source code as is.

    On some of the pages, I am getting this weird behavior wherein page is not rendering properly. It is showing HTML source code as is. Could you please help me out? What could be the issue? And how can we get rid of the same?

    Check your component jsp page. it is possible that it is just plan file without directives <@ or you might have miss to close tag which is creating source as text to render
    Paste your jsp code in case you need further help
    Thanks,
    Ajit

  • JavaHelp not rendering HTML when run from Fatjar

    I'm experiencing a strange problem with JavaHelp: when I run my app from Eclipse and open JavaHelp, the html help pages render just fine. If I Fatjar the app and run it from the fatjar, however, then when I open the JavaHelp, my html help pages are displayed as raw text, HTML tags and all. For some reason it's not rendering the HTML. I'm guessing that maybe the fatjar is messing up the JEditorPane's ability to detect the content-type of the help pages, but I have no idea how to fix it if that's the case.
    I'm using a plain vanilla HelpSet file, pretty much straight out of the JavaHelp User's Guide.
    Anyone have any idea what might be causing this or how I might fix it/work around it? Has anyone else seen this problem before?

    For whatever it's worth, I am seeing this problem as well. It doesn't seem to have to do with FatJar, as I'm seeing it when I simply do the following:
        HelpSet helpSet = null;
        final ClassLoader cl = this.getClass().getClassLoader();
        try {
          helpSet = new HelpSet(null, HelpSet.findHelpSet(this.getClass().getClassLoader(), "IdeHelp.hs")); // XXX bogus for now
        } catch (final Exception kaboom) {
          helpSet = null;
        if (helpSet != null) {
          final HelpBroker helpBroker = helpSet.createHelpBroker();
          final ActionListener helpItemActionListener = new CSH.DisplayHelpFromSource(helpBroker);
          final JMenuItem primaryHelpItem = new JMenuItem("Help\u2026");
          primaryHelpItem.addActionListener(helpItemActionListener);
          helpMenu.add(primaryHelpItem);
        }I suspect it's a problem with the classloader, but I haven't dug to find out what exactly.
    Best,
    Laird

  • HTML Region with source as an item not rendering HTML

    HI All,
    1) I have a hidden item P1_ITEM which will be populated after page submit. This item value will be a text with HTML tags
    2) I have created a HTML region with source as &P1_ITEM.
    However the text in HTML region is not getting rendered properly for eg;-
    If the value of P1_ITEM is
    *HI &lt;BR &gt; HOW R U &lt;BR &gt;
    &lt;BR&gt; tag appears as such and is not rendered in HTML format.
    What should I do to get the HTML rendering correct.
    Thanks & Regards,
    Vikas Krishna

    Hi
    I created the scenario you explained and found the same issue. I don't know the reason may be some other expert can explain the it.
    However as a workaround you can create a PL/SQL (anonymous block) region and in the source you can use
    htp.p( :P1_ITEM );----
    Zulqarnain
    MaxApex Hosting
    http://www.maxapex.com

  • Documents stored in SharePoint Online are slow to open if moved out of SP Online

    My organization has had several instances where an employee will receive a document from a co-worker and then store it in one of their SharePoint online sites.  The employee then moves the document to another location not on SharePoint online. 
    From that point on the document is incredibly slow to open, often taking 30 seconds or more.  In addition if a user who doesn't have access to our SharePoint online environment receives the document via email and opens it a Office 365 logon prompt is
    thrown up during the time the document is attempting to load.  It seems that once a document is stored in SharePoint online it will attempt to check in to the site it was stored in in some fashion when it is launched.  Any ideas as to if this behavior
    can be changed so documents which are removed from SharePoint online continue to open quickly?
    Thanks,
    Matt

    clear the office cache and try reinstalling office.

  • Boolean Function Ifs not giving proper out put

    Hi ,
           I am using boolean function Ifs in message mapping of one of my scenerio.
    My problem is First argument have  exist function and if first argument is true it gives value of second argument but if is false , I am passing a Constant value in else condition(3rd argument) it give no out put.Can you suggest how can i resolve it.

    Hi Mohit,
    In your case you need not to use IFs , instead make use of boolean function If , it will work fine for you.
    Regards
    Nishant Kumar Singh

  • Dtd-is-prohibited-error-when-accessing-sharepoint-2013-office365-list-but-not

    I need to update some items in a list and previously done it through a console app and using the sharepoint.client.dll but for some reason it no longer works. 
    When I call the clientContext.ExecuteQuery() it throws this error:-
    "For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method."
    I have googled this and seen others have had similar problems but changing DNS has not resolved this which did in their case.
    I can probably create a sharepoint-hosted app to do it but just takes longer for such a simple update.
    I have checked fiddler and can see it is requesting the FPUrl.xml and returning a 302 response.
    GET http://msoid.thesportsoffice.com/FPUrl.xml HTTP/1.1
    Host: msoid.thesportsoffice.com
    HTTP/1.1 302 Found
    Cache-Control: private
    Content-Type: text/html; charset=utf-8
    Location: /
    Server: Microsoft-IIS/8.5
    X-AspNetMvc-Version: 4.0
    X-AspNet-Version: 4.0.30319
    X-Powered-By: ASP.NET
    Date: Fri, 26 Sep 2014 14:43:36 GMT
    Content-Length: 118
    Any ideas why this is starting to happen?
    Karl Diggle

    Hi D00gle,
    DTD means document type declaration. Using DTD entity expansion, it is easy to make a very small XML data stream fully expand into a very large document.
    It will run parser without source limit, so the system will tell you the data has a security issue.
    To fix the issue, you can set like below in your code:
    XmlReaderSettings settings = new XmlReaderSettings();
    settings.ProhibitDtd = false;
    Here is a thread about this issue for your reference:
    http://stackoverflow.com/questions/13854068/dtd-prohibited-in-xml-document-exception
    Feel free to reply if you still have any questions about this.
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]
    Zhengyu Guo
    TechNet Community Support

  • "DTD is prohibited" error when accessing sharepoint 2013/office365 list (but not openly aware of using XML)

    I've been getting a list of folders and files from Sharepoint (on Office 365) by using the following C# code...
    var folders = ListFolders(libraryName, clientContext, web);
    public List<Folder> ListFolders(string libraryName, ClientContext clientContext, Web web)
    var list = GetDocumentLibrary(libraryName, clientContext, web);
        var folders = list.RootFolder.Folders;
        clientContext.Load(folders); 
       clientContext.ExecuteQuery();
        return folders.ToList();       
    public List GetDocumentLibrary(string libraryName, ClientContext clientContext, Web web)
    var query = clientContext.LoadQuery(web.Lists.Where(p => p.Title == libraryName));
       clientContext.ExecuteQuery();
    return query.FirstOrDefault();
    It was working fine until I rebooted my computer (it installed a Windows Update), I strongly suspect, based on some testing I've done, it is caused by http://support.microsoft.com/kb/2964358 
    When the *clientContext.ExecuteQuery()* statement is reached in *GetDocumentLibrary()*, the
    following exception is thrown.
    *An unhandled exception of type 'System.Xml.XmlException' occurred in System.Xml.dll
    Additional information: For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method.*
    I'm wondering how I can work around this, as I'm not consciously using System.XML, it's a background function or process when the ExecuteQuery runs. 
    Can I pass some additional XMLReader info to this or clientContext (I'm assuming not), so I'm not sure how to execute this query to prevent the DTD error. I have also tried accessing the list in a different manner, by using this code... (from Microsoft's MSDN
    pages)
    List list = clientContext.Web.Lists.GetByTitle(libraryName);CamlQuery camlQuery = new CamlQuery();            camlQuery.ViewXml = "<View/>";ListItemCollection listItems = list.GetItems(camlQuery);clientContext.Load(list); clientContext.Load(listItems);clientContext.ExecuteQuery();
    This works on a computer without the KB above, however on my PC it doesn't (I get the same exception as my other code) , obviously uninstalling the KB will make things work in the short term, but its no good in the longer term. Any advice on how to avoid
    this error would be greatly appreciated.  I can only assume there will be a "preferred" way from Microsoft for accessing lists now this KB is implemented, but I'm clueless as to what it is.
    Thanks
    Dougie

    I've found that the issue is related to certain ISP's providing a "search assistance" page when a request returns an error due to no DNS entry matching that URL.  For example, if you use Verizon in the USA, and go to www.somenonexistanturl.com, it will
    "helpfully" respond to you with a search results page of possible options to match the URL you requested.
    Because this is not the expected XML that the SP Client Context library was looking for (i.e., it does not have the DTD that it validates), the exception is thrown.  The offending request that I have seen in my case is to the following URL: http://msoid.[my
    office 365 acct name].onmicrosoft.com/FPUrl.xml
    A simple resolution is to change your network connection adapter settings to use a DNS server IP other than the one auto-retrieved from your ISP, such as Google's (8.8.8.8 and 8.8.4.4). It's not a long term fix, since you'd breaking the ability to resolve
    internal resources from a private or corporate network (unless the private network is also setup with Google's IP for the DNS gateway).
    While you may have not changed any of your code, I would bet that you changed how/where you access the internet from when it was working to when it stopped working.
    What I am not entirely sure of is why did this start happening all of a sudden - was it a change from MSFT that broke the URL, or did the ISP(s) decide to become extra helpful with bad URLs?
    HTH
    --Thiago
    --Thiago

  • Safari 2.0 not rendering HTML properly

    I have been having trouble with safari rendering pages since upgrading to 10.4 (still happening on 10.4.2)
    on most pages (not apple.com conveniently) the vertical spacing is not renederd properly, and there are huge gaps between items on the page.
    here is a jpeg that will show the problem in safari compared to firefox
    http://www.danyul.com/pics/safariRender.jpg
    Any help appreciated.
    thanks
    daniel

    I think i has something to do with an html table not having a fixed height determined by content.
    It even happens when i create a page in dreamweaver and test it in safari.
    here is a simple page created using this code:
    http://www.danyul.com/pics/safariRender2.jpg
    <html>
    <body>
    <table width="100%" border="1" cellspacing="0" cellpadding="0">
    <tr>
    <td>First <td>
    </td>
    </tr>
    <tr>
    <td>Second <td> </td>
    </tr>
    <tr>
    <td>Third <td> </td>
    </tr>
    </table>
    </body>
    </html>
    I have a powerbook too that was upgraded to 10.4 at the same time, and there are no problems rendering the html in safari on there...just here on the G5
    thanks
    daniel

  • Firefox4 not rendering HTML bordercolor attribute correctly

    Firefox 4 is not following the html specification. The bordercolor attribute seems to be ignored, resulting in many sites pages rendering in an unexpected and unwelcome 3d fashion. The question is how soon will this be fixed?

    Firefox 4 is not following the html specification. The bordercolor attribute seems to be ignored, resulting in many sites pages rendering in an unexpected and unwelcome 3d fashion. The question is how soon will this be fixed?

Maybe you are looking for

  • Return an Image from a subclass to a graphics class

    Hello I'm wondering how to return an Image generated by one class to a class which works as a graphics class. The graphics class is run from a main class. Let me make up a schedule: Image-generator return Image -> graphics class paint I have tried ju

  • {Q} Debuging Servlets with VCafe 4.0 using WebLogic as WEB server

    Hi,           I am trying to set up VCafe 4.0 to debug servlets deployed on WebLogic 5.1.           I don't have any problem with default servlet debugging, but I don't know           how to tell VCafe that my WEB Server isWebLogic. Any ideas?       

  • Share window: "1 warning"

    In the Share window, while trying to export directly to Youtube I see "1 Warning" in yellow font but no explaination. Then upload fails way later. Please help. Thank you.

  • USB Mic Problem

    Hi Guys, I recently bought a USB Mic for use with Logic but I'm not sure how to get Logic to recognize it. Any advice would be much appreciated. Simon (London UK) Message was edited by: simon66

  • FROZE while checking add-ons for compatibility from firefox 9 to 10... WONT OPEN

    i opened firefox 9 and it brought up a tab that was seeing if my old add-ons would work with firefox 10... in the process my window froze so i closed it ever since then it wont open no matter if i hold shit and start it.... even if i completely reins