Inheritance: ISimpleXMLDocHandler
コード例 #1
0
        /**
         * Static method that parses an XML Stream.
         * @param is    the XML input that needs to be parsed
         * @return  a String obtained by removing all tags from the XML
         */
        public static String Parse(Stream isp)
        {
            XmlToTxt handler = new XmlToTxt();

            SimpleXMLParser.Parse(handler, null, new StreamReader(isp), true);
            return(handler.ToString());
        }
コード例 #2
0
ファイル: XmlToTxt.cs プロジェクト: karino2/wikipediaconv
 /**
  * Static method that parses an XML Stream.
  * @param is    the XML input that needs to be parsed
  * @return  a String obtained by removing all tags from the XML
  */
 public static String Parse(Stream isp)
 {
     XmlToTxt handler = new XmlToTxt();
     SimpleXMLParser.Parse(handler, null, new StreamReader(isp), true);
     return handler.ToString();
 }