You perform a search on a Microsoft SharePoint Server 2010 site. However, the search results page throws an exception when a name in a document metadata column contains the & character, the < character, or the > character. Additionally, the following Unified Logging Service (ULS) log is logged:
[Time] w3wp.exe (0x0B84) 0x29C0 SharePoint Server Search Query g1j9 Exception Internal server error exception: System.Xml.XmlException: An error occurred while parsing EntityName. [LineNumner, PositionNumber.] at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ParseEntityName() at System.Xml.XmlTextReaderImpl.ParseEntityReference() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlLoader.ParsePartialContent(XmlNode parentNode, String innerxmltext, XmlNodeType nt) at System.Xml.XmlLoader.LoadInnerXmlElement(XmlElement node, String innerxmltext) at Microsoft.Office.Server.Search.WebControls.TaxonomyFilterGenerator.CreateFilterResultElement(XmlDocument filterXml, String filterId, String displayName, FilterCategory filterCategory, String mappedProperties, SortedList`2 filterValueList, String associateTermSets) at Microsoft.Office.Server.Search.WebControls.TaxonomyFilterGenerator.CreateMetadataColumnFilters(XmlDocument filterXml, List`1 filterValue, Int32 maxFilterCats, FilterCategory fc, Boolean includeAutoFilters) at Microsoft.Office.Server.Search.WebControls.TaxonomyFilterGenerator.GetRefinement(Dictionary`2 refinedData, XmlDocument filterXml, Int32 maxFilterCats) at Microsoft.Office.Server.Search.WebControls.RefinementManager.MergeFiltersFromGenerators() at Microsoft.Office.Server.Search.WebControls.RefinementManager.GetRefinementXml() at Microsoft.Office.Server.Search.WebControls.RefinementWebPart.GetXPathNavigator(String viewPath) System.Xml.XmlException: An error occurred while parsing EntityName. [LineNumber, PositionNumber.] at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ParseEntityName() at System.Xml.XmlTextReaderImpl.ParseEntityReference() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlLoader.ParsePartialContent(XmlNode parentNode, String innerxmltext, XmlNodeType nt) at System.Xml.XmlLoader.LoadInnerXmlElement(XmlElement node, String innerxmltext) at Microsoft.Office.Server.Search.WebControls.TaxonomyFilterGenerator.CreateFilterResultElement(XmlDocument filterXml, String filterId, String displayName, FilterCategory filterCategory, String mappedProperties, SortedList`2 filterValueList, String associateTermSets) at Microsoft.Office.Server.Search.WebControls.TaxonomyFilterGenerator.CreateMetadataColumnFilters(XmlDocument filterXml, List`1 filterValue, Int32 maxFilterCats, FilterCategory fc, Boolean includeAutoFilters) at Microsoft.Office.Server.Search.WebControls.TaxonomyFilterGenerator.GetRefinement(Dictionary`2 refinedData, XmlDocument filterXml, Int32 maxFilterCats) at Microsoft.Office.Server.Search.WebControls.RefinementManager.MergeFiltersFromGenerators() at Microsoft.Office.Server.Search.WebControls.RefinementManager.GetRefinementXml() at Microsoft.Office.Server.Search.WebControls.RefinementWebPart.GetXPathNavigator(String viewPath)Time