Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / Xml / System / Xml / schema / SchemaEntity.cs / 1 / SchemaEntity.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Schema { using System; using System.Diagnostics; using System.Net; internal sealed class SchemaEntity { private XmlQualifiedName name; // Name of entity private String url; // Url for external entity (system id) private String pubid; // Pubid for external entity private String text; // Text for internal entity private XmlQualifiedName ndata = XmlQualifiedName.Empty; // NDATA identifier private int lineNumber; // line number private int linePosition; // character postion private bool isParameter; // parameter entity flag private bool isExternal; // external entity flag private bool isProcessed; // whether entity is being Processed. (infinite recurrsion private bool isDeclaredInExternal; // declared in external markup or not private string baseURI; private string declaredURI; internal SchemaEntity(XmlQualifiedName name, bool isParameter) { this.name = name; this.isParameter = isParameter; } internal static bool IsPredefinedEntity(String n) { return(n == "lt" || n == "gt" || n == "amp" || n == "apos" || n == "quot"); } internal XmlQualifiedName Name { get { return name;} } internal String Url { get { return url;} set { url = value; isExternal = true;} } internal String Pubid { get { return pubid;} set { pubid = value;} } internal bool IsProcessed { get { return isProcessed;} set { isProcessed = value;} } internal bool IsExternal { get { return isExternal;} set { isExternal = value;} } internal bool DeclaredInExternal { get { return isDeclaredInExternal;} set { isDeclaredInExternal = value;} } internal bool IsParEntity { get { return isParameter;} set { isParameter = value;} } internal XmlQualifiedName NData { get { return ndata;} set { ndata = value;} } internal String Text { get { return text;} set { text = value; isExternal = false;} } internal int Line { get { return lineNumber;} set { lineNumber = value;} } internal int Pos { get { return linePosition;} set { linePosition = value;} } internal String BaseURI { get { return (baseURI == null) ? String.Empty : baseURI; } set { baseURI = value; } } internal String DeclaredURI { get { return (declaredURI == null) ? String.Empty : declaredURI; } set { declaredURI = value; } } }; } // 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
- XmlBinaryReader.cs
- PersonalizationProviderCollection.cs
- CodeCompiler.cs
- BindableTemplateBuilder.cs
- WorkflowInstanceExtensionProvider.cs
- _WinHttpWebProxyDataBuilder.cs
- Metadata.cs
- FormView.cs
- CalloutQueueItem.cs
- ParserOptions.cs
- AstTree.cs
- SqlError.cs
- DocumentViewerAutomationPeer.cs
- MultiDataTrigger.cs
- WebEventCodes.cs
- AttachedAnnotation.cs
- CollectionTypeElement.cs
- DataGridViewImageCell.cs
- RawStylusInputReport.cs
- CssTextWriter.cs
- Typography.cs
- DataObject.cs
- exports.cs
- ValidationRule.cs
- PointKeyFrameCollection.cs
- ZipIOLocalFileHeader.cs
- SelectionListDesigner.cs
- PaginationProgressEventArgs.cs
- TableProviderWrapper.cs
- DataRelation.cs
- SystemIcmpV6Statistics.cs
- RSAOAEPKeyExchangeDeformatter.cs
- BoundColumn.cs
- DataGridViewCell.cs
- XdrBuilder.cs
- DataPagerField.cs
- DefaultDialogButtons.cs
- FixedFlowMap.cs
- _SSPISessionCache.cs
- PageRequestManager.cs
- ResourceManager.cs
- ComponentResourceManager.cs
- TPLETWProvider.cs
- PropertyAccessVisitor.cs
- X509CertificateChain.cs
- CompilerTypeWithParams.cs
- RemoteEndpointMessageProperty.cs
- RelationshipConstraintValidator.cs
- CustomSignedXml.cs
- InertiaExpansionBehavior.cs
- HandlerMappingMemo.cs
- VisualStyleInformation.cs
- Keywords.cs
- ResourcePart.cs
- OracleLob.cs
- SecurityState.cs
- ExceptionUtil.cs
- ExtentCqlBlock.cs
- StyleXamlTreeBuilder.cs
- KeyValuePairs.cs
- FastEncoderWindow.cs
- SafeHandles.cs
- XmlSchemaSimpleContentRestriction.cs
- TabControl.cs
- SelectingProviderEventArgs.cs
- ParameterCollection.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- MeasurementDCInfo.cs
- MenuCommand.cs
- TextCollapsingProperties.cs
- DrawToolTipEventArgs.cs
- TextProperties.cs
- SelectManyQueryOperator.cs
- XLinq.cs
- NumericExpr.cs
- ButtonRenderer.cs
- AliasedSlot.cs
- FrameworkObject.cs
- ItemAutomationPeer.cs
- HttpModuleActionCollection.cs
- QueryRewriter.cs
- DesignSurfaceCollection.cs
- WebPartConnectionsCancelVerb.cs
- UpDownEvent.cs
- ButtonChrome.cs
- MoveSizeWinEventHandler.cs
- ChannelManager.cs
- FileUtil.cs
- LinearGradientBrush.cs
- QualifiedCellIdBoolean.cs
- ToolBarButton.cs
- SupportsEventValidationAttribute.cs
- LazyTextWriterCreator.cs
- RoutingTable.cs
- OleDbConnection.cs
- XmlSignatureProperties.cs
- ApplicationHost.cs
- Documentation.cs
- GraphicsState.cs
- BasicCommandTreeVisitor.cs