Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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
- FontDriver.cs
- DesignerActionPropertyItem.cs
- GCHandleCookieTable.cs
- PageHandlerFactory.cs
- TypeConverters.cs
- HyperlinkAutomationPeer.cs
- DetailsViewInsertEventArgs.cs
- HttpException.cs
- ProviderUtil.cs
- ImplicitInputBrush.cs
- XmlStringTable.cs
- ToolStripItemClickedEventArgs.cs
- HostnameComparisonMode.cs
- UnionCqlBlock.cs
- DataServiceProviderWrapper.cs
- CurrentChangedEventManager.cs
- StyleConverter.cs
- XamlToRtfWriter.cs
- XhtmlBasicObjectListAdapter.cs
- Hex.cs
- RepeaterCommandEventArgs.cs
- AddingNewEventArgs.cs
- Parser.cs
- AsymmetricSignatureDeformatter.cs
- ConfigurationLockCollection.cs
- LogSwitch.cs
- ScrollBarRenderer.cs
- TableLayoutStyle.cs
- ByteStorage.cs
- NameTable.cs
- BinaryCommonClasses.cs
- AppDomainInfo.cs
- _BasicClient.cs
- GradientSpreadMethodValidation.cs
- SQLBytesStorage.cs
- GatewayDefinition.cs
- TextParagraphCache.cs
- InvalidProgramException.cs
- DockPanel.cs
- WebPartCatalogAddVerb.cs
- BrowserTree.cs
- ObjectRef.cs
- TrackingProfileCache.cs
- Property.cs
- DataViewListener.cs
- SetIterators.cs
- ReplyChannel.cs
- EndGetFileNameFromUserRequest.cs
- SqlNotificationRequest.cs
- NodeInfo.cs
- ComPlusDiagnosticTraceSchemas.cs
- SafeSystemMetrics.cs
- InertiaTranslationBehavior.cs
- LineGeometry.cs
- SessionSwitchEventArgs.cs
- Encoding.cs
- SQLDoubleStorage.cs
- MessageQueueException.cs
- SpellerHighlightLayer.cs
- CollectionViewSource.cs
- CookieParameter.cs
- RoutedUICommand.cs
- figurelengthconverter.cs
- ActivityExecutionWorkItem.cs
- _SslSessionsCache.cs
- FieldDescriptor.cs
- DefaultDiscoveryService.cs
- EntityFunctions.cs
- ButtonFieldBase.cs
- DiscriminatorMap.cs
- DataBindingExpressionBuilder.cs
- TabControlAutomationPeer.cs
- ToolboxItemFilterAttribute.cs
- DashStyle.cs
- SymDocumentType.cs
- UrlMappingCollection.cs
- _NetworkingPerfCounters.cs
- Page.cs
- SelectionRange.cs
- UnsignedPublishLicense.cs
- DeferredSelectedIndexReference.cs
- ColumnHeader.cs
- LinearGradientBrush.cs
- SizeConverter.cs
- MimeReflector.cs
- HealthMonitoringSection.cs
- AppDomainAttributes.cs
- _SafeNetHandles.cs
- XmlILTrace.cs
- DbParameterHelper.cs
- HtmlInputRadioButton.cs
- ProtocolsConfigurationHandler.cs
- CalendarDateRange.cs
- ValueTable.cs
- KeyPullup.cs
- MultiTrigger.cs
- ISessionStateStore.cs
- Stream.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- Calendar.cs