Re: Locator2 is wrong
"Karl Waclawek" <[email protected]> Sun, 25 Apr 2004 12:07:32 -0400
| Newsgroups | gmane.text.xml.sax.devel |
|---|---|
| Message-ID | <003901c42adf$6a9cefc0$0200a8c0@karlglen188> |
> The Locator2 interface has two methods: > > getXMLVersion() > getEncoding() > > Neither of these provides location information or has any relation to > the functionality of the superinterface Locator. There is no logical > reason for there to be an inheritance hierarchy between Locator and > Locator2. That they are designed this way is due to implementation. It > is not good object oriented practice. Not quite true. The Locator interface provides entity related information, i.e. the external Id (systemId, publicId). Even the line and column numbers are specific to the 'current' entity. It makes sense to tie in other entity related information, like XML version and encoding. Karl ------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg=12297 _______________________________________________ List: sax-devel, [email protected] See: http://www.saxproject.org/ https://lists.sourceforge.net/lists/listinfo/sax-devel