コード例 #1
0
        public void WriteContentsTo(DomWriter writer)
        {
            if (writer == null)
            {
                throw new ArgumentNullException(nameof(writer));
            }

            writer.Write(ChildNodes);
        }
コード例 #2
0
        public void CopyTo(DomWriter writer)
        {
            if (writer == null)
            {
                throw new ArgumentNullException(nameof(writer));
            }

            throw new NotImplementedException();
        }
コード例 #3
0
        public void WriteTo(DomWriter writer)
        {
            if (writer == null)
            {
                throw new ArgumentNullException(nameof(writer));
            }

            writer.Write(this);
        }
コード例 #4
0
        private DomNode AppendMarkup(DomWriter writer, string markup)
        {
            if (string.IsNullOrEmpty(markup))
            {
                return(this);
            }

            using (var stringReader = new StringReader(markup)) {
                using (DomReader reader = this.OwnerDocument.ProviderFactory.CreateReader(stringReader)) {
                    reader.CopyTo(writer);
                }
            }

            return(this);
        }
コード例 #5
0
 public DomWriterAdapter(DomWriter writer)
 {
     this.writer = writer;
 }
コード例 #6
0
 public string ToDomString(DomWriterSettings settings)
 {
     return(DomWriter.GetOuterString(settings, this));
 }
コード例 #7
0
 public DomWriter Append()
 {
     return(DomWriter.Compose(this.Select(s => s.Append())));
 }
コード例 #8
0
ファイル: DomReader.cs プロジェクト: Carbonfrost/ff-web-dom
        public void CopyTo(DomWriter writer)
        {
            if (writer == null)
                throw new ArgumentNullException("writer");

            throw new NotImplementedException();
        }