You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Subbarao Cheekatimarla <ch...@gmail.com> on 2005/10/13 07:13:31 UTC

Regading XCatalog loading by using XML Commons

Hi all

I am upgrading my application from Xerces 1.4.4 to Xerces 2.7.0. As part of
that I am using XML Commons for Catalog reslovers (because Xerces 2.7.0 is
not providing API to load the XML Catalog). Previously my application
support XCatalogs (by using "org.apache.xerces.readers.XCatalog" loading the
catalogs) and I want to make the upgrading application also supports
XCatalogs.


The XCatalog file looks like
<XCatalog Version = "1.0">
<Remap SystemID =
http://www.bbc.co.uk1/syndication/feeds/news/rss-0.91.dtdHRef =
"file:/E:/Repackage/rss-
0.91.dtd" />
</XCatalog>

I am trying to load the above file by using XML Commons and unable to load.
But I wrote the equal "oasis" catalog file and able to load it.

The XCatalog file looks like

<?xml version="1.0" encoding="UTF-8"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<system systemId=http://www.bbc.co.uk1/syndication/feeds/news/rss-0.91.dtduri="./rss-
0.91.dtd"/>
</catalog>

Is there any way to load the XCatalogs using XML Commons?

Thanks,
chvsr

Re: Regading XCatalog loading by using XML Commons

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
The resolver does support XCatalogs [1] though I don't think it's well 
documented how to use it for that purpose. If you have questions about 
using it you should ask them on commons-dev@xml.apache.org.

Thanks.

[1] 
http://xml.apache.org/commons/components/apidocs/resolver/org/apache/xml/resolver/readers/XCatalogReader.html

Subbarao Cheekatimarla <ch...@gmail.com> wrote on 10/13/2005 01:13:31 
AM:

> Hi all
> 
>       I am upgrading my application from Xerces 1.4.4 to Xerces 2.7.
> 0. As part of that I am using XML Commons for Catalog reslovers 
> (because Xerces 2.7.0 is not providing API to load the XML Catalog).
> Previously my application support XCatalogs (by using "org.apache.
> xerces.readers.XCatalog" loading the catalogs) and I want to make 
> the upgrading application also supports XCatalogs.
> 
> 
> The XCatalog file looks like
> <XCatalog Version = "1.0">
>        <Remap SystemID = http://www.bbc.co.
> uk1/syndication/feeds/news/rss-0.91.dtd HRef = "file:/E:
> /Repackage/rss-0.91.dtd" />
> </XCatalog>
> 
> I am trying to load the above file by using XML Commons and unable 
> to load. But I wrote the equal "oasis" catalog file and able to load it.
> 
> The XCatalog file looks like
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
>      <system systemId=http://www.bbc.co.
> uk1/syndication/feeds/news/rss-0.91.dtd uri="./rss-0.91.dtd"/>
> </catalog>
> 
>  Is there any way to load the XCatalogs using XML Commons?
> 
> Thanks,
> chvsr 

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org