Hi Keith,
 
What is the status of the "bug" (Xerces) The prefix 'xml' is reserved?
 
I couldn't find the fix in Castor cvs, latest snapshot downloaded today (2003-10-10).
So is the following the fix I have to make in Castor:
 
UnmarschalHandler, method startPrefixMapping:
 
    public void startPrefixMapping(String prefix, String uri)
        throws SAXException
    {
        if (!XML_NAMESPACE_PREFIX.equalsIgnoreCase(prefix)) {
 
        if (_createNamespaceScope) {
            _namespaces = _namespaces.createNamespaces();
            _createNamespaceScope = false;
        }
       
        _namespaces.addNamespace(prefix, uri);
       
        /*
        //-- add namespace declarations to set of current attributes       
        String attName = null;
        if ((prefix == null)  || (prefix.length() == 0))
            attName = XMLNS_DECL;
        else
            attName = XMLNS_PREFIX + prefix;
           
        _currentAtts.addAttribute(attName, uri);
        */
        }
       
    } //-- startPrefixMapping
 
 
Or is there a fix in the latest Xerces, I couldn't find it yet. I don't see in xerces bugtracker that the startPrefixMapping is a problem/bug. 
 
I hope you can give me an answer.
 
Thanks in advance.
 
greetings,
Andre Torensma

Reply via email to