PSVI: I/F doesn't provide length of hexBinary data
--------------------------------------------------

         Key: XERCESC-1532
         URL: http://issues.apache.org/jira/browse/XERCESC-1532
     Project: Xerces-C++
        Type: Bug
  Components: Validating Parser (Schema) (Xerces 1.5 or up only)  
    Versions: 2.7.0    
    Reporter: Steve Magnani


When PSVIItem::getActualValue() is called for a hexBinary attribute, 
XSValue::getActValStrings() produces a binary bytestream equivalent of the 
hexBinary string. It also appends a zero byte at the end of the bytestream. 
While clients are able to access the bytestream (via 
XSValue::fData.fValue.f_byteVal), there does not seem to be any way for clients 
to tell how many bytes are in the stream without replicating some of the logic 
used by  XSValue::getActValStrings(). Checking for a zero byte is not reliable, 
because zero bytes are valid in hexBinary values.

Suggest making XSValue::fData.fValue.f_byteVal a struct that includes the 
length of the byte stream, as well as a pointer to it.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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

Reply via email to