HP fortify scan shows a Xpath Injection issue shows as below
string repositoryID = Request.QueryString[repositoryIDKey];
XmlDocument fullTreeviewMarkup = new SafeXmlDocument().LoadDocument(GetTreeViewMarkupFromSessionStore(sourceGuid));
XmlNode repositoryNode = fullTreeviewMarkup.SelectSingleNode( String.Format( "/root/TreeViewNode/TreeViewNode[@Value=\"{0}\"]", repositoryID ) );
How to fix this Xpath injection issue . Here repositoryID is System.GUID.How to validate repositoryID is GUID ?