public void WriteContentsTo(DomWriter writer) { if (writer == null) { throw new ArgumentNullException(nameof(writer)); } writer.Write(ChildNodes); }
public void CopyTo(DomWriter writer) { if (writer == null) { throw new ArgumentNullException(nameof(writer)); } throw new NotImplementedException(); }
public void WriteTo(DomWriter writer) { if (writer == null) { throw new ArgumentNullException(nameof(writer)); } writer.Write(this); }
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); }
public DomWriterAdapter(DomWriter writer) { this.writer = writer; }
public string ToDomString(DomWriterSettings settings) { return(DomWriter.GetOuterString(settings, this)); }
public DomWriter Append() { return(DomWriter.Compose(this.Select(s => s.Append()))); }
public void CopyTo(DomWriter writer) { if (writer == null) throw new ArgumentNullException("writer"); throw new NotImplementedException(); }