Exemple #1
0
        private readonly bool _isProcessingInstruction; // <! if true, <? if false, declaration (and last data char should be ?)

        /// <summary>
        /// Create a new XML declaration
        /// </summary>
        /// <param name="data">data</param>
        /// <param name="baseUri">base uri</param>
        /// <param name="isProcessingInstruction">is processing instruction</param>
        public XmlDeclaration(string data, string baseUri, bool isProcessingInstruction)
            : base(baseUri)
        {
            Attributes.Add(DECL_KEY, data);
            this._isProcessingInstruction = isProcessingInstruction;
        }
Exemple #2
0
 /// <summary>
 /// Create a new DataNode.
 /// </summary>
 /// <param name="data">data contents</param>
 /// <param name="baseUri">base URI</param>
 public DataNode(string data, string baseUri)
     : base(baseUri)
 {
     Attributes.Add(DATA_KEY, data);
 }
Exemple #3
0
 /// <summary>
 /// Create a new comment node.
 /// </summary>
 /// <param name="data">The contents of the comment</param>
 /// <param name="baseUri">base URI</param>
 public Comment(string data, string baseUri)
     : base(baseUri)
 {
     Attributes.Add(COMMENT_KEY, data);
 }