You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Grigorios Dimitriadis <gr...@hotmail.com> on 2001/09/10 13:19:34 UTC

Namespace support?


Hello,

I am using Xerces 2.2.0a, and I have trouble with the namespaces.
Even if I explicitly set "http://xml.org/sax/features/namespaces"
and "http://xml.org/sax/features/namespace-prefixes" to "true",
(with parser.setFeature() ), the feature does not work!

In my content handler, the startPrefixMapping() method never gets
called, and the startElement() method always starts with the
"namespaceURI" attribute undefined (if I try to print its value
inside startElement() its "null"). So even if the tag does not
have a namespace prefix, namespaceURI value is not "" (empty srting),
but "null" - which of course means that even by checking its value
in an "if" statement, the program crashes.

Can you please help me? Am I doing something wrong?

Thanks in advance,
Grigoris Dimitriadis



_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Re: Namespace support?

Posted by Andy Clark <an...@apache.org>.
Grigorios Dimitriadis wrote:
> I am using Xerces 2.2.0a, and I have trouble with the namespaces.
> Even if I explicitly set "http://xml.org/sax/features/namespaces"
> and "http://xml.org/sax/features/namespace-prefixes" to "true",
> (with parser.setFeature() ), the feature does not work!

Please try it with Xerces 2.0.0 (beta2). The alpha version code is
about a year old now.

-- 
Andy Clark * IBM, TRL - Japan * andyc@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org