private void NewData(string data, XMLListener l, int index) { if (this.topElement != null) { XMLData xdata = new XMLData(data); this.topElement.AddContents(xdata); if (l != null) { l.AddData(index, xdata); } } else if (this.rootElement == null) { this.header.Append(data); } }
public virtual void AddData(int line, XMLData data) { if (data != null) { string content = data.ToString().Trim(); if (!"".Equals(content)) { _read.ParseContent(content); } } }
private void NewData(string data, XMLListener l, int index) { if (this.topElement != null) { XMLData xdata = new XMLData(data); this.topElement.AddContents(xdata); if (l != null) { l.AddData(index, xdata); } } else if (this.rootElement == null) { this.header.Append(data); } }