Thanks for the response. > Bear in mind that XML is case-sensitive - it's part of the > specification.
Actually, the 1.0 spec doesnt mention anything about case.. it is only in the 1.2 version that they talk about "case folding".. Yes I understand the need behind keeping xml case sensitive - to avoid trouble with languages that dont have case. It is not that I do not care about case, it is just the clients - Clients who generate xml files sometimes use all uppercase for attribute names and sometimes use all lower case. I dont think there is a clean way to validate this using the dtd. Once I initialize the DOM using english(us) locale, maybe it would have been a convenient feature to set a flag that says "treat attribute names in a case insensitive manner"... well, well, I am not saying xerces needs modification, just wondered if such a tweak was available :-)... I have learnt from experience that Working with XML you will get whipped into compliance pretty fast... :-) -Vinayak > -----Original Message----- > From: Jesse Pelton [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 26, 2003 8:34 AM > To: '[EMAIL PROTECTED]' > Subject: RE: string comparisons in xerces > > > Bear in mind that XML is case-sensitive - it's part of the > specification. > Xerces is compliant with the spec. Changing it to be > case-insensitive in > some or all cases would break that compliance, so such > changes do not belong > in the released code. > > In other words, I imagine you'll need to make any necessary changes > yourself, and I wouldn't expect them to be become part of Xerces > distributions. If you really don't care about case, you could modify > XMLString::compareString to be case-insensitive. > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 25, 2003 6:49 PM > To: [EMAIL PROTECTED] > Subject: RE: string comparisons in xerces > > > 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... > > --------------------------------------------------------------------- > 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]