示例#1
0
        public XmlRootState(
            XmlTagState tagState,
            XmlClosingTagState closingTagState,
            XmlCommentState commentState,
            XmlCDataState cDataState,
            XmlDocTypeState docTypeState,
            XmlProcessingInstructionState processingInstructionState,
            XmlTextState textState)
        {
            TagState                   = tagState;
            ClosingTagState            = closingTagState;
            CommentState               = commentState;
            CDataState                 = cDataState;
            DocTypeState               = docTypeState;
            ProcessingInstructionState = processingInstructionState;
            TextState                  = textState;

            Adopt(TagState);
            Adopt(ClosingTagState);
            Adopt(CommentState);
            Adopt(CDataState);
            Adopt(DocTypeState);
            Adopt(ProcessingInstructionState);
            Adopt(TextState);
        }
示例#2
0
        public XmlRootState(
            XmlTagState tagState,
            XmlClosingTagState closingTagState,
            XmlCommentState commentState,
            XmlCDataState cDataState,
            XmlDocTypeState docTypeState,
            XmlProcessingInstructionState processingInstructionState)
        {
            this.tagState                   = tagState;
            this.closingTagState            = closingTagState;
            this.commentState               = commentState;
            this.cDataState                 = cDataState;
            this.docTypeState               = docTypeState;
            this.processingInstructionState = processingInstructionState;

            Adopt(this.TagState);
            Adopt(this.ClosingTagState);
            Adopt(this.CommentState);
            Adopt(this.CDataState);
            Adopt(this.DocTypeState);
            Adopt(this.ProcessingInstructionState);
        }
示例#3
0
		public XmlRootState (
			XmlTagState tagState,
			XmlClosingTagState closingTagState,
			XmlCommentState commentState,
			XmlCDataState cDataState,
			XmlDocTypeState docTypeState,
		        XmlProcessingInstructionState processingInstructionState)
		{
			this.tagState = tagState;
			this.closingTagState = closingTagState;
			this.commentState = commentState;
			this.cDataState = cDataState;
			this.docTypeState = docTypeState;
			this.processingInstructionState = processingInstructionState;
			
			Adopt (this.TagState);
			Adopt (this.ClosingTagState);
			Adopt (this.CommentState);
			Adopt (this.CDataState);
			Adopt (this.DocTypeState);
			Adopt (this.ProcessingInstructionState);
		}
示例#4
0
 public XmlRootState(XmlTagState tagState, XmlClosingTagState closingTagState)
     : this(tagState, closingTagState, new XmlCommentState(), new XmlCDataState(),
            new XmlDocTypeState(), new XmlProcessingInstructionState())
 {
 }
示例#5
0
		public XmlRootState (XmlTagState tagState, XmlClosingTagState closingTagState)
			: this (tagState, closingTagState, new XmlCommentState (), new XmlCDataState (),
			  new XmlDocTypeState (), new XmlProcessingInstructionState ()) {}