Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Xml / System / Xml / Core / ValidatingReaderNodeData.cs / 2 / ValidatingReaderNodeData.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- using System; using System.IO; using System.Text; using System.Collections; using System.Xml.Schema; using System.Diagnostics; using System.Globalization; namespace System.Xml { internal class ValidatingReaderNodeData { string localName; string namespaceUri; string prefix; string nameWPrefix; string rawValue; string originalStringValue; // Original value int depth; AttributePSVIInfo attributePSVIInfo; //Used only for default attributes XmlNodeType nodeType; int lineNo; int linePos; public ValidatingReaderNodeData() { Clear(XmlNodeType.None); } public ValidatingReaderNodeData(XmlNodeType nodeType) { Clear(nodeType); } public string LocalName { get { return localName; } set { localName = value; } } public string Namespace { get { return namespaceUri; } set { namespaceUri = value; } } public string Prefix { get { return prefix; } set { prefix = value; } } public string GetAtomizedNameWPrefix(XmlNameTable nameTable) { if (nameWPrefix == null) { if (prefix.Length == 0 ) { nameWPrefix = localName; } else { nameWPrefix = nameTable.Add ( string.Concat (prefix,":", localName)); } } return nameWPrefix; } public int Depth { get { return depth; } set { depth = value; } } public string RawValue { get { return rawValue; } set { rawValue = value; } } public string OriginalStringValue { get { return originalStringValue; } set { originalStringValue = value; } } public XmlNodeType NodeType { get { return nodeType; } set { nodeType = value; } } public AttributePSVIInfo AttInfo { get { return attributePSVIInfo; } set { attributePSVIInfo = value; } } public int LineNumber { get { return lineNo; } } public int LinePosition { get { return linePos; } } internal void Clear( XmlNodeType nodeType ) { this.nodeType = nodeType; localName = string.Empty; prefix = string.Empty; namespaceUri = string.Empty; rawValue = string.Empty; if (attributePSVIInfo != null) { attributePSVIInfo.Reset(); } nameWPrefix = null; lineNo = 0; linePos = 0; } internal void ClearName() { localName = string.Empty; prefix = string.Empty; namespaceUri = string.Empty; } internal void SetLineInfo( int lineNo, int linePos ) { this.lineNo = lineNo; this.linePos = linePos; } internal void SetLineInfo( IXmlLineInfo lineInfo ) { if (lineInfo != null) { this.lineNo = lineInfo.LineNumber; this.linePos = lineInfo.LinePosition; } } internal void SetItemData(string localName, string prefix, string ns, string value) { this.localName = localName; this.prefix = prefix; namespaceUri = ns; rawValue = value; } internal void SetItemData(string localName, string prefix, string ns, int depth) { this.localName = localName; this.prefix = prefix; namespaceUri = ns; this.depth = depth; rawValue = string.Empty; } internal void SetItemData(string value) { SetItemData(value, value); } internal void SetItemData(string value, string originalStringValue) { rawValue = value; this.originalStringValue = originalStringValue; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GridToolTip.cs
- Task.cs
- TaskDesigner.cs
- Emitter.cs
- BasicHttpSecurityElement.cs
- GlobalItem.cs
- SendMailErrorEventArgs.cs
- StyleBamlRecordReader.cs
- RelationshipEndMember.cs
- _UriSyntax.cs
- FormViewInsertedEventArgs.cs
- VSWCFServiceContractGenerator.cs
- ContentFilePart.cs
- StackBuilderSink.cs
- SerializableAttribute.cs
- WindowsGraphicsCacheManager.cs
- XmlHierarchyData.cs
- IssuedTokenParametersElement.cs
- ArrayExtension.cs
- StateWorkerRequest.cs
- ListDictionary.cs
- EntityDataSourceChangingEventArgs.cs
- InputMethodStateTypeInfo.cs
- Pair.cs
- SecurityCriticalDataForSet.cs
- ActivityPreviewDesigner.cs
- VBCodeProvider.cs
- EdmTypeAttribute.cs
- SessionStateSection.cs
- OdbcConnectionOpen.cs
- PropertyOverridesDialog.cs
- ObservableCollection.cs
- EntityClassGenerator.cs
- StyleModeStack.cs
- HtmlControl.cs
- TraceUtils.cs
- EnlistmentState.cs
- TagPrefixAttribute.cs
- DependencyPropertyKey.cs
- RSACryptoServiceProvider.cs
- DataObjectCopyingEventArgs.cs
- securestring.cs
- OneOfScalarConst.cs
- nulltextcontainer.cs
- _NetworkingPerfCounters.cs
- DesignerLoader.cs
- DefaultTextStore.cs
- KeyedQueue.cs
- DBSchemaTable.cs
- EmptyElement.cs
- CodeTypeDelegate.cs
- DBNull.cs
- DeadCharTextComposition.cs
- WmpBitmapDecoder.cs
- IntersectQueryOperator.cs
- RelatedView.cs
- ImageFormat.cs
- DataTableCollection.cs
- XmlUnspecifiedAttribute.cs
- ButtonPopupAdapter.cs
- WebContext.cs
- _NetworkingPerfCounters.cs
- Form.cs
- ContextQuery.cs
- EntityConnectionStringBuilder.cs
- CounterSetInstanceCounterDataSet.cs
- EntityDataSourceEntitySetNameItem.cs
- ListenerElementsCollection.cs
- ExpressionsCollectionConverter.cs
- ClientFormsIdentity.cs
- ListMarkerLine.cs
- LinkConverter.cs
- FacetChecker.cs
- BrowserCapabilitiesCompiler.cs
- DataGridViewDataConnection.cs
- GetImportedCardRequest.cs
- UIAgentAsyncEndRequest.cs
- MultiBinding.cs
- MainMenu.cs
- GraphicsContainer.cs
- StrongNameIdentityPermission.cs
- EntityContainer.cs
- DataGridSortingEventArgs.cs
- TypeDefinition.cs
- TextContainerChangedEventArgs.cs
- SimpleWorkerRequest.cs
- FileBasedResourceGroveler.cs
- FixedElement.cs
- Camera.cs
- CountdownEvent.cs
- WindowsButton.cs
- ElementProxy.cs
- CheckBoxPopupAdapter.cs
- WpfSharedBamlSchemaContext.cs
- HwndProxyElementProvider.cs
- TypedDataSourceCodeGenerator.cs
- ItemContainerGenerator.cs
- FormsAuthenticationCredentials.cs
- BooleanAnimationUsingKeyFrames.cs
- ReferenceConverter.cs