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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] file system or http

[ Lists Home | Date Index | Thread Index ]

Hi Travis,

If you use the JAXP interface to Xalan (javax.xml.parsers.SAXParser or 
javax.xml.parsers.DocumentBuilder depending on if you want a SAX stream or a 
DOM document), then you can pass those parser interfaces a 
java.io.InputStream for the source.

Alternatively, if you want to use an API which requires a java.net.URL, use 
java.io.File.toURL() to get a file:// URL.

Hope this helps,

Kal
-- 
Kal Ahmed, techquila.com
XML and Topic Map Consultancy

e: kal@techquila.com
p: +44 7968 529531
w: www.techquila.com

On Thursday 15 August 2002 13:35, Falls, Travis D (CASD, IT) wrote:
> hello,
> currently we are reading in our channels for out iplanet portal using the
> Xalan parser, we get our rdf files using a url connection (http).  Is there
> a faster way to get at these files, Like directly from the file system?  It
> looks like the parser wants a url connection.
>
>
> Regards,
>
> Travis D. Falls
>
>
> This communication, including attachments, is for the exclusive use of
> addressee and may contain proprietary, confidential or privileged
> information. If you are not the intended recipient, any use, copying,
> disclosure, dissemination or distribution is strictly prohibited. If
> you are not the intended recipient, please notify the sender
> immediately by return email and delete this communication and destroy all
> copies.
>
>
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>



  • References:



 

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

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