DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9788>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9788

VecAttrListImpl::getValue skips prefix if SAX namespace validation is On

           Summary: VecAttrListImpl::getValue skips prefix if SAX namespace
                    validation is On
           Product: Xerces-C++
           Version: 1.4
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: SAX/SAX2
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


With a SAXParser that has Namespace validation turned on (i.e. after calling 
SAXParser::setDoNamespaces(true) ), the VecAttrListImpl::getValue(const XMLCh* 
const name) doesn't read the prefix in the parameter name although it is 
supposed to do it according to the header file comment.

For example, if the xml document contains
<A xsi:nil="true"></A>
When trying to get the value of "xsi:nil" in the startElement( const XMLCh* 
const qname, AttributeList &list), from the list parameter, it returns nothing. 
However getting the value of "nil" will return "true".

Now if you turn namespace validation off, getting the value of "xsi:nil" will 
return "true", and getting the value of "nil" will return nothing. This is the 
correct behaviour.

The problem seems to be inside the XMLAttr class that does not store the prefix 
in fName, if the namespace validation is on.

Please give a description of the fix here so that I can fix it in my source.

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

Reply via email to