本文整理汇总了C#中XmlNameTable类的典型用法代码示例。如果您正苦于以下问题:C# XmlNameTable类的具体用法?C# XmlNameTable怎么用?C# XmlNameTable使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XmlNameTable类属于命名空间,在下文中一共展示了XmlNameTable类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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();
}
示例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);
}
示例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;
}
示例5: this
public XmlParserInput
(TextReader reader,
XmlNameTable nameTable,
ErrorHandler error)
: this(reader, nameTable, null, error)
{
}
示例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);
}
示例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();
}
示例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();
}
示例9: XmlSchemaSet
public XmlSchemaSet (XmlNameTable nameTable)
{
if (nameTable == null)
throw new ArgumentNullException ("nameTable");
this.nameTable = nameTable;
schemas = new ArrayList ();
CompilationId = Guid.NewGuid ();
}
示例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();
}
示例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();
}
}
示例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();
}
}
示例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();
}
示例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';
}
示例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();
}
}