Re: qualified name argument to startElement
Mikael Ståldal <[email protected]> Wed, 28 Apr 2004 16:01:06 +0200 (CEST)
| Newsgroups | gmane.text.xml.sax.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 28 Apr 2004, Elliotte Rusty Harold wrote:
> It's defined in section 4 of the Namespaces specification using BNF:
>
> Bottom line: a qualified name is any XML name that does not contain an initial
> or trailing colon, or more than one colon, or use a non-namestart character
> after its only colon.
This is the syntax of a qualified name, but it doesn't give the whole
semantics.
> An element name in a document that does not use namespaces is still a
> perfectly legal qualified name, provided only that it does not use
> colons in a way incompatible with the namespaces specification.
Yes, but is it OK to use qName=localName when there are namespaces?
E.g. is this OK?
aContentHandler.startElement("http://www.foo.com/ns1", "rec", "rec", a1);
aContentHandler.startElement("http://www.foo.com/ns2", "el2", "el2", a2);
aContentHandler.startElement("", "el3", "el3", a3);
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
List: sax-devel, [email protected]
See: http://www.saxproject.org/
https://lists.sourceforge.net/lists/listinfo/sax-devel