Ejemplo n.º 1
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 Hashtable ImportFromXML(TextReader inp)
        {
            SimpleNamedDestination names = new SimpleNamedDestination();

            SimpleXMLParser.Parse(names, inp);
            return(names.xmlNames);
        }
Ejemplo n.º 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 Hashtable ImportFromXML(TextReader inp)
 {
     SimpleNamedDestination names = new SimpleNamedDestination();
     SimpleXMLParser.Parse(names, inp);
     return names.xmlNames;
 }