From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Sun Feb 14 1999 - 13:05:49 EST
> > If this is really a problem, I can provide an alternate routine
> > doing the escape for you (something like xmlSetRawProp).
>
> Well, i'll just do it myself. But if you created such a function i
> would use it.
Just send me your code, I will integrate it !
> > You must also know that pedantic XML processors can remove extra
> > spaces between words in an attribute value. For example
> > <elem prop1="a b c"/>
> > can be saved as
> > <elem prop1="a b c"/>
> >
> > Even if libxml don't do it ...
>
> Ok. So attribute values are whitespace ignorant... Is
> multiple whitespace ignored in the content too?
> (as in <string>a b c</string> vs <string>a b c</string>)
No, element content is not !
However when elements can contain both childs and text, then you may
have troubles with white spaces.
<string>a b c</string> will always be saved as read, but
<string>a <elem>b</elem> c</string> may be saved differently.
Being able to distinguish in such elements (mixed content) whether a
white space is significant or not is difficult.
Daniel
-- [Yes, I have moved back to France !] Daniel.Veillard@w3.org | W3C INRIA Rhone-Alpes | Today's Bookmarks : Tel : +33 476 615 257 | 655, avenue de l'Europe | Linux, WWW, rpmfind, Fax : +33 476 615 207 | 38330 Montbonnot FRANCE | rpm2html, Kaffe, http://www.w3.org/People/W3Cpeople.html#Veillard | badminton, and Amaya. ---- Message from the list xml@rufus.w3.org Archived at : http://rufus.w3.org/veillard/XML/messages to unsubscribe: echo "unsubscribe xml" | mail majordomo@rufus.w3.org
This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:25 EDT