SAX2: Namespace proposal
David Megginson
david at megginson.com
Mon Dec 20 11:49:17 GMT 1999
Clark C. Evans writes:
> This looks very similar to what Ray had proposed a few days ago.
Actually, it's part of what we all came up with for SAX2 last
spring...
> On Sun, 19 Dec 1999, James Clark wrote:
> > No. I need to be able to build a tree that includes the all the
> > namespace scoping information. Something like:
> >
> > interface NamespaceDeclHandler {
> > void startNamespaceDecl(String prefix, String namespace);
> > void endNamespaceDecl();
> > }
> >
> > with calls to start/endNamespaceDecl outside the calls to the
> > corresponding start/endElement would do it.
>
> In this case, perhaps leave startElement alone:
>
> void startElement(String name, AttributeList atts);
Unfortunately, using only the NamespaceDeclHandler makes more work for
applications that care just about Namespace-qualified names, and makes
those applications less efficient (since the parser has probably
already done the work that the application will have to do over): I
agree with James and Tim that such applications will be the most
common, and we should optimize for them.
All the best,
David
--
David Megginson david at megginson.com
http://www.megginson.com/
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/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo at ic.ac.uk the following message;
unsubscribe 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