I exported the XML file of the metadata of a GIS database. I want to view this data on SharePoint 2010. I don't want to see the code, I want to actually see the way it looks in ArcCatalog. How can I do this? Thanks in advance!

  • We ended up creating a Silverlight app to view our map data. Apr 8, 2011 at 19:44

2 Answers 2


The answer lies in a third party app/webpart or creating your own xslt file to render the XML the way you want. There is an XML web part that will let you point to an xml file, or enter xml manually, point to an xsl file, or enter it manually, and render the results.

You can also create a custom Data View Web Part to accomplish this.

  • Hi Serious SP, I to use the XML Viewer Web Part but it kept giving me an error msg stating "Failed to apply XSLT to the content". I'm using ArcCatalog's "ARCGIS2FGDC.xsl" file. Don't know what's wrong :(
    – Pedro
    Apr 12, 2011 at 21:14

Here is an entire custom webpart I wrote earlier today. It reads an xml that store information about our download section, the xml looks something like this.

<?xml version="1.0" encoding="utf-8"?>
        <name>Camelot Joomla Tools</name>
        <version>1.0 RC1</version>
        <p>Bendsoft Camelot Joomla Tools is a versatile Joomla component which gives 
        you the possibility to use and display SharePoint list content in Joomla!. The 
        SharePoint content can be displayed with different templates as lists or articles.</p>
        <p>Bendsoft currently offer two free open source SharePoint web parts to transfer 
        data from SharePoint to Joomla.</p>]]></info>
        <p>The Camelot Sharepoint Integration is a library containing necessary tools when creating Camelot XML based exports or imports.</p>]]></info>

And the webpart code

using System.Collections.Generic;
using System.Linq;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;

namespace BendsoftDownloadStats
    public class BendsoftDownloadStats : System.Web.UI.WebControls.WebParts.WebPart
        private string RSSFile = @"C:\windows\temp\downloads.xml";

        protected override void CreateChildControls()

            HtmlGenericControl mainDiv = new HtmlGenericControl("div");
            mainDiv.ID = "mainDiv";

            var xmlSource = XElement.Load(RSSFile);

            IEnumerable<XElement> q =
                (from c in xmlSource.Elements("file")
                 where (string)c.Element("publish") == "True"
                 orderby c.Element("name").Value, c.Element("version").Value
                 select c).ToArray();

            foreach (XElement c in q)
                string insert = string.Empty;

                insert += string.Concat(c.Element("name").Value, " (", c.Element("version").Value, ")");
                insert += string.Concat(" - <em>", c.Element("date").Value, "</em><br />");
                insert += string.Concat("<strong>", c.Element("downloads").Value, "</strong>");

                HtmlGenericControl paragraph = new HtmlGenericControl("p");
                paragraph.ID = c.Element("hash").Value;
                paragraph.InnerHtml = insert;

Simple, very fast and adaptable!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.