Date: 07/14/00
- Next message: Paul DuBois: "Re: [PHP-DEV] Case of XML tags and attributes"
- Previous message: Joey Smith: "[PHP-DEV] Not so off (was [PHP-DEV] [Still OT]: more gdb ?)"
- In reply to: Andrei Zmievski: "[PHP-DEV] Case of XML tags and attributes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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?
>
>-Andrei
XML 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 <email protected>-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Paul DuBois: "Re: [PHP-DEV] Case of XML tags and attributes"
- Previous message: Joey Smith: "[PHP-DEV] Not so off (was [PHP-DEV] [Still OT]: more gdb ?)"
- In reply to: Andrei Zmievski: "[PHP-DEV] Case of XML tags and attributes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

