예제 #1
0
 /// <summary>
 /// Get the unencoded XML declaration.
 /// </summary>
 /// <returns>XML declaration</returns>
 public string GetWholeDeclaration()
 {
     return(Attributes.GetValue(DECL_KEY));
 }
예제 #2
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;
        }