Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://issues.apache.org/jira/browse/XERCESC-1248 Here is an overview of the issue: --------------------------------------------------------------------- Key: XERCESC-1248 Summary: AttrNS/ElementNS setPrefix(empyString) Type: Bug Status: Unassigned Priority: Major Project: Xerces-C++ Components: DOM Versions: 2.5.0 Assignee: Reporter: Tobias Schuette Created: Fri, 6 Aug 2004 12:50 AM Updated: Fri, 6 Aug 2004 12:50 AM Description: passing an emptyString "" (_not_ a null pointer) to the DOMAttrNSImpl::setPrefix(prefix) throws an INVALID_CHARACTER_ERR in isXMLName(prefix) before the code is executed that handles the special case for null pointer and emptystring. the isXMLName(prefix) check should be performed after the special case handling to verify that the prefix isn't empty: DOMAttrNSImpl.cpp around line 130: if (prefix == 0 || prefix[0] == chNull) { fName = fLocalName; fPrefix = 0; return; } if (!((DOMDocumentImpl *)this->getOwnerDocument())->isXMLName(prefix)) throw DOMException(DOMException::INVALID_CHARACTER_ERR,0, GetDOMNodeMemoryManager); same problem appears in DOMElementNSImpl::setPrefix(prefix) --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]