SAX: Processing Instructions (question 6 of 10)

Tim Bray tbray at textuality.com
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[] 
 -Tim

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




More information about the Xml-dev mailing list