[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] SAX2: Namespace support
Box, Don writes: > 2) NamespaceSupport needs to broken into an > interface/implementation pair (a la > Attributes/AttributesImpl). Ideally, I would like to be able to > swap in different implementations of NamespaceSupport for > performance reasons. Wow. I had thought of NamespaceSupport only as a convenience/helper class for lazy SAX driver writers (most good programmers are lazy), not as any kind of fundamental SAX interface. Originally, I was going to bury it in ParserAdapter, but then I thought that others might find it useful as well. I don't think I want to make this change, but I'm flattered that you think so highly of what was really a four-hour hack. > Additionally, environments like C++ and COM don't lend themselves to having > classes shared across DLL boundaries, Really? I don't know about DLL's in particular, but I thought that a C++ program was quite happy using classes from any library as long as it could get at the header files somehow. COM is a great mystery to me, and will likely remain so. > 3) Minor nit. Wouldn't it be more convenient if the "rawName" > parameter/property were replaced with "prefix", especially since > doing so would create a nice correlation with the namespace > declaration events. Since the Name production of XML 1.0 doesn't > allow a Name to begin with a colon, there is no loss of > information, and it is simpler to catenate the two strings together > than it is to parse for the colon. So you're suggesting not only a renaming but a change in the information delivered. I'm not sure that I see a big advantage either way (someone's always going to suffer), so I'll probably leave things in the most convenient form for non-Namespace users, who don't care about the Namespace URI or local name. I do think that rawName should be renamed, though. What does DOM level 2 use, again? All the best, David -- David Megginson david@m... http://www.megginson.com/ *************************************************************************** This is xml-dev, the mailing list for XML developers. To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev List archives are available at http://xml.org/archives/xml-dev/ ***************************************************************************
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|