Re: Support for URL values for property "catalogs" in CatalogManager.properties

Michael Glavassevich <[email protected]>
Newsgroups gmane.text.xml.commons.devel
Message-ID <OF50B63805.0DA9D657-ON85257475.007B5205-85257475.007BD807@ca.ibm.com>
Just thought I'd mention that it should already be possible to do this
programmatically. The Catalog class has a parseCatalog(URL) method [1].

Thanks.

[1]
http://xml.apache.org/commons/components/apidocs/resolver/org/apache/xml/resolver/Catalog.html#parseCatalog(java.net.URL)

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [email protected]
E-mail: [email protected]

Charles Dylan Shearer <[email protected]> wrote on 06/21/2008 09:32:43
AM:

> Currently, Resolver allows developers to use paths as values for the
> property "catalogs" in CatalogManager.properties.  I was wondering how
> you all felt about adding support for URLs in this property, so that
> users could specify exactly how catalogs are to be located: for
> example, "classpath:/com/package/catalog.xml" for catalogs on the
> classpath or "file:///directory/catalog.xml" for catalogs on the
> filesystem.
>
> I couldn't tell exactly from the documentation, but it seems that
> Resolver currently interprets these paths as referring to the
> filesystem.
>
> What does everyone think?
>
> Dylan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.