/Robert Houben/:

m_model=m_grammar.toXSModel();
// This is a nasty bug in xerces.  I suspect that somewhere under the
// covers it is doing an equality test using == instead of ..equals().
for (int i=0;i<m_model.getNamespaces().getLength();i++)
{
        //System.out.println(i + ":" + m_model.getNamespaces().item(i));
        if (m_model.getNamespaces().item(i).equals(m_typeNamespace))
        {
                m_typeNamespace = m_model.getNamespaces().item(i);
        }
}

This may be what you are encountering. If the namespaces contain the same string, I force my internal one to a reference to the same string instance as xerces will use internally. Nasty, but it will work until the fix gets rolled out in the next release.

That's cool. :-)

Thank you both, Robert and George!

--
Stanimir


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to