From: Alexander Larsson (alla@lysator.liu.se)
Date: Sun Feb 14 1999 - 12:58:11 EST
On 14 Feb, Daniel Veillard wrote:
> Hi Alexander,
>> Soo, what kind of behaviour can i expect from xmlSetProp()?
>
> Basically you should provide escaped values for '<' and '&'
> Also you don't have the right to use both ' and " in the same attribute
> value.
Ok.
> 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.
> 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>)
/ Alex
---- 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