At 5:25 PM +0200 4/26/04, ?Mikael Ståldal wrote:
I have an application which uses the SAX ContentHandler interface as a
general pipeline for XML data. The application (which is not a parser)
invokes methods on a ContentHandler, and sometimes the XML data is
programmatically generated, i.e. not originating from XML source. In that
case there are no prefixes and no qualified names (only namespace URI:s
and local names), and it would be a PITA to have to generate
namespace prefixes which would not be used anyway.
You would not have to do this. You would just
pass the local name for each argument. That is
you'd pass the same String object twice in the
method call. A qualified name is *not* a prefixed
name, though the SAX docs are misleading on this
point, and we should probably fix that too.
--
Elliotte Rusty Harold
elharo@xxxxxxxxxxxxxxx
Effective XML (Addison-Wesley, 2003)
http://www.cafeconleche.org/books/effectivexml
http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA
-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg297
_______________________________________________
List: sax-devel, sax-devel@xxxxxxxxxxxxxxxxxxxxx
See: http://www.saxproject.org/
https://lists.sourceforge.net/lists/listinfo/sax-devel
|