By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,953 Members | 1,505 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,953 IT Pros & Developers. It's quick & easy.

case insensitive attribute names

P: n/a
Hello, I'm sure this is a pretty easy question, but how would I
indnicate in my XML schema that I wanted to make attribute name
comparisons case insensitive? For example, is I had an element

<MYELEMENT myattr="1">

I would want the "myattr" attribute to validate against

<xs:schema name="MYATTR" type="xs:integer"/>

Thanks, -
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
D. Alvarado wrote:
Hello, I'm sure this is a pretty easy question, but how would I
indnicate in my XML schema that I wanted to make attribute name
comparisons case insensitive? For example, is I had an element

<MYELEMENT myattr="1">

I would want the "myattr" attribute to validate against

<xs:schema name="MYATTR" type="xs:integer"/>


You cannot, element and attribute names are case sensitive in XML.

The closest to case insensitivity would be defining a choice of
attributes in lowercase, uppercase and any variation of mixed case you
would like to accept, but that would add unnecessarily complexity in the
processing of the document.

Why would you not want to define the case?

--
Klaus Johannes Rusch
Kl********@atmedia.net
http://www.atmedia.net/KlausRusch/
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.