/// <summary> /// Initializes a new instance of the DynaXmlContextState class. /// </summary> /// <param name="document">The xml document.</param> /// <param name="currentAncestor">The current ancestor of all new nodes.</param> /// <param name="lastCreated">The last node that was created.</param> /// <param name="namespaceContext">The current namespace context.</param> /// <param name="state">The current state of the state machine.</param> public DynaXmlContextState(DynaXmlDocument document, DynaXmlElement currentAncestor, DynaXmlElement lastCreated, DynaXmlNamespaceContext namespaceContext, DynaXmlBuilderState state) { this.Document = document; this.State = state; this.CurentAncestorElement = currentAncestor; this.CurrentNamespaceContext = namespaceContext; this.LastCreated = lastCreated; }
/// <summary> /// Initializes a new instance of the DynaXmlNamespaceContext class. /// </summary> /// <param name="orignal"> /// An existing namespace context that should be cloned. /// </param> internal DynaXmlNamespaceContext(DynaXmlNamespaceContext orignal) { this.CurrentAlias = orignal.CurrentAlias; this.DefaultNamespace = orignal.DefaultNamespace; this.AliasTable = new Dictionary<string, string>(orignal.AliasTable); }
/// <summary> /// Initializes a new instance of the DynaXmlNamespaceContext class. /// </summary> /// <param name="orignal"> /// An existing namespace context that should be cloned. /// </param> internal DynaXmlNamespaceContext(DynaXmlNamespaceContext orignal) { this.CurrentAlias = orignal.CurrentAlias; this.DefaultNamespace = orignal.DefaultNamespace; this.AliasTable = new Dictionary <string, string>(orignal.AliasTable); }