Re: SAX: Processing Instructions (question 6 of 10)

Tim Bray (tbray@textuality.com)
Sun, 04 Jan 1998 10:11:01 -0800


At 01:12 PM 03/01/98 -0500, David Megginson wrote:
>Should SAX implement a callback for processing instructions?

Yes. As follows

PI(String target, String remainder);

Since a conformant processor has to split 'em up anyhow. If there's
no remainder, i.e. <?SomeApp?>, then the remainder argument should
be the empty string "", not null. Or perhaps the remainder should
be done with (char[], offset, length), like charData[]
-Tim