本文整理汇总了C#中XmlNameTable类的典型用法代码示例。如果您正苦于以下问题:C# XmlNameTable类的具体用法?C# XmlNameTable怎么用?C# XmlNameTable使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XmlNameTable类属于命名空间,在下文中一共展示了XmlNameTable类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: XNodeReader
internal XNodeReader(XNode node, XmlNameTable nameTable, ReaderOptions options)
{
_source = node;
_root = node;
_nameTable = nameTable != null ? nameTable : CreateNameTable();
_omitDuplicateNamespaces = (options & ReaderOptions.OmitDuplicateNamespaces) != 0 ? true : false;
}
开发者ID:svcgany1,项目名称:corefx,代码行数:7,代码来源:XNodeReader.cs
示例2: Preprocessor
public Preprocessor(XmlNameTable nameTable, SchemaNames schemaNames, ValidationEventHandler eventHandler, XmlSchemaCompilationSettings compilationSettings)
: base(nameTable, schemaNames, eventHandler, compilationSettings)
{
_referenceNamespaces = new Hashtable();
_processedExternals = new Hashtable();
_lockList = new SortedList();
}
开发者ID:Corillian,项目名称:corefx,代码行数:7,代码来源:Preprocessor.cs
示例3: NameCache
// Constructor.
public NameCache(XmlNameTable nt) : base(128) // avoid expanding of hashtable
{
nameTable = nt;
// only NameTable is guaranted to use String.Empty
emptyString = nt.Add(String.Empty);
}
开发者ID:jjenki11,项目名称:blaze-chem-rendering,代码行数:8,代码来源:NameCache.cs
示例4: XPathDocument
/// <summary>
/// Create a new empty document. All names should be atomized using "nameTable".
/// </summary>
internal XPathDocument(XmlNameTable nameTable)
{
if (nameTable == null)
throw new ArgumentNullException(nameof(nameTable));
_nameTable = nameTable;
}
开发者ID:Corillian,项目名称:corefx,代码行数:10,代码来源:XPathDocument.cs
示例5: this
public XmlParserInput
(TextReader reader,
XmlNameTable nameTable,
ErrorHandler error)
: this(reader, nameTable, null, error)
{
}
开发者ID:jjenki11,项目名称:blaze-chem-rendering,代码行数:7,代码来源:XmlParserInput.cs
示例6: this
: this(nameTable, schemaNames, eventHandler, new XmlSchemaCompilationSettings()) {} //Use the default for XmlSchemaCollection
public BaseProcessor(XmlNameTable nameTable, SchemaNames schemaNames, ValidationEventHandler eventHandler, XmlSchemaCompilationSettings compilationSettings) {
Debug.Assert(nameTable != null);
this.nameTable = nameTable;
this.schemaNames = schemaNames;
this.eventHandler = eventHandler;
this.compilationSettings = compilationSettings;
NsXml = nameTable.Add(XmlReservedNs.NsXml);
}
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:10,代码来源:BaseProcessor.cs
示例7: Parser
public Parser(SchemaType schemaType, XmlNameTable nameTable, SchemaNames schemaNames, ValidationEventHandler eventHandler) {
this.schemaType = schemaType;
this.nameTable = nameTable;
this.schemaNames = schemaNames;
this.eventHandler = eventHandler;
this.xmlResolver = System.Xml.XmlConfiguration.XmlReaderSection.CreateDefaultResolver();
processMarkup = true;
dummyDocument = new XmlDocument();
}
开发者ID:uQr,项目名称:referencesource,代码行数:9,代码来源:Parser.cs
示例8: Parser
public Parser(SchemaType schemaType, XmlNameTable nameTable, SchemaNames schemaNames, ValidationEventHandler eventHandler) {
this.schemaType = schemaType;
this.nameTable = nameTable;
this.schemaNames = schemaNames;
this.eventHandler = eventHandler;
this.xmlResolver = new XmlUrlResolver();
processMarkup = true;
dummyDocument = new XmlDocument();
}
开发者ID:gbarnett,项目名称:shared-source-cli-2.0,代码行数:9,代码来源:parser.cs
示例9: XmlSchemaSet
public XmlSchemaSet (XmlNameTable nameTable)
{
if (nameTable == null)
throw new ArgumentNullException ("nameTable");
this.nameTable = nameTable;
schemas = new ArrayList ();
CompilationId = Guid.NewGuid ();
}
开发者ID:nobled,项目名称:mono,代码行数:9,代码来源:XmlSchemaSet.cs
示例10: Parser
public Parser(SchemaType schemaType, XmlNameTable nameTable, SchemaNames schemaNames, ValidationEventHandler eventHandler)
{
_schemaType = schemaType;
_nameTable = nameTable;
_schemaNames = schemaNames;
_eventHandler = eventHandler;
_xmlResolver = null;
_processMarkup = true;
_dummyDocument = new XmlDocument();
}
开发者ID:dotnet,项目名称:corefx,代码行数:10,代码来源:Parser.cs
示例11: XmlSchemaCollection
/// <include file='doc\XmlSchemaCollection.uex' path='docs/doc[@for="XmlSchemaCollection.XmlSchemaCollection1"]/*' />
/// <devdoc>
/// <para>Construct a new empty schema collection with associated XmlNameTable.
/// The XmlNameTable is used when loading schemas</para>
/// </devdoc>
public XmlSchemaCollection(XmlNameTable nametable) {
if (nametable == null) {
throw new ArgumentNullException("nametable");
}
nameTable = nametable;
collection = Hashtable.Synchronized(new Hashtable());
xmlResolver = new XmlUrlResolver();
isThreadSafe = true;
if (isThreadSafe) {
wLock = new ReaderWriterLock();
}
}
开发者ID:gbarnett,项目名称:shared-source-cli-2.0,代码行数:17,代码来源:xmlschemacollection.cs
示例12: XmlSchemaCollection
/// <include file='doc\XmlSchemaCollection.uex' path='docs/doc[@for="XmlSchemaCollection.XmlSchemaCollection1"]/*' />
/// <devdoc>
/// <para>Construct a new empty schema collection with associated XmlNameTable.
/// The XmlNameTable is used when loading schemas</para>
/// </devdoc>
public XmlSchemaCollection(XmlNameTable nametable) {
if (nametable == null) {
throw new ArgumentNullException("nametable");
}
nameTable = nametable;
collection = Hashtable.Synchronized(new Hashtable());
xmlResolver = System.Xml.XmlConfiguration.XmlReaderSection.CreateDefaultResolver();
isThreadSafe = true;
if (isThreadSafe) {
wLock = new ReaderWriterLock();
}
}
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:17,代码来源:XmlSchemaCollection.cs
示例13: base
// Constructor.
protected XmlParserInputBase
(XmlNameTable nameTable,
EOFHandler eof,
ErrorHandler error)
: base(error)
{
this.nameTable = nameTable;
this.eofHandler = eof;
this.currChar = '\0';
this.peekChar = '\0';
this.logger = new LogManager();
}
开发者ID:jjenki11,项目名称:blaze-chem-rendering,代码行数:13,代码来源:XmlParserInputBase.cs
示例14: base
public XmlParserInput
(TextReader reader,
XmlNameTable nameTable,
EOFHandler eof,
ErrorHandler error)
: base(nameTable, eof, error)
{
this.lineNumber = 1;
this.linePosition = 1;
this.bufferPos = 0;
this.bufferLen = 0;
this.buffer = new char[BUFSIZE];
this.reader = reader;
this.extraPeekChar = '\0';
}
开发者ID:jjenki11,项目名称:blaze-chem-rendering,代码行数:15,代码来源:XmlParserInput.cs
示例15: XmlSchemaCollection
/// <include file='doc\XmlSchemaCollection.uex' path='docs/doc[@for="XmlSchemaCollection.XmlSchemaCollection1"]/*' />
/// <devdoc>
/// <para>Construct a new empty schema collection with associated XmlNameTable.
/// The XmlNameTable is used when loading schemas</para>
/// </devdoc>
public XmlSchemaCollection(XmlNameTable nametable)
{
if (nametable == null)
{
throw new ArgumentNullException(nameof(nametable));
}
_nameTable = nametable;
_collection = Hashtable.Synchronized(new Hashtable());
_xmlResolver = System.Xml.XmlConfiguration.XmlReaderSection.CreateDefaultResolver();
_isThreadSafe = true;
if (_isThreadSafe)
{
_wLock = new object();
}
}
开发者ID:geoffkizer,项目名称:corefx,代码行数:20,代码来源:XmlSchemaCollection.cs
示例16: XmlSchemaCollection
/// <include file='doc\XmlSchemaCollection.uex' path='docs/doc[@for="XmlSchemaCollection.XmlSchemaCollection1"]/*' />
/// <devdoc>
/// <para>Construct a new empty schema collection with associated XmlNameTable.
/// The XmlNameTable is used when loading schemas</para>
/// </devdoc>
public XmlSchemaCollection(XmlNameTable nametable)
{
if (nametable == null)
{
throw new ArgumentNullException(nameof(nametable));
}
_nameTable = nametable;
_collection = Hashtable.Synchronized(new Hashtable());
_xmlResolver = null;
_isThreadSafe = true;
if (_isThreadSafe)
{
_wLock = new object();
}
}
开发者ID:dotnet,项目名称:corefx,代码行数:20,代码来源:XmlSchemaCollection.cs
示例17: base
// Constructor.
public XmlDTDParserInput
(XmlParserInput input,
XmlNameTable nameTable)
: base(nameTable, null, input.ErrorHandler)
{
this.input = input;
this.peValue = null;
this.pePosition = -1;
this.scanForPE = true;
this.parameterEntities = new PEManager
(nameTable, input.ErrorHandler);
#if !ECMA_COMPAT
this.valid = true;
this.started = false;
#endif
base.logger = null;
}
开发者ID:jjenki11,项目名称:blaze-chem-rendering,代码行数:18,代码来源:XmlDTDParserInput.cs
示例18: Validator
internal Validator(XmlNameTable nameTable, SchemaNames schemaNames, XmlValidatingReader reader) {
this.nameTable = nameTable;
this.schemaNames = schemaNames;
this.reader = reader;
positionInfo = PositionInfo.GetPositionInfo(reader);
nsManager = reader.NamespaceManager;
if (nsManager == null) {
nsManager = new XmlNamespaceManager(nameTable);
isProcessContents = true;
}
SchemaInfo = new SchemaInfo(schemaNames);
validationStack = new HWStack(STACK_INCREMENT);
textValue = new StringBuilder();
this.name = XmlQualifiedName.Empty;
attPresence = new Hashtable();
context = null;
attnDef = null;
}
开发者ID:ArildF,项目名称:masters,代码行数:19,代码来源:validator.cs
示例19: ConstructRestriction
//Compile-time Facet Checking
internal virtual RestrictionFacets ConstructRestriction(DatatypeImplementation datatype, XmlSchemaObjectCollection facets, XmlNameTable nameTable) {
//Datatype is the type on which this method is called
RestrictionFacets derivedRestriction = new RestrictionFacets();
FacetsCompiler facetCompiler = new FacetsCompiler(datatype, derivedRestriction);
for (int i = 0; i < facets.Count; ++i) {
XmlSchemaFacet facet = (XmlSchemaFacet)facets[i];
if (facet.Value == null) {
throw new XmlSchemaException(Res.Sch_InvalidFacet, facet);
}
IXmlNamespaceResolver nsmgr = new SchemaNamespaceManager(facet);
switch(facet.FacetType) {
case FacetType.Length:
facetCompiler.CompileLengthFacet(facet);
break;
case FacetType.MinLength:
facetCompiler.CompileMinLengthFacet(facet);
break;
case FacetType.MaxLength:
facetCompiler.CompileMaxLengthFacet(facet);
break;
case FacetType.Pattern:
facetCompiler.CompilePatternFacet(facet as XmlSchemaPatternFacet);
break;
case FacetType.Enumeration:
facetCompiler.CompileEnumerationFacet(facet, nsmgr, nameTable);
break;
case FacetType.Whitespace:
facetCompiler.CompileWhitespaceFacet(facet);
break;
case FacetType.MinInclusive:
facetCompiler.CompileMinInclusiveFacet(facet);
break;
case FacetType.MinExclusive:
facetCompiler.CompileMinExclusiveFacet(facet);
break;
case FacetType.MaxInclusive:
facetCompiler.CompileMaxInclusiveFacet(facet);
break;
case FacetType.MaxExclusive:
facetCompiler.CompileMaxExclusiveFacet(facet);
break;
case FacetType.TotalDigits:
facetCompiler.CompileTotalDigitsFacet(facet);
break;
case FacetType.FractionDigits:
facetCompiler.CompileFractionDigitsFacet(facet);
break;
default:
throw new XmlSchemaException(Res.Sch_UnknownFacet, facet);
}
}
facetCompiler.FinishFacetCompile();
facetCompiler.CompileFacetCombinations();
return derivedRestriction;
}
开发者ID:uQr,项目名称:referencesource,代码行数:69,代码来源:FacetChecker.cs
示例20: ParseFacetValue
private object ParseFacetValue(XmlSchemaDatatype datatype, XmlSchemaFacet facet, string code, IXmlNamespaceResolver nsmgr, XmlNameTable nameTable) {
object typedValue;
Exception ex = datatype.TryParseValue(facet.Value, nameTable, nsmgr, out typedValue);
if (ex == null) {
return typedValue;
}
else {
throw new XmlSchemaException(code, new string[] {ex.Message} , ex, facet.SourceUri, facet.LineNumber, facet.LinePosition, facet);
}
}
开发者ID:uQr,项目名称:referencesource,代码行数:10,代码来源:FacetChecker.cs
注:本文中的XmlNameTable类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论