Re: qualified name argument to startElement
Elliotte Rusty Harold <[email protected]> Tue, 27 Apr 2004 07:06:25 -0400
| Newsgroups | gmane.text.xml.sax.devel |
|---|---|
| Message-ID | <p06010206bcb3eed5638e@[192.168.254.88]> |
At 5:25 PM +0200 4/26/04, ?Mikael St=E5ldal 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=20 pass the local name for each argument. That is=20 you'd pass the same String object twice in the=20 method call. A qualified name is *not* a prefixed=20 name, though the SAX docs are misleading on this=20 point, and we should probably fix that too. -- Elliotte Rusty Harold [email protected] Effective XML (Addison-Wesley, 2003) http://www.cafeconleche.org/books/effectivexml http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulai= tA ------------------------------------------------------- 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/?cpg=12297 _______________________________________________ List: sax-devel, [email protected] See: http://www.saxproject.org/ https://lists.sourceforge.net/lists/listinfo/sax-devel