[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML external entity references

  • From: Mukul Gandhi <gandhi.mukul@g...>
  • To: David Carlisle <davidc@n...>
  • Date: Thu, 5 Mar 2009 21:46:22 +0530

Re:  XML external entity references
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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.