Inheritance: ISimpleXMLDocHandler
Exemple #1
0
        /// <summary>
        /// Import the names from XML.
        /// @throws IOException on error
        /// </summary>
        /// <param name="inp">the XML source. The reader is not closed</param>
        /// <returns>the names</returns>
        public static Hashtable ImportFromXml(TextReader inp)
        {
            SimpleNamedDestination names = new SimpleNamedDestination();

            SimpleXmlParser.Parse(names, inp);
            return(names._xmlNames);
        }
Exemple #2
0
        /**
         * Import the names from XML.
         * @param inp the XML source. The reader is not closed
         * @throws IOException on error
         * @return the names
         */
        public static Dictionary <string, string> ImportFromXML(TextReader inp)
        {
            SimpleNamedDestination names = new SimpleNamedDestination();

            SimpleXMLParser.Parse(names, inp);
            return(names.xmlNames);
        }
Exemple #3
0
        /**
         * Import the names from XML.
         * @param inp the XML source. The stream is not closed
         * @throws IOException on error
         * @return the names
         */
        public static Hashtable ImportFromXML(Stream inp)
        {
            SimpleNamedDestination names = new SimpleNamedDestination();

            SimpleXMLParser.Parse(names, inp);
            return(names.xmlNames);
        }
        /// <summary>
        /// Import the names from XML.
        /// @throws IOException on error
        /// </summary>
        /// <param name="inp">the XML source. The stream is not closed</param>
        /// <returns>the names</returns>
        public static Hashtable ImportFromXml(Stream inp)
        {
            var names = new SimpleNamedDestination();

            SimpleXmlParser.Parse(names, inp);
            return(names._xmlNames);
        }
 /**
 * Import the names from XML.
 * @param inp the XML source. The reader is not closed
 * @throws IOException on error
 * @return the names
 */
 public static Dictionary<string, string> ImportFromXML(TextReader inp)
 {
     SimpleNamedDestination names = new SimpleNamedDestination();
     SimpleXMLParser.Parse(names, inp);
     return names.xmlNames;
 }
 /**
 * Import the names from XML.
 * @param inp the XML source. The reader is not closed
 * @throws IOException on error
 * @return the names
 */
 public static Hashtable ImportFromXML(TextReader inp) {
     SimpleNamedDestination names = new SimpleNamedDestination();
     SimpleXMLParser.Parse(names, inp);
     return names.xmlNames;
 }