/// <summary> /// Creates an XmlSignificantWhitespace node. /// </summary> /// <param name="data">The string must contain only the following characters  and 	</param> /// <returns>A new XmlSignificantWhitespace node.</returns> public override XmlSignificantWhitespace CreateSignificantWhitespace(string data) { LineInfoSignificantWhitespace sw = new LineInfoSignificantWhitespace(data, this); IXmlLineInfo lineInfo = this.reader as IXmlLineInfo; if (lineInfo != null && lineInfo.HasLineInfo()) { sw.SetLineInfo(lineInfo.LineNumber, lineInfo.LinePosition); } return(sw); }
/// <summary> /// Creates an XmlSignificantWhitespace node. /// </summary> /// <param name="data">The string must contain only the following characters  and 	</param> /// <returns>A new XmlSignificantWhitespace node.</returns> public override XmlSignificantWhitespace CreateSignificantWhitespace(string data) { LineInfoSignificantWhitespace sw = new LineInfoSignificantWhitespace(data, this); IXmlLineInfo lineInfo = this.reader as IXmlLineInfo; if (lineInfo != null && lineInfo.HasLineInfo()) { sw.SetLineInfo(lineInfo.LineNumber, lineInfo.LinePosition); } return sw; }