logo       

Re: [XNI CHANGE PROPOSAL] XMLParseException changes and creation of XMLLoca: msg#00038

text.xml.xerces-j.devel

Subject: Re: [XNI CHANGE PROPOSAL] XMLParseException changes and creation of XMLLocator2

Ankit Pasricha wrote:
The two code changes are listed below:

XMLLocator2 extends XMLLocator {

public int getCharacterOffset();
}

Why are you extending the interface instead of just adding the
method to the existing interface?

I know I'd have to update some of my XNI tools to add the method
but that XMLLocator2 just sticks out like a sore thumb. Especially
since it's the only interface that uses this naming convention. And
it's not the approach we've used in the past to update XNI interfaces
-- previously, we just changed the original interface.

This type of change is a lot more graceful than when we went from
start/endPrefixMapping to passing a namespace context object to the
startDocument method...

--
Andy Clark * andyc@xxxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise