SAX: Processing Instructions (question 6 of 10)

Tim Bray tbray at
Sun Jan 4 18:10:46 GMT 1998

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[] 

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as:
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list