Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] XML external entity references

From: Mukul Gandhi <gandhi.mukul@-----.--->
To: David Carlisle <davidc@---.--.-->
Date: 3/5/2009 4:18:00 PM
Thanks, David for the answer.

Kindly read my further questions below.

On Thu, Mar 5, 2009 at 5:56 PM, David Carlisle <davidc@n...> wrote:
>> Can I anyhow successfully parse the above XML? for e.g., using a
>> custom entity resolver, or using a catalog file.
>
> you can use a catalog file that defaults in a dtd that defines the
> entity.

I was actually trying to use the catalog file, by defaulting to a DTD
that defines the entity.

my goal is to successfully parse the file:

<x>
  &message;
</x>

I want to define the entity 'message' in a local DTD, and use a local
catalog file to point to this DTD.

I was following the details at,
http://xerces.apache.org/xerces2-j/faq-xcatalogs.html for using it in
Xerces-J.

I think, we can define the catalog file as:

1. OASIS XML catalog format, or

2. The catalog text format described by OASIS TR 9401

I found that OASIS TR 9401 format has a option to default to a DTD, in
case <!DOCTYPE declaration is absent in the XML (I think it's the
option DOCTYPE in OASIS TR 9401 format).
But I found, that this option works in SGML systems, and not in XML
(but I am not very sure).

But after studying the OASIS XML catalog format, I couldn't find an
option for this.

Please do correct me, on any of the above points.


-- 
Regards,
Mukul Gandhi

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@l...
subscribe: xml-dev-subscribe@l...
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent