[jdom-interest] Can 2 Xml documents be parsed in a same.......

Anoop Singh Saharan anoop.singh at wipro.com
Thu Jan 11 00:53:23 PST 2001


Hi All,
 is it possible to parse 2 Xml documents in the same program..


   DOMParser parser = new DOMParser();

   DOMParser parser1 = new DOMParser();

   parser1.parse("c://course.xml");

   
  // Generate a URL from the filename.
  URL url = createURL(argv[0]);

         // Set various parser options: validation on,
         // warnings shown, error stream set to stderr.
         parser.setErrorStream(System.err);
         parser.setValidationMode(true);
         parser.showWarnings(false);

  // Parse the document.
         parser.parse(url);

         // Obtain the document.
         XMLDocument doc = parser.getDocument();
         XMLDocument doc1 = parser.getDocument();

thx...
Anoop
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20010111/f88be65f/attachment.htm


More information about the jdom-interest mailing list