[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: External subset processing by browsers
- From: Michael Glavassevich <mrglavas@c...>
- To: "Andrew Welch" <andrew.j.welch@g...>
- Date: Mon, 8 Dec 2008 10:22:58 -0500

"Andrew Welch" <andrew.j.welch@g...> wrote on 12/08/2008 09:59:34 AM:
> >> I have a similar issue, for example there are some RSS feeds which
> >> contain entity references but no doctype:
> >>
> >> <foo>foo € bar</foo>
> >>
> >
> > Similar but not the same. Since there is no DOCTYPE or external DTD subset,
> > there is no possibility that these entities could be resolved. Consequently
> > such a document is unambiguously malformed.
>
> That's understandable, it's a pity that's decided before we get chance
> to fool the parser into thinking otherwise...
With SAX you can insert an external DTD subset [1] into the document programmatically. Just register an instance of EntityResolver2 and return something from getExternalSubset().
> --
> Andrew Welch
> http://andrewjwelch.com
> Kernow: http://kernowforsaxon.sf.net/
>
> _______________________________________________________________________
>
> 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
[1] http://xerces.apache.org/xerces2-j/javadocs/api/org/xml/sax/ext/EntityResolver2.html#getExternalSubset(java.lang.String,%20java.lang.String)
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@c...
E-mail: mrglavas@a...

[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!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
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.
|
|