本文整理汇总了C#中XmlResolver.ResolveUri方法的典型用法代码示例。如果您正苦于以下问题:C# XmlResolver.ResolveUri方法的具体用法?C# XmlResolver.ResolveUri怎么用?C# XmlResolver.ResolveUri使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XmlResolver
的用法示例。
在下文中一共展示了XmlResolver.ResolveUri方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DtdParser
internal DtdParser(XmlScanner pScanner,
XmlReader reader,
XmlResolver res,
XmlNameTable nameTable,
ValidationEventHandler validationEventHandler,
bool namespaces) {
_NameTable = nameTable;
_SchemaNames = new SchemaNames(nameTable);
_NsMgr = new XmlNamespaceManager(_NameTable);
_Scanner = _XmlScanner = pScanner;
_Scanner.InDTD = true;
_XmlResolver = res;
_Namespaces = namespaces;
_Reader = reader;
_ValidationEventHandler = validationEventHandler;
_InternalValidationEventHandler = new ValidationEventHandler(InternalValidationCallback);
_SchemaInfo = new SchemaInfo(_SchemaNames);
_SchemaInfo.SchemaType = SchemaType.DTD;
_DtdFuncIndex = DtdFunctionIndex.ParseDocTypeDecl;
_IsInternal = true;
_ParseStack = new HWStack(STACK_INCREMENT);
_ScannerStack = new HWStack(STACK_INCREMENT);
_GroupStack = new HWStack(STACK_INCREMENT);
_StringBuilder = new StringBuilder();
_L = -2;
if (_XmlResolver != null && reader.BaseURI != string.Empty) {
_BaseUri = _XmlResolver.ResolveUri(null, reader.BaseURI);
_DocBaseUri = XmlUrlResolver.UnEscape(_BaseUri.ToString());
}
Push(DtdFunctionIndex.ParseDocTypeDecl);
}