Hi Michael

I think i was wrong in validating the character 0xE494 as it is in the
Shift_JIS encoding and probably the xerces supports the unicode character
encoding only
I am getting it right when i encode this character to unicode from Shift_JIS
and then try to validate it

thanks 
birinder

-----Original Message-----
From: Michael Glavassevich [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 11:28 AM
To: [EMAIL PROTECTED]
Subject: Re: Some Japanese characters cant be validated in the XML
fields??


Hi Birinder,

I'm not sure what you're trying to do, but the function
XMLString::isValidName() checks if a given string matches the Name
production (http://www.w3.org/TR/REC-xml#NT-Name) from the XML rec. Only
a subset of the allowable characters in an XML document are allowed to
appear in a Name. Whatever 0xE494 is, it isn't allowable in a Name.
Perhaps this isn't what you wanted to verify.

By the way, Unicode 0xE494 is part of the Private Use Area (0xE000-0xF8FF)
and has no character assignment
[http://www.unicode.org/charts/PDF/UE000.pdf]. Meaning is given to these
unassigned codepoints by communicating applications that agree on their
meaning. So for one application, 0xE494 may be a Japanese character, in
another it could be a musical note, or in another it may have not be
assigned to any character.

If you let the parser do its job, it will determine the well formedness of
the PI you're interested in, and report an error if the structure is
illegal. You shouldn't have to do this yourself.

On Mon, 25 Aug 2003, Birinder Singh wrote:

> Hi
> I am using the following in my code using the xerces lib 2.10
>
>       XMLCh name[2];
>       name[0] = c;
>       name[1] = L'\0';
>       isNameStart = XMLString::isValidName(name);
>
> to validate the first character (c) in the PI of an xml
> For some Japanese chars like '比' (0xE494) I cant validate the same .
> Is there something like only some specific characters are supported by the
> xerces lib or should i enhance my version
>
> I also see an array XMLByte XMLReader::fgCharCharsTable[0x10000]
maintained
> in the file XMLReader.cpp
> Does this array dont support the characters like the one above
>
> regards
> birinder
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-- 
--------------------
Michael Glavassevich
[EMAIL PROTECTED]

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

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

Reply via email to