Re: Case of XML tags and attributes
| From: | Paul DuBois | Date: | Sat, 15 Jul 2000 02:25:05 +0000 |
| Subject: | Re: Case of XML tags and attributes | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-24610@lists.php.net to get a copy of this message | ||
At 8:26 PM -0500 2000-07-14, Andrei Zmievski wrote:
Why is it that the XML tags and attributes passed to XML handlers are all uppercase, even though the XML file itself contained only lowercase versions of those? As far as I know XML requires its tags to be lowercased, so why this inconsistency? -AndreiXML doesn't require tags to be lowercase (or uppercased, for that matter). In fact, XML tags are case-sensitive, unlike HTML. The PHP behavior of uppercasing tags by default comes, I suppose, because many of the early applications don't want <abc> and <ABC> treated differently and folding them allows the application not to have to modify the tags itself or perform more complicated equality testing. But that's just a guess. Personally, I prefer not to have my tags messed with, so I set the option that defeats case-folding. -- Paul DuBois, paul@snake.net