Altova Mailing List Archives>Archive Index >xml-dev Archive Home >Recent entries >Thread Prev - Re: [xml-dev] XML external entity references >Thread Next - Re: [xml-dev] XML external entity references Re: [xml-dev] XML external entity referencesTo: 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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
