private ParseInternal ( XmlReader reader, bool isFirst ) : void | ||
reader | XmlReader | The reader instance. |
isFirst | bool | A value indicating whether this is the first /// parse. Actually this will always be true for now. |
return | void |
/// <summary> /// Creates a new SimpleXElement. /// </summary> /// <param name="xml">XML content.</param> /// <returns>Returns a new instance of the element and children.</returns> public static SimpleXElement Parse(string xml) { SimpleXElement sxe = new SimpleXElement(); using (XmlReader reader = XmlReader.Create(new StringReader(xml))) { sxe.ParseInternal(reader, true); } return(sxe); }
/// <summary> /// Creates a new SimpleXElement. /// </summary> /// <param name="xml">XML content.</param> /// <returns>Returns a new instance of the element and children.</returns> public static SimpleXElement Parse(string xml) { SimpleXElement sxe = new SimpleXElement(); using (XmlReader reader = XmlReader.Create(new StringReader(xml))) { sxe.ParseInternal(reader, true); } return sxe; }