vcard DTD

Dave Winer dave at userland.com
Mon Nov 9 00:32:49 GMT 1998


>>Dave Winer mentioned a similar issue that forced him to encode some text
in "base64"

If an XML value contains a < or an & you should encode them as &lt; and
&amp;. We researched this and it was there in one of the specs. (Doug Baron
will correct me if I got this wrong). 

The situation I was writing about was truly bizarre. There were two levels
of decoding going on. First I was changing the <s to &lt;s and then they
were being transmitted thru XML-RPC, and on the receiving end the XML-RPC
server thought (as it's supposed to) that it would turn the &lt;s into <s.
Oooops. That was someone else's job (an HTML browser). 

So base64 to the rescue, keep it out of the hands of the pesky server and
get those &lt;s over to the client. 

Dave


At 03:14 PM 11/8/98 -0800, David Brownell wrote:
>"Mark D. Anderson" wrote:
>> 
>> nor what happens when the value is actually kept in a vCard "VALUE"
parameter,
>> nor what they do with "<" or "&" in a vCard value or parameter.
>
>So what's the issue here?   ...
>
>Are XML-emitting tools just being incorrect?  "<" in text should
>always be encoded as "&lt;" (it'll be un-encoded during parsing),
>and "&" as "&amp;" (ditto).
>
>- Dave
>
>xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
>Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
>To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
>(un)subscribe xml-dev
>To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
>subscribe xml-dev-digest
>List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
>
>

--------------------------------------
http://www.userland.com/directory.html


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list