Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > case insensitive attribute names

Reply
Thread Tools

case insensitive attribute names

 
 
D. Alvarado
Guest
Posts: n/a
 
      04-21-2004
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, -
 
Reply With Quote
 
 
 
 
Klaus Johannes Rusch
Guest
Posts: n/a
 
      04-22-2004
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

http://www.atmedia.net/KlausRusch/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
check file exists with case sensitive on a case insensitive filesystem Xah Lee Perl Misc 4 04-05-2009 11:21 PM
case insensitive find on case sensitive stl map benhoefer@gmail.com C++ 1 04-06-2007 08:42 PM
Request.QueryString[] param names always case insensitive ? John A Grandy ASP .Net 0 04-14-2006 09:29 PM
how to case select with case-insensitive string ? Tee ASP .Net 3 06-23-2004 07:40 PM
Matching attribute names to element names in a different path Carl XML 0 04-01-2004 01:15 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57