You'll have to get the attributes, iterate through them, and compare the
names using XMLString::compareIString().

There is no way to make the Xerces DOM treat names in a case-insensitive
manner -- it's contrary to the fundamental design of XML.

Dave



                                                                                       
                                  
                      <[EMAIL PROTECTED]                                               
                                    
                      ngcast.com>              To:      <[EMAIL PROTECTED]>            
                        
                                               cc:      (bcc: David N 
Bertoni/Cambridge/IBM)                             
                      03/25/2003 03:49         Subject: RE: string comparisons in 
xerces                                 
                      PM                                                               
                                  
                      Please respond                                                   
                                  
                      to xerces-c-dev                                                  
                                  
                                                                                       
                                  



Dave,

The problem is when I invoke an xerces lib fn like getAttribute("xyz").
This function internally uses the XMLString::compareString to verify if an
attribute with the name "xyz" is present (case sensitive)..

I wanted to know if there was a way of instructing the xerces functions to
internally use case insensitive string compares.

Or, in other words, as I mentioned earlier, to treat the xml in a case
insensitive manner...

-Vinayak

> -----Original Message-----
> From: David N Bertoni/Cambridge/IBM
> [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 25, 2003 6:44 PM
> To: [EMAIL PROTECTED]
> Subject: Re: string comparisons in xerces
>
>
>
>
>
>
> How about using XMLString::compareIString()?
>
> Dave
>

---------------------------------------------------------------------
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