Mercurial > repos > IBBoard
view Xml/IBBXmlResolver.cs @ 14:25b953087465
* Rename DictionaryToArrayConverter to DictionaryUtils
* Add method to merge arrays
no-open-ticket
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 25 Jan 2009 11:03:38 +0000 |
parents | 961030992bd2 |
children | 0352fa33ee8f |
line wrap: on
line source
using System; using System.Xml; namespace IBBoard.Xml { /// <summary> /// Summary description for IBBXmlResolver. /// </summary> public class IBBXmlResolver : XmlUrlResolver { private string baseFilePath = ""; public IBBXmlResolver(string basePath) { baseFilePath = basePath; } public override Uri ResolveUri(Uri baseUri, string relativeUri) { if (relativeUri.StartsWith("dtds")) { //Uri uri = base.ResolveUri(baseUri, relativeUri); return new Uri(Uri.UriSchemeFile + "://" + baseFilePath + Constants.DirectoryString + relativeUri); } else { return base.ResolveUri(baseUri, relativeUri); } } } }