/// <summary> /// Remove the XML namespace declarations from the specified <see cref="Stream"/> <paramref name="value"/>. /// </summary> /// <param name="value">An XML <see cref="Stream"/> to purge namespace declarations from.</param> /// <param name="omitXmlDeclaration">if set to <c>true</c> omit the XML declaration; otherwise <c>false</c>. The default is false.</param> /// <param name="encoding">The text encoding to use.</param> /// <returns>A <see cref="Stream"/> object representing the specified <paramref name="value"/> but with no namespace declarations.</returns> public static Stream RemoveXmlNamespaceDeclarations(this Stream value, bool omitXmlDeclaration, Encoding encoding) { return(XmlUtility.RemoveNamespaceDeclarations(value, omitXmlDeclaration, encoding)); }
/// <summary> /// Remove the XML namespace declarations from the specified <see cref="Stream"/> <paramref name="value"/>. /// </summary> /// <param name="value">An XML <see cref="Stream"/> to purge namespace declarations from.</param> /// <returns>A <see cref="Stream"/> object representing the specified <paramref name="value"/> but with no namespace declarations.</returns> public static Stream RemoveXmlNamespaceDeclarations(this Stream value) { return(XmlUtility.RemoveNamespaceDeclarations(value)); }