Наследование: 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
 /**
  * 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();
 }