From: Marc Sanfacon (sanm@copernic.com)
Date: Mon Sep 25 2000 - 10:44:28 EDT
Thank you.
-----Original Message-----
From: xml-request@rufus.w3.org [mailto:xml-request@rufus.w3.org]On
Behalf Of Daniel Veillard
Sent: September 25, 2000 08:53
To: xml@rpmfind.net
Subject: Re: [xml] xmlHasProp case sensitive ?
On Wed, Sep 20, 2000 at 03:07:17PM -0400, Marc Sanfacon wrote:
>
> Hi there,
> one of my co-worker uses the HTMLParser from libxml in his work and
> found out that 'xmlHasProp' is case sensitive.
yes, XML names are case sensitive.
> Which means that is someone writes: <A Href="http://www.xml.org">,
> and we look for href, we will not find it.
Strange, the HTML parser take care of this to convert all names in
markup to lowercase, and the XHTML specification forced this conversion
for the XML versions of HTML.
> Is this the intended behavior ?
Definitely ...
If you are using the XML parser you must use lowercase.
If you are using the HTML parser this is done automatically
You should just take care to use lowercase when modifying an already
parsed tree.
Daniel
-- Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes | Today's Bookmarks : Tel : +33 476 615 257 | 655, avenue de l'Europe | Linux XML libxml WWW Fax : +33 476 615 207 | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind http://www.w3.org/People/all#veillard%40w3.org | RPM badminton Kaffe ---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net ---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net
This archive was generated by hypermail 2b29 : Mon Sep 25 2000 - 10:43:46 EDT