OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: SAX2: org.xml.sax.helpers.SAXUtils

[ Lists Home | Date Index | Thread Index ]
  • From: David Megginson <david@megginson.com>
  • To: XMLDev list <xml-dev@ic.ac.uk>
  • Date: Sun, 16 Jan 2000 19:06:53 -0500 (EST)

David Brownell writes:

 > >  public static String makeAbsoluteURL (String url);
 > 
 > What would this do differently from the 
 > 
 > 	URL u = new URL (baseURL, relativeURL);
 > 
 > constructor -- beyond using strings instead of URLs?
 > 
 > In any case, either an URL is already absolute, or it's relative
 > to some other URL ... so that's missing an argument!

It's actually based on a method that James Clark wrote a long time ago 
-- it builds a file: URL based on the current directory.

OK, I'm probably going to leave this out, because it's not that hard
to use

  xmlReader.parse(new InputSource(new FileReader(file)));


All the best,


David

-- 
David Megginson                 david@megginson.com
           http://www.megginson.com/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ or CD-ROM/ISBN 981-02-3594-1
Please note: New list subscriptions now closed in preparation for transfer to OASIS.






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS