Quoting from xerces-c-src_2_6_0/src/xercesc/framework/psvi/XSFacet.hpp:

class XMLPARSER_EXPORT XSFacet : public XSObject
...
protected:
    //
-----------------------------------------------------------------------
    //  data members
    //
-----------------------------------------------------------------------
...
    const XMLCh*                  fLexicalValue;
...
inline const XMLCh* XSFacet::getLexicalFacetValue() const
{
    return fLexicalValue;
}
...

>From this, I think that we can safely say that it really should be returning
a string. I say this because I would have to imagine that if they intended
to return (either a number or a string), they would return void* instead of
XMLCh*, would they not? Unfortunately, as you know, I do not really know
enough about XML processing to kick this up a notch, but perhaps this will
at least be a start, eh?

I would have to presume this ought to be returning the Unicode Arabic
numerals. But if, as you seem to state in your post, this is not happening,
then I would agree something is wrong. As simple as XSFacet's code seems to
be, I would have to blame whatever it is that populates XSFacet rather than
XSFacet itself.

--Matt

-----Original Message-----
From: Elisha Berns [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 13, 2005 4:12 PM
To: Xerces C++ Development
Subject: PSVI Garbage characters from XSFacet::getLexicalFacetValue()


Hi,

Whenever retrieving the facet value for numeric type facets (i.e.
minLength, maxLength, etc.) XSFacet::getLexicalFacetValue() returns
garbage characters.  This bug seems to occur for any simpleType that
exists in my schema documents.  Is the string for a numeric value
encoded or is it really the numeric bytes posing as a string?

Thanks for any help here,

Elisha Berns
[EMAIL PROTECTED]
tel. (310) 556 - 8332
fax (310) 556 - 2839
___________________________________________________________________
The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure.  If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof.  Thank you.


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

Reply via email to